-
Notifications
You must be signed in to change notification settings - Fork 1.8k
fix: Use ROOT
hygiene for args
inside new format_args!
expansion
#20073
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
fix: Use ROOT
hygiene for args
inside new format_args!
expansion
#20073
Conversation
r#"//- minicore: todo, unimplemented, fmt_before_1_89_0 | ||
fn f() { let a: u128 = 1; let b: u128 = todo$0!("asd") }"#, | ||
r#"//- minicore: todo, unimplemented | ||
fn f() { let a: u128 = 1; let b: u128 = unimplemented$0!("asd") }"#, |
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 tests was identical with the above one and I think this is the original intention
r#"//- minicore: todo, unimplemented, fmt_before_1_89_0 | ||
fn f() { let a: u128 = 1; let b: u128 = todo$0!("asd") }"#, | ||
r#"//- minicore: todo, unimplemented | ||
fn f() { let a: u128 = 1; let b: u128 = unimplemented$0!() }"#, |
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.
Same as the above
format_args!
expansionformat_args!
expansion
I think I prefer to just allocate the binding with |
Oh, that would be much simpler and plausible as everything is inside a block 😄 |
cc6b4ac
to
254c6ec
Compare
format_args!
expansionROOT
hygiene for args
inside new format_args!
expansion
I thought that this was because we don't have
super let
but it was definitely my mistake in #20056 😅