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]`.
This commit is contained in:
commit
d4a76a9ef1
2 changed files with 2 additions and 2 deletions
|
|
@ -1 +1 @@
|
|||
f66e825f73d2bd7f8a763b723983850f891985b0
|
||||
c4be230b4a30eb74e3a3908455731ebc2f731d3d
|
||||
|
|
|
|||
|
|
@ -93,8 +93,8 @@ fn basic() {
|
|||
if b { return; }
|
||||
#[allow(unused)]
|
||||
let x = never();
|
||||
yield 2;
|
||||
#[allow(unreachable_code)]
|
||||
yield 2;
|
||||
drop(x);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue