-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
remove unnecessary tasks #41063
remove unnecessary tasks #41063
Conversation
|
||
pub fn provide(providers: &mut Providers) { | ||
*providers = Providers { | ||
borrowck: borrowck, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be borrowck,
(otherwise there's no point in using this style and you can just assign to providers.borrowck
).
@@ -51,4 +51,6 @@ mod borrowck; | |||
|
|||
pub mod graphviz; | |||
|
|||
pub use borrowck::provide; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The nesting of borrowck
still bugs me, heh.
@@ -887,6 +887,7 @@ pub fn phase_3_run_analysis_passes<'tcx, F, R>(sess: &'tcx Session, | |||
let mut local_providers = ty::maps::Providers::default(); | |||
mir::provide(&mut local_providers); | |||
rustc_privacy::provide(&mut local_providers); | |||
borrowck::provide(&mut local_providers); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note to self: make a macro to clean this up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me with nits fixed (if wanted)
@bors r=eddyb |
📌 Commit 2e327a6 has been approved by |
⌛ Testing commit 2e327a6 with merge d17e83a... |
…c-loops, r=eddyb remove unnecessary tasks Remove various unnecessary tasks. All of these are "always execute" tasks that don't do any writes to tracked state (or else an assert would trigger, anyhow). In some cases, they issue lints or errors, but we''ll deal with that -- and anyway side-effects outside of a task don't cause problems for anything that I can see. The one non-trivial refactoring here is the borrowck conversion, which adds the requirement to go from a `DefId` to a `BodyId`. I tried to make a useful helper here. r? @eddyb cc rust-lang#40746 cc @cramertj @michaelwoerister
💔 Test failed - status-travis |
Remove various unnecessary tasks. All of these are "always execute" tasks that don't do any writes to tracked state (or else an assert would trigger, anyhow). In some cases, they issue lints or errors, but we''ll deal with that -- and anyway side-effects outside of a task don't cause problems for anything that I can see.
The one non-trivial refactoring here is the borrowck conversion, which adds the requirement to go from a
DefId
to aBodyId
. I tried to make a useful helper here.r? @eddyb
cc #40746
cc @cramertj @michaelwoerister