Deny bare trait objects in src/libsyntax_ext

This commit is contained in:
ljedrz
2018-07-12 11:58:16 +02:00
parent c946c2539e
commit 08c113abef
26 changed files with 37 additions and 35 deletions

View File

@@ -679,7 +679,7 @@ impl<'a, 'b> Context<'a, 'b> {
pub fn expand_format_args<'cx>(ecx: &'cx mut ExtCtxt,
mut sp: Span,
tts: &[tokenstream::TokenTree])
-> Box<base::MacResult + 'cx> {
-> Box<dyn base::MacResult + 'cx> {
sp = sp.apply_mark(ecx.current_expansion.mark);
match parse_args(ecx, sp, tts) {
Some((efmt, args, names)) => {