We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
My repro is nested inside a macro, but I'm not sure if that is important:
macro_rules! add_message_to_notes { - ($msg:expr) => {{ + ($msg: expr) => {{ let mut lines = message.lines(); notes.push_str(&format!("\n{}: {}", level, lines.next().unwrap())); for line in lines { notes.push_str(&format!( - "\n{:indent$}{line}", + "\n{:indent$line}", "", indent = level.len() + 2, line = line, )); } - }} + }}; }
The error is removing }{ from "\n{:indent$}{line}"
}{
"\n{:indent$}{line}"
The text was updated successfully, but these errors were encountered:
I doubt that replace_names is doing somthing wrong, so I think being inside a macro is relevant.
replace_names
Sorry, something went wrong.
Add a test for rust-lang#2538
9cc0388
No branches or pull requests
My repro is nested inside a macro, but I'm not sure if that is important:
The error is removing
}{
from"\n{:indent$}{line}"
The text was updated successfully, but these errors were encountered: