-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Fix ICE in inline always warning emission. #150805
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
Conversation
The calls to `def_path_str` were outside the decorate callback in `node_span_lint` which caused an ICE when the warning was an allowed warning due to the call to `def_path_str` being executed but the warning not actually being emitted.
|
Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt |
|
@bors r+ |
|
Do we have a test or open issue that this PR fixes? Just to ensure things don't regress in the future. |
Rollup of 9 pull requests Successful merges: - #149318 (Implement partial_sort_unstable for slice) - #150805 (Fix ICE in inline always warning emission.) - #150822 (Fix for ICE: eii: fn / macro rules None in find_attr()) - #150853 (std: sys: fs: uefi: Implement File::read) - #150855 (std: sys: fs: uefi: Implement File::tell) - #150881 (Fix std::fs::copy on WASI by setting proper OpenOptions flags) - #150891 (Fix a trivial typo in def_id.rs) - #150892 (Don't check `[mentions]` paths in submodules from tidy) - #150894 (cg_llvm: add a pause to make comment less confusing) r? @ghost
Rollup merge of #150805 - fix-def-path-ice, r=davidtwco Fix ICE in inline always warning emission. The calls to `def_path_str` were outside the decorate callback in `node_span_lint` which caused an ICE when the warning was an allowed warning due to the call to `def_path_str` being executed but the warning not actually being emitted. r? @davidtwco
It was failing stdarch's CI on Windows aarch64, but nothing else. @JamieCunliffe investigated for a while but couldn't work out why it was only triggering on that platform to be able to create a test. |
The calls to
def_path_strwere outside the decorate callback innode_span_lintwhich caused an ICE when the warning was an allowed warning due to the call todef_path_strbeing executed but the warning not actually being emitted.r? @davidtwco