-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Add AdHocCalls and pass self to build_controller as Box<Self> #50844
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
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
The job Click to expand the log.
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 |
r? @nrc |
src/librustc_driver/lib.rs
Outdated
#[derive(Copy, Clone)] | ||
pub struct RustcDefaultCalls; | ||
|
||
pub enum AdHocCalls<'a> { |
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.
Could you document AdHocCalls
please? It's not exactly clear to me what it does - is it purely a convenience to avoid implementing build_controller
?
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.
Yes
The job Click to expand the log.
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 |
The job Click to expand the log.
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 |
The job Click to expand the log.
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 |
The job Click to expand the log.
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 |
4c10382
to
bfca4aa
Compare
The job Click to expand the log.
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 |
bfca4aa
to
f9b082d
Compare
Travis is green |
Ping @nrc |
src/librustc_driver/lib.rs
Outdated
#[derive(Copy, Clone)] | ||
pub struct RustcDefaultCalls; | ||
|
||
/// CompilerCalls instance for quick access to the result of one compile phase. | ||
pub enum AdHocCalls<'a> { |
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.
Why is this an enum rather than a struct?
The job Click to expand the log.
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 |
The job Click to expand the log.
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 |
What happened there? |
The job Click to expand the log.
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 |
287bfc8
to
3086800
Compare
Ping from triage, @nrc ! |
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.
Just needs a comment, r=me with that
src/librustc_driver/driver.rs
Outdated
@@ -414,6 +414,63 @@ impl<'a> CompileController<'a> { | |||
} | |||
} | |||
|
|||
impl<'a> ::CompilerCalls<'a> for CompileController<'a> { |
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.
Could you document this please? Why is this impl significant how should clients who are making a new controller do things?
The job Click to expand the log.
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 |
@bors: r+ |
📌 Commit e9b4c53 has been approved by |
@bors r=nrc |
📌 Commit cc5c1a0 has been approved by |
Add AdHocCalls and pass self to build_controller as Box<Self> This makes it easier to write custom drivers.
💔 Test failed - status-travis |
The job Click to expand the log.
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 |
1 similar comment
The job Click to expand the log.
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 |
@bors retry - timeout |
Add AdHocCalls and pass self to build_controller as Box<Self> This makes it easier to write custom drivers.
💥 Test timed out |
@bors retry |
Add AdHocCalls and pass self to build_controller as Box<Self> This makes it easier to write custom drivers.
☀️ Test successful - status-appveyor, status-travis |
📣 Toolstate changed by #50844! Tested on commit 685faa2. 💔 miri on windows: test-pass → build-fail (cc @oli-obk @RalfJung @eddyb, @rust-lang/infra). |
Tested on commit rust-lang/rust@685faa2. Direct link to PR: <rust-lang/rust#50844> 💔 miri on windows: test-pass → build-fail (cc @oli-obk @RalfJung @eddyb, @rust-lang/infra). 💔 miri on linux: test-pass → build-fail (cc @oli-obk @RalfJung @eddyb, @rust-lang/infra). 💔 rls on windows: test-pass → build-fail (cc @nrc, @rust-lang/infra). 💔 rls on linux: test-pass → build-fail (cc @nrc, @rust-lang/infra).
This makes it easier to write custom drivers.