-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Delay a good path bug on drop for TypeErrCtxt
(instead of a regular delayed bug)
#110476
Conversation
This comment has been minimized.
This comment has been minimized.
Does it work if you explicitly Need to check after work. |
No, I tried a bunch of combinations and they all seem to not work lol... |
871e214
to
556062e
Compare
r=me with or without a clippy test 🤷 don't have an opinion on whether we should instead completely remove the |
oh I see, so the ice happens AFTER the lint is emitted, and since we default to errors, compilation just stops and we simply don't hit the ICE in the tests, weird :/ |
ok it's a bit dirty but you force the test to warn via |
If you cherry-pick matthiaskrgr@b1d6e8f into your branch it should work I think :) |
Some changes occurred in src/tools/clippy cc @rust-lang/clippy |
Thanks @matthiaskrgr for the test! @bors r=lcnr |
…iaskrgr Rollup of 7 pull requests Successful merges: - rust-lang#110432 (Report more detailed reason why `Index` impl is not satisfied) - rust-lang#110451 (Minor changes to `IndexVec::ensure_contains_elem` & related methods) - rust-lang#110476 (Delay a good path bug on drop for `TypeErrCtxt` (instead of a regular delayed bug)) - rust-lang#110498 (Switch to `EarlyBinder` for `collect_return_position_impl_trait_in_trait_tys`) - rust-lang#110507 (boostrap: print output during building tools) - rust-lang#110510 (Fix ICE for transmutability in candidate assembly) - rust-lang#110513 (make `non_upper_case_globals` lint not report trait impls) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
The check within changed from `delay_span_bug` to `delay_good_path_bug` in rust-lang#110476, and removing the check altogether was considered. It's a very weak sanity check and gets in the way of removing good path delayed bugs altogether, so this PR just removes it.
The check within changed from `delay_span_bug` to `delay_good_path_bug` in rust-lang#110476, and removing the check altogether was considered. It's a very weak sanity check and gets in the way of removing good path delayed bugs altogether, so this PR just removes it.
The check within changed from `delay_span_bug` to `delay_good_path_bug` in rust-lang#110476, and removing the check altogether was considered. It's a very weak sanity check and gets in the way of removing good path delayed bugs altogether, so this PR just removes it.
The check within changed from `delay_span_bug` to `delay_good_path_bug` in rust-lang#110476, and removing the check altogether was considered. It's a very weak sanity check and gets in the way of removing good path delayed bugs altogether, so this PR just removes it.
The check within changed from `delay_span_bug` to `delay_good_path_bug` in rust-lang#110476, and removing the check altogether was considered. It's a very weak sanity check and gets in the way of removing good path delayed bugs altogether, so this PR just removes it.
r? @lcnr
Perhaps we should just delete the
Drop
impl altogether though?Fixes rust-lang/rust-clippy#10645
@matthiaskrgr: I don't know how to make a clippy test for this. Any idea? Clippy's UI tests run with
-D warnings
and I have no idea how to switch it off to make a test that triggers this ICE in the clippy test suite 🤣