From b73f4666b719d60185d9c813908e32b2885a0a41 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Fri, 4 Feb 2022 14:20:54 -0800 Subject: [PATCH] mention test folders for cfg(bootstrap) --- src/stabilization_guide.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/stabilization_guide.md b/src/stabilization_guide.md index 60d333a37..850168705 100644 --- a/src/stabilization_guide.md +++ b/src/stabilization_guide.md @@ -132,7 +132,8 @@ writing, the next stable release (i.e. what is currently beta) was Next search for the feature string (in this case, `pub_restricted`) in the codebase to find where it appears. Change uses of -`#![feature(XXX)]` from the `std` and any rustc crates to be +`#![feature(XXX)]` from the `std` and any rustc crates (this includes test folders +under `library/` and `compiler/` but not the toplevel `test/` one) to be `#![cfg_attr(bootstrap, feature(XXX))]`. This includes the feature-gate only for stage0, which is built using the current beta (this is needed because the feature is still unstable in the current beta).