File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -256,6 +256,10 @@ So the stage2 compiler has to recompile `std` for the target.
256
256
257
257
### Why does only libstd use ` cfg(bootstrap) ` ?
258
258
259
+ NOTE: for docs on ` cfg(bootstrap) ` itself, see [ Complications of Bootstrapping] [ complications ] .
260
+
261
+ [ complications ] : #complications-of-bootstrapping
262
+
259
263
The ` rustc ` generated by the stage0 compiler is linked to the freshly-built
260
264
` std ` , which means that for the most part only ` std ` needs to be cfg-gated,
261
265
so that ` rustc ` can use features added to std immediately after their addition,
@@ -265,7 +269,7 @@ Note this is different from any other Rust program: stage1 `rustc`
265
269
is built by the _ beta_ compiler, but using the _ master_ version of libstd!
266
270
267
271
The only time ` rustc ` uses ` cfg(bootstrap) ` is when it adds internal lints
268
- that use diagnostic items. This happens very rarely .
272
+ that use diagnostic items, or when it uses unstable library features that were recently changed .
269
273
270
274
### What is a 'sysroot'?
271
275
You can’t perform that action at this time.
0 commit comments