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

Cleanup rustc/middle #54756

Merged
merged 4 commits into from
Oct 6, 2018
Merged

Cleanup rustc/middle #54756

merged 4 commits into from
Oct 6, 2018

Conversation

ljedrz
Copy link
Contributor

@ljedrz ljedrz commented Oct 2, 2018

  • improve allocations
  • use Cow<'static, str> where applicable
  • improve some patterns
  • whitespace & formatting fixes

@rust-highfive
Copy link
Collaborator

r? @michaelwoerister

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

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 2, 2018
@bors
Copy link
Contributor

bors commented Oct 3, 2018

☔ The latest upstream changes (presumably #54767) made this pull request unmergeable. Please resolve the merge conflicts.

@rust-highfive
Copy link
Collaborator

The job x86_64-gnu-llvm-5.0 of your PR failed on Travis (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
[00:07:46] 
[00:07:46] error[E0614]: type `syntax_pos::Span` cannot be dereferenced
[00:07:46]     --> librustc/middle/resolve_lifetime.rs:1109:22
[00:07:46]      |
[00:07:46] 1109 |         ).span_label(*explicit_span, "explicit lifetime definition here")
[00:07:46] 
[00:07:54] error: aborting due to 3 previous errors
[00:07:54] 
[00:07:54] For more information about this error, try `rustc --explain E0614`.
[00:07:54] For more information about this error, try `rustc --explain E0614`.
[00:07:54] error: Could not compile `rustc`.
[00:07:54] 
[00:07:54] To learn more, run the command again with --verbose.
[00:07:54] command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "build" "--target" "x86_64-unknown-linux-gnu" "-j" "4" "--release" "--locked" "--color" "always" "--features" " jemalloc" "--manifest-path" "/checkout/src/rustc/Cargo.toml" "--message-format" "json"
[00:07:54] expected success, got: exit code: 101
[00:07:54] thread 'main' panicked at 'cargo must succeed', bootstrap/compile.rs:1112:9
[00:07:54] travis_fold:end:stage0-rustc

[00:07:54] travis_time:end:stage0-rustc:start=1538561089982951430,finish=1538561248173324841,duration=158190373411


[00:07:54] failed to run: /checkout/obj/build/bootstrap/debug/bootstrap build
[00:07:54] Build completed unsuccessfully in 0:03:31
[00:07:54] Makefile:28: recipe for target 'all' failed
[00:07:54] make: *** [all] Error 1

The command "stamp sh -x -c "$RUN_SCRIPT"" exited with 2.
travis_time:start:0b440822
$ date && (curl -fs --head https://google.com | grep ^Date: | sed 's/Date: //g' || true)

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @TimNN. (Feature Requests)

@ljedrz
Copy link
Contributor Author

ljedrz commented Oct 3, 2018

Rebased.

@ljedrz
Copy link
Contributor Author

ljedrz commented Oct 3, 2018

It seems @michaelwoerister might be currently unavailable;

r? @zackmdavis

@zackmdavis
Copy link
Member

(I'll take a look Friday evening.)

});

let explicit = lifetime_params.by_ref().find(|(kind, _)| *kind == LifetimeParamKind::Explicit);
let in_band = lifetime_params.find(|(kind, _)| *kind == LifetimeParamKind::InBand);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks a bit problematic. From the code it's not entirely clear if the second find will see any elements, since they might have been consumed by the first find. I'd just leave this as is.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, you're right; I'll fix it shortly.

@ljedrz
Copy link
Contributor Author

ljedrz commented Oct 4, 2018

@michaelwoerister thanks, issue addressed.

@michaelwoerister
Copy link
Member

Thanks! @bors r+

@bors
Copy link
Contributor

bors commented Oct 4, 2018

📌 Commit 97d37ed8a89c40aaca429c3b73b22cae70164722 has been approved by michaelwoerister

@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 Oct 4, 2018
@bors
Copy link
Contributor

bors commented Oct 5, 2018

☔ The latest upstream changes (presumably #54741) made this pull request unmergeable. Please resolve the merge conflicts.

@bors bors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Oct 5, 2018
@ljedrz
Copy link
Contributor Author

ljedrz commented Oct 6, 2018

Rebased.

@michaelwoerister
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Oct 6, 2018

📌 Commit 786b86e has been approved by michaelwoerister

@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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Oct 6, 2018
@bors
Copy link
Contributor

bors commented Oct 6, 2018

⌛ Testing commit 786b86e with merge 4efdc04...

bors added a commit that referenced this pull request Oct 6, 2018
Cleanup rustc/middle

- improve allocations
- use `Cow<'static, str>` where applicable
- improve some patterns
- whitespace & formatting fixes
@bors
Copy link
Contributor

bors commented Oct 6, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: michaelwoerister
Pushing 4efdc04 to master...

@bors bors merged commit 786b86e into rust-lang:master Oct 6, 2018
@ljedrz ljedrz deleted the cleanup_middle branch October 7, 2018 06:11
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.

5 participants