inline format!() args up to and including rustc_middle
This commit is contained in:
@@ -247,7 +247,7 @@ pub fn parse_cfg_attr(
|
||||
match parse_in(parse_sess, tokens.clone(), "`cfg_attr` input", |p| p.parse_cfg_attr()) {
|
||||
Ok(r) => return Some(r),
|
||||
Err(mut e) => {
|
||||
e.help(format!("the valid syntax is `{}`", CFG_ATTR_GRAMMAR_HELP))
|
||||
e.help(format!("the valid syntax is `{CFG_ATTR_GRAMMAR_HELP}`"))
|
||||
.note(CFG_ATTR_NOTE_REF)
|
||||
.emit();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user