From 33a67c6b33e91b5de01b9421a59a2f92233643a0 Mon Sep 17 00:00:00 2001 From: hyd-dev Date: Tue, 24 Aug 2021 18:42:43 +0800 Subject: [PATCH] Add `#[allow(unreachable_code)]` to `drop(x)` in `tests/run-pass/generator.rs` --- rust-version | 2 +- tests/run-pass/generator.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/rust-version b/rust-version index 6b176cc97bd..2805654a75e 100644 --- a/rust-version +++ b/rust-version @@ -1 +1 @@ -73d96b090bb68065cd3a469b27cbd568e39bf0e7 +f66e825f73d2bd7f8a763b723983850f891985b0 diff --git a/tests/run-pass/generator.rs b/tests/run-pass/generator.rs index 18eaf5e55c1..b2039e555f5 100644 --- a/tests/run-pass/generator.rs +++ b/tests/run-pass/generator.rs @@ -94,6 +94,7 @@ fn never() -> Never { #[allow(unused)] let x = never(); yield 2; + #[allow(unreachable_code)] drop(x); });