@@ -98,9 +98,25 @@ branch of rust-lang/rust which:
98
98
99
99
Send a PR to the master branch to:
100
100
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] ` .
104
120
105
121
## Release day (Thursday)
106
122
@@ -196,3 +212,4 @@ RUSTUP_DIST_SERVER=https://dev-static.rust-lang.org rustup toolchain install nig
196
212
[ awscli ] : /infra/docs/aws-access.md#using-the-aws-cli
197
213
[ rust-lang/rust ] : https://github.com/rust-lang/rust
198
214
[ simpleinfra ] : https://github.com/rust-lang/simpleinfra
215
+ [ ripgrep ] : https://github.com/burntsushi/ripgrep
0 commit comments