Fallout of std::str stabilization
This commit is contained in:
parent
4908017d59
commit
082bfde412
193 changed files with 2143 additions and 2230 deletions
|
@ -58,7 +58,7 @@ pub fn expand_diagnostic_used<'cx>(ecx: &'cx mut ExtCtxt,
|
|||
Some(previous_span) => {
|
||||
ecx.span_warn(span, format!(
|
||||
"diagnostic code {} already used", token::get_ident(code).get()
|
||||
).as_slice());
|
||||
)[]);
|
||||
ecx.span_note(previous_span, "previous invocation");
|
||||
},
|
||||
None => ()
|
||||
|
@ -87,12 +87,12 @@ pub fn expand_register_diagnostic<'cx>(ecx: &'cx mut ExtCtxt,
|
|||
if diagnostics.insert(code.name, description).is_some() {
|
||||
ecx.span_err(span, format!(
|
||||
"diagnostic code {} already registered", token::get_ident(*code).get()
|
||||
).as_slice());
|
||||
)[]);
|
||||
}
|
||||
});
|
||||
let sym = Ident::new(token::gensym((
|
||||
"__register_diagnostic_".to_string() + token::get_ident(*code).get()
|
||||
).as_slice()));
|
||||
)[]));
|
||||
MacItems::new(vec![quote_item!(ecx, mod $sym {}).unwrap()].into_iter())
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue