Commit bbeca29
committed
Rollup merge of #52709 - cuviper:beta-global_allocator, r=alexcrichton
beta: only true stage0 needs feature(global_allocator)
We use `#[global_allocator]` for `stage0` builds of libstd, and also
with `feature = "force_alloc_system"` that's set for a local rebuild,
where the bootstrap compiler is the same version and otherwise uses the
`--cfg stage1`.
We only need the unstable `feature(global_allocator)` for a true `stage0`
being 1.27. For rebuilds with 1.28, that feature is stable and causes a
denied warning if it's enabled, so we should avoid it.1 file changed
+1
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
334 | | - | |
335 | | - | |
336 | | - | |
| 334 | + | |
337 | 335 | | |
338 | 336 | | |
339 | 337 | | |
| |||
0 commit comments