-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Always force non-trimming of path in unreachable_patterns
lint
#135310
base: master
Are you sure you want to change the base?
Conversation
Creating a "trimmed DefID path" when no error is being emitted is an ICE (on purpose). If we create a trimmed path for a lint that is then silenced before being emitted causes a known ICE. This side-steps the issue by always using `with_no_trimmed_path!`. This was verified to fix https://github.com/quinn-rs/quinn/, but couldn't write a repro case for the test suite. Fix rust-lang#135289.
r? @Nadrieril rustbot has assigned @Nadrieril. Use |
Some changes occurred in match checking cc @Nadrieril |
The job Click to see the possible cause of the failure (guessed by this bot)
|
I had the same workaround locally, but still wondered where the lint was silenced for the unreachable arms in that crate 🤔. |
@lqd my assumption it is because of cargo silencing the lint for deps, but it's only a guess. |
Interesting possibility. They do that via |
Would be nice to have a test for this |
Creating a "trimmed DefID path" when no error is being emitted is an ICE (on purpose). If we create a trimmed path for a lint that is then silenced before being emitted causes a known ICE. This side-steps the issue by always using
with_no_trimmed_path!
.This was verified to fix https://github.com/quinn-rs/quinn/, but couldn't write a repro case for the test suite.
Fix #135289.