about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorTrevor Gross <t.gross35@gmail.com>2025-06-20 23:25:55 -0400
committerGitHub <noreply@github.com>2025-06-20 23:25:55 -0400
commit4455d1e57b0583df0f985518b9b8f6fe85e33eca (patch)
tree06ec924cb4a39d8516eff21868e30c9d4cd1acf2 /compiler/rustc_codegen_llvm/src/errors.rs
parentc93fac7d64394c6b926d863c1903d2e91fd2e41d (diff)
parentc4b67c6d873866d4b2c687306bf2f558a8659246 (diff)
downloadrust-4455d1e57b0583df0f985518b9b8f6fe85e33eca.tar.gz
rust-4455d1e57b0583df0f985518b9b8f6fe85e33eca.zip
Rollup merge of #142571 - cjgillot:borrowed-classes, r=oli-obk
Reason about borrowed classes in CopyProp.

Fixes https://github.com/rust-lang/rust/issues/141122

The current implementation of `CopyProp` avoids unifying two borrowed locals, as this would change the result of address comparison.

However, the implementation was inconsistent with the general algorithm, which identifies equivalence classes of locals and then replaces all locals by a single representative of their equivalence class.

This PR fixes it by forbidding the unification of two *classes* if any of those contain a borrowed local.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions