Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

beta: only true stage0 needs feature(global_allocator) #52709

Merged
merged 1 commit into from
Jul 26, 2018

Conversation

cuviper
Copy link
Member

@cuviper cuviper commented Jul 25, 2018

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.

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.
@rust-highfive
Copy link
Collaborator

r? @kennytm

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive
Copy link
Collaborator

⚠️ Warning ⚠️

  • Pull requests are usually filed against the master branch for this repo, but this one is against beta. Please double check that you specified the right target!

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 25, 2018
@cuviper
Copy link
Member Author

cuviper commented Jul 25, 2018

Note that the master branch has removed this feature line altogether, so this patch is only needed on beta.

@kennytm
Copy link
Member

kennytm commented Jul 25, 2018

r? @alexcrichton

@alexcrichton
Copy link
Member

@bors: r+

@bors
Copy link
Contributor

bors commented Jul 25, 2018

📌 Commit b0f15d3 has been approved by alexcrichton

@bors
Copy link
Contributor

bors commented Jul 25, 2018

🌲 The tree is currently closed for pull requests below priority 99, this pull request will be tested once the tree is reopened

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jul 25, 2018
@Mark-Simulacrum
Copy link
Member

@bors p=1

kennytm added a commit to pietroalbini/rust that referenced this pull request Jul 25, 2018
…excrichton

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.
bors added a commit that referenced this pull request Jul 26, 2018
[beta] Rollup backports

Merged and approved:

* #52677: Release notes: add some missing 1.28 libs stabilization
* #52181: rustdoc: set panic output before starting compiler thread pool
* #52709: beta: only true stage0 needs feature(global_allocator)

r? @ghost
@bors bors merged commit b0f15d3 into rust-lang:beta Jul 26, 2018
@cuviper cuviper deleted the beta-global_allocator branch May 17, 2019 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants