-
Notifications
You must be signed in to change notification settings - Fork 13.4k
MIR visitor: Don't treat debuginfo field access as a use of the struct #79080
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
Thanks! Please add a comment, and remove any existing special cases that are made obsolete by this fix. |
What special cases are you referring to? |
rust/compiler/rustc_mir/src/transform/validate.rs Lines 201 to 205 in 603ab5b
etc. |
I added a comment and removed the special case that you pointed out. I'm not sure what others there are though. If you know of more, I am happy to change them, but I don't have enough experience with MIR to know where they might be. Also it's probably fine to change them later since this change shouldn't mess up the special-casing; it just allows getting rid of the special-casing. |
dbe6fb2
to
b196bec
Compare
@bors r+ rollup |
📌 Commit b196bec has been approved by |
…as-schievink Rollup of 10 pull requests Successful merges: - rust-lang#76829 (stabilize const_int_pow) - rust-lang#79080 (MIR visitor: Don't treat debuginfo field access as a use of the struct) - rust-lang#79236 (const_generics: assert resolve hack causes an error) - rust-lang#79287 (Allow using generic trait methods in `const fn`) - rust-lang#79324 (Use Option::and_then instead of open-coding it) - rust-lang#79325 (Reduce boilerplate with the `?` operator) - rust-lang#79330 (Fix typo in comment) - rust-lang#79333 (doc typo) - rust-lang#79337 (Use Option::map instead of open coding it) - rust-lang#79343 (Add my (`@flip1995)` work mail to the mailmap) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Fixes #77454.
r? @jonas-schievink