Skip to content

Commit b7d878a

Browse files
committed
Revert "rustc_trans: don't apply noalias on returned references."
This reverts commit 9b2878c.
1 parent 2348ab4 commit b7d878a

File tree

3 files changed

+1
-25
lines changed

3 files changed

+1
-25
lines changed

src/librustc_trans/abi.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -792,8 +792,7 @@ impl<'a, 'tcx> FnType<'tcx> {
792792
// dependencies rather than pointer equality
793793
let no_alias = match kind {
794794
PointerKind::Shared => false,
795-
PointerKind::UniqueOwned => true,
796-
PointerKind::Frozen |
795+
PointerKind::Frozen | PointerKind::UniqueOwned => true,
797796
PointerKind::UniqueBorrowed => !is_return
798797
};
799798
if no_alias {

src/test/run-make/issue-46239/Makefile

-5
This file was deleted.

src/test/run-make/issue-46239/main.rs

-18
This file was deleted.

0 commit comments

Comments
 (0)