Skip to content

Commit b3aa880

Browse files
authored
Rollup merge of #80902 - JohnTitor:issue-76281, r=Mark-Simulacrum
Add a regression test for #76281 This has been fixed between 1.47.0-nightly (663d2f5 2020-08-22) and 1.47.0-nightly (5180f3d 2020-08-23). Maybe fixed by #73526? Created `wasm` dir, it currently has only one test but I'll move some wasm-related tests there as a follow-up. Closes #76281
2 parents 5b5aa10 + 8797986 commit b3aa880

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// only-wasm32
2+
// compile-flags: -C opt-level=2
3+
// build-pass
4+
5+
// Regression test for #76281.
6+
// This seems like an issue related to LLVM rather than
7+
// libs-impl so place here.
8+
9+
fn main() {
10+
let mut v: Vec<&()> = Vec::new();
11+
v.sort_by_key(|&r| r as *const ());
12+
}

0 commit comments

Comments
 (0)