Skip to content

Remove unnecessary with_globals calls - #59496

Merged
bors merged 1 commit into
rust-lang:masterfrom
Zoxc:fix-globals
Mar 29, 2019
Merged

Remove unnecessary with_globals calls#59496
bors merged 1 commit into
rust-lang:masterfrom
Zoxc:fix-globals

Conversation

@Zoxc

@ZoxcZoxc commented Mar 28, 2019

Copy link
Copy Markdown
Contributor

No description provided.

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @oli-obk

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

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 28, 2019
@oli-obk

Copy link
Copy Markdown
Contributor

Would it make sense to setup GLOBALS so we get a panic if they are initialized twice?

@Zoxc

Zoxc commented Mar 28, 2019

Copy link
Copy Markdown
ContributorAuthor

I think rustdoc still initializes them twice.

@oli-obk

Copy link
Copy Markdown
Contributor

Any particular reason? Can you remove that in this PR, too?

@Zoxc

Zoxc commented Mar 28, 2019

Copy link
Copy Markdown
ContributorAuthor

It runs test sessions while it still has a global set for the entire crate. I don't know enough about rustdoc to change that atm.

@oli-obk

Copy link
Copy Markdown
Contributor

@bors r+

@bors

bors commented Mar 28, 2019

Copy link
Copy Markdown
Collaborator

📌 Commit e9a8bef has been approved by oli-obk

@borsbors 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 Mar 28, 2019
Centril added a commit to Centril/rust that referenced this pull request Mar 29, 2019
@CentrilCentril mentioned this pull request Mar 29, 2019
bors added a commit that referenced this pull request Mar 29, 2019
Rollup of 11 pull requests
Successful merges:
- #58019 (Combine all builtin late lints and make lint checking parallel)
- #59358 (Use `track_errors` instead of hand rolling)
- #59394 (warn -> deny duplicate match bindings)
- #59401 (bootstrap: build crates under libtest with -Z emit-stack-sizes)
- #59423 (Visit path in `walk_mac`)
- #59468 (musl: build toolchain libs with -fPIC)
- #59476 (Use `SmallVec` in `TokenStreamBuilder`.)
- #59496 (Remove unnecessary with_globals calls)
- #59498 (Use 'write_all' instead of 'write' in example code)
- #59503 (Stablize {f32,f64}::copysign().)
- #59511 (Fix missed fn rename in #59284)
Failed merges:
r? @ghost
bors added a commit that referenced this pull request Mar 29, 2019
Rollup of 11 pull requests
Successful merges:
- #58019 (Combine all builtin late lints and make lint checking parallel)
- #59358 (Use `track_errors` instead of hand rolling)
- #59394 (warn -> deny duplicate match bindings)
- #59401 (bootstrap: build crates under libtest with -Z emit-stack-sizes)
- #59423 (Visit path in `walk_mac`)
- #59468 (musl: build toolchain libs with -fPIC)
- #59476 (Use `SmallVec` in `TokenStreamBuilder`.)
- #59496 (Remove unnecessary with_globals calls)
- #59498 (Use 'write_all' instead of 'write' in example code)
- #59503 (Stablize {f32,f64}::copysign().)
- #59511 (Fix missed fn rename in #59284)
Failed merges:
r? @ghost
@bors
bors merged commit e9a8bef into rust-lang:masterMar 29, 2019
@Zoxc
Zoxc deleted the fix-globals branch March 29, 2019 14:41
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: 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.

4 participants

@Zoxc@rust-highfive@oli-obk@bors