Skip to content

Commit 08ca560

Browse files
committed
Auto merge of #1877 - hyd-dev:rustup, r=RalfJung
Add `#[allow(unreachable_code)]` to `drop(x)` in `tests/run-pass/generator.rs` The test [starts to trigger this warning](https://github.com/rust-lang/miri/runs/3408355084?check_suite_focus=true#step:8:264) (I guess it's caused by rust-lang/rust#85556). The warning seems correct, but the unreachable code in that test also seems reasonable.
2 parents 94ae910 + 33a67c6 commit 08ca560

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
73d96b090bb68065cd3a469b27cbd568e39bf0e7
1+
f66e825f73d2bd7f8a763b723983850f891985b0

tests/run-pass/generator.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ fn basic() {
9494
#[allow(unused)]
9595
let x = never();
9696
yield 2;
97+
#[allow(unreachable_code)]
9798
drop(x);
9899
});
99100

0 commit comments

Comments
 (0)