fix(rustc_codegen_ssa): Use cg_operand for Freeze check#157953
Conversation
|
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @adwinwhite (or someone else) some time within the next two weeks. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
Why was this reviewer chosen?The reviewer was selected based on:
|
This comment has been minimized.
This comment has been minimized.
|
@rustbot ready I'm not confident with the place I added a test, |
|
@rustbot ready |
|
As indicated by rustbot, would you mind removing the issue reference from the commit to avoid backreference spam on the issue? |
9d05c78 to
0562f05
Compare
|
@rustbot ready |
|
@bors squash |
This comment has been minimized.
This comment has been minimized.
* fix(rustc_codegen_ssa): Use cg_operand for Freeze check * chore: remove unnecessary comment * test: add test for ssa rval monomorphization issue * fix: move ssa-rval-monomorphization test * tweak comment Co-authored-by: Ralf Jung <post@ralfj.de>
|
🔨 5 commits were squashed into 209ea47. |
f517ccd to
209ea47
Compare
|
Thanks, LGTM! |
… r=RalfJung fix(rustc_codegen_ssa): Use cg_operand for Freeze check Hi, this is my first contribution, so please forgive my incorrect conventions... I found that rust-lang#157922 is simple issue. Fixes rust-lang#157922 ## Cause of issue In `rustc_codegen_ssa/src/mir/rvalue.rs`, `Freeze` check is called for non-monomorphized operand pointee type of `RValue`. Before this method call, there is already called `codegen_operand` method for the operand, so I use this for `Freeze` check.
…uwer Rollup of 10 pull requests Successful merges: - #155535 (export symbols: support macos/windows(32/64)) - #156538 (Refactor `AliasTy`. `AliasTerm` & `UnevaluatedConst` to use `Alias`) - #156807 (Add `T: PartialEq` bounds to derived `StructuralPartialEq` impls.) - #156950 (Staticlib rename internal symbols) - #157702 (Add expansion info to implied bounds) - #155616 (constify `TryFrom<Vec>` for array) - #156226 (diagnostics: point to coroutine body on higher-ranked auto trait errors) - #157873 (mips: set llvm_args -mno-check-zero-division for all mips targets) - #157953 (fix(rustc_codegen_ssa): Use cg_operand for Freeze check) - #157958 (doc: Document `-Zlint-rust-version`)
… r=RalfJung fix(rustc_codegen_ssa): Use cg_operand for Freeze check Hi, this is my first contribution, so please forgive my incorrect conventions... I found that rust-lang#157922 is simple issue. Fixes rust-lang#157922 ## Cause of issue In `rustc_codegen_ssa/src/mir/rvalue.rs`, `Freeze` check is called for non-monomorphized operand pointee type of `RValue`. Before this method call, there is already called `codegen_operand` method for the operand, so I use this for `Freeze` check.
Hi, this is my first contribution, so please forgive my incorrect conventions...
I found that #157922 is simple issue.
Fixes #157922
Cause of issue
In
rustc_codegen_ssa/src/mir/rvalue.rs,Freezecheck is called for non-monomorphized operand pointee type ofRValue.Before this method call, there is already called
codegen_operandmethod for the operand, so I use this forFreezecheck.