-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Taint const qualifs if a static is referenced that didn't pass wfcheck #123675
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
r? @davidtwco rustbot has assigned @davidtwco. Use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me after nits
if let Some(def_id) = def_id.as_local() { | ||
if let Err(guar) = self.tcx.at(span).check_well_formed(hir::OwnerId { def_id }) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let-chains
@rustbot author |
@bors r=compiler-errors |
This comment has been minimized.
This comment has been minimized.
@bors r- |
@bors r=compiler-errors |
…llaumeGomez Rollup of 7 pull requests Successful merges: - rust-lang#123673 (Don't ICE for kind mismatches during error rendering) - rust-lang#123675 (Taint const qualifs if a static is referenced that didn't pass wfcheck) - rust-lang#123975 (Port the 2 `rust-lld` run-make tests to `rmake`) - rust-lang#124000 (Use `/* value */` as a placeholder) - rust-lang#124013 (Box::into_raw: make Miri understand that this is a box-to-raw cast) - rust-lang#124027 (Prefer identity equality over equating types during coercion.) - rust-lang#124036 (Remove `default_hidden_visibility: false` from wasm targets) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#123675 - oli-obk:static_wf_ice, r=compiler-errors Taint const qualifs if a static is referenced that didn't pass wfcheck It is correct to only check the signature here, as the ICE is caused by `USE_WITH_ERROR` trying to allocate memory to store the result of `WITH_ERROR` before evaluating it. fixes rust-lang#123153
It is correct to only check the signature here, as the ICE is caused by
USE_WITH_ERROR
trying to allocate memory to store the result ofWITH_ERROR
before evaluating it.fixes #123153