Skip to content

Commit d4a76a9

Browse files
committed
Auto merge of #1880 - hyd-dev:rustup, r=oli-obk
Move `#[allow(unreachable_code)]` in `tests/run-pass/generator.rs` The warning now appears on `yield 2;` instead of `drop(x)`: https://github.com/rust-lang/miri/runs/3429959882?check_suite_focus=true#step:8:265 `yield 2;` seems indeed unreachable so I adjusted the `#[allow]`.
2 parents 08ca560 + 7301fe1 commit d4a76a9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rust-version

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

tests/run-pass/generator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ fn basic() {
9393
if b { return; }
9494
#[allow(unused)]
9595
let x = never();
96-
yield 2;
9796
#[allow(unreachable_code)]
97+
yield 2;
9898
drop(x);
9999
});
100100

0 commit comments

Comments
 (0)