@@ -98,9 +98,25 @@ branch of rust-lang/rust which:
9898
9999Send a PR to the master branch to:
100100
101- - modify src/stage0.txt to bootstrap from yesterday's beta
102- - Remove ` cfg(stage0) ` annotated items
103- - Replace ` cfg(not(stage0)) ` with nothing
101+ - Update ` src/stage0.txt ` to change ` date ` to "YYYY-MM-DD" where the date is
102+ the archive date when the beta build was uploaded.
103+
104+ - Remove references to the ` bootstrap ` and ` not(bootstrap) ` conditional
105+ compilation attributes. You can find all of them by installing [ ripgrep] and
106+ running this command:
107+
108+ ```
109+ rg '#!?\[.*\(bootstrap' -t rust
110+ ```
111+
112+ The general guidelines (both for ` #[] ` and ` #![] ` ) are:
113+
114+ - Remove any item annotated with ` #[cfg(bootstrap)] ` .
115+ - Remove any ` #[cfg(not(bootstrap))] ` attribute while keeping the item.
116+ - Remove any ` #[cfg_attr(bootstrap, $attr)] ` attribute while keeping the item.
117+ - Replace any ` #[cfg_attr(not(bootstrap), doc="$doc")] ` with ` $doc ` in the
118+ relevant documentation block (or in a new documentation block).
119+ - Replace any ` #[cfg_attr(not(bootstrap), $attr)] ` with ` #[$attr] ` .
104120
105121## Release day (Thursday)
106122
@@ -196,3 +212,4 @@ RUSTUP_DIST_SERVER=https://dev-static.rust-lang.org rustup toolchain install nig
196212[ awscli ] : /infra/docs/aws-access.md#using-the-aws-cli
197213[ rust-lang/rust ] : https://github.com/rust-lang/rust
198214[ simpleinfra ] : https://github.com/rust-lang/simpleinfra
215+ [ ripgrep ] : https://github.com/burntsushi/ripgrep
0 commit comments