-
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
resolve: mark binding is determined after all macros had been expanded #115269
Conversation
This comment has been minimized.
This comment has been minimized.
ci is failed, thus mark it as draft |
This comment has been minimized.
This comment has been minimized.
reduced for #115269 (comment): // compile-flags: --edition 2021
// check-pass
macro_rules! types {
() => {};
}
mod x {
types!();
mod a {
macro_rules! m {
() => {
"nop"
};
}
pub(crate) use m;
}
mod b {
use crate::x::*;
use std::arch::asm;
pub unsafe fn bbbb() {
asm!(m!());
}
}
pub use self::a::*;
pub use self::b::*;
}
fn main() {} |
I still think it would be nice to make some refactorings mentioned in https://rust-lang.zulipchat.com/#narrow/stream/182449-t-compiler.2Fhelp/topic/Is.20this.20an.20appropriate.20solution.20for.20issue.20.23113834.3F/near/386775859 before proceeding to further fixes. |
This comment has been minimized.
This comment has been minimized.
This comment was marked as resolved.
This comment was marked as resolved.
I have updated the algorithm as follows: the glob binding is marked as
I'm not entirely sure if this is what you're seeking, but I think it comes close. @rustbot ready |
@bors try |
@bors try |
I've added a pre-condition: @rustbot ready |
@bors r+ |
resolve: mark binding is determined after all macros had been expanded Fixes rust-lang#113834 Fixes rust-lang#115377 r? `@petrochenkov`
This comment has been minimized.
This comment has been minimized.
💔 Test failed - checks-actions |
I removed this test in #115269 (comment) as there has a similar struct on @rustbot ready |
@bors r+ |
☀️ Test successful - checks-actions |
Finished benchmarking commit (735bb7e): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 633.201s -> 632.169s (-0.16%) |
Fixes #113834
Fixes #115377
r? @petrochenkov