Skip to content

Commit abf399d

Browse files
committed
Add yield_expr feature to remaining code
1 parent 5ae4d9b commit abf399d

File tree

208 files changed

+216
-229
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

208 files changed

+216
-229
lines changed

compiler/rustc_codegen_gcc/example/std_example.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![allow(internal_features)]
2-
#![feature(core_intrinsics, coroutines, coroutine_trait, stmt_expr_attributes)]
2+
#![feature(core_intrinsics, coroutines, yield_expr, coroutine_trait, stmt_expr_attributes)]
33

44
#[cfg(feature="master")]
55
#[cfg(target_arch="x86_64")]

compiler/rustc_hir_analysis/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ This API is completely unstable and subject to change.
5959
#![allow(internal_features)]
6060
#![allow(rustc::diagnostic_outside_of_impl)]
6161
#![allow(rustc::untranslatable_diagnostic)]
62+
#![cfg_attr(not(bootstrap), feature(yield_expr))]
6263
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
6364
#![doc(rust_logo)]
6465
#![feature(assert_matches)]

compiler/rustc_metadata/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// tidy-alphabetical-start
22
#![allow(internal_features)]
3+
#![cfg_attr(not(bootstrap), feature(yield_expr))]
34
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
45
#![doc(rust_logo)]
56
#![feature(coroutines)]

compiler/rustc_middle/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#![allow(rustc::diagnostic_outside_of_impl)]
3030
#![allow(rustc::potential_query_instability)]
3131
#![allow(rustc::untranslatable_diagnostic)]
32+
#![cfg_attr(not(bootstrap), feature(yield_expr))]
3233
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
3334
#![doc(rust_logo)]
3435
#![feature(allocator_api)]

compiler/rustc_type_ir/src/ty_kind.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ pub enum TyKind<I: Interner> {
199199
/// may end up as something like `for<'a> [Vec<i32>, &'a Vec<i32>]`:
200200
///
201201
/// ```
202-
/// #![feature(coroutines)]
202+
/// #![feature(coroutines, yield_expr)]
203203
/// #[coroutine] static |a| {
204204
/// let x = &vec![3];
205205
/// yield a;

library/core/src/iter/sources/from_coroutine.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use crate::pin::Pin;
1111
/// # Examples
1212
///
1313
/// ```
14-
/// #![feature(coroutines)]
14+
/// #![feature(coroutines, yield_expr)]
1515
/// #![feature(iter_from_coroutine)]
1616
///
1717
/// let it = std::iter::from_coroutine(#[coroutine] || {

library/core/src/ops/coroutine.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ pub enum CoroutineState<Y, R> {
3838
/// closure-like:
3939
///
4040
/// ```rust
41-
/// #![feature(coroutines)]
41+
/// #![feature(coroutines, yield_expr)]
4242
/// #![feature(coroutine_trait)]
4343
/// #![feature(stmt_expr_attributes)]
4444
///

library/core/src/pin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1855,7 +1855,7 @@ unsafe impl<T: ?Sized> PinCoerceUnsized for *mut T {}
18551855
/// ### With `Coroutine`s
18561856
///
18571857
/// ```rust
1858-
/// #![feature(coroutines)]
1858+
/// #![feature(coroutines, yield_expr)]
18591859
/// #![feature(coroutine_trait)]
18601860
/// use core::{
18611861
/// ops::{Coroutine, CoroutineState},

src/tools/clippy/tests/ui/crashes/ice-5238.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//@ check-pass
22
// Regression test for #5238 / https://github.com/rust-lang/rust/pull/69562
33

4-
#![feature(coroutines, coroutine_trait, stmt_expr_attributes)]
4+
#![feature(coroutines, yield_expr, coroutine_trait, stmt_expr_attributes)]
55

66
fn main() {
77
let _ = #[coroutine]

src/tools/clippy/tests/ui/redundant_locals.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//@aux-build:proc_macros.rs
22
#![allow(unused, clippy::no_effect, clippy::needless_pass_by_ref_mut)]
33
#![warn(clippy::redundant_locals)]
4-
#![feature(coroutines, stmt_expr_attributes)]
4+
#![feature(coroutines, yield_expr, stmt_expr_attributes)]
55

66
extern crate proc_macros;
77
use proc_macros::{external, with_span};

0 commit comments

Comments
 (0)