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

@ -22,7 +22,7 @@ pub fn expand_assert<'cx>(
cx: &'cx mut ExtCtxt,
sp: Span,
tts: &[TokenTree],
) -> Box<MacResult + 'cx> {
) -> Box<dyn MacResult + 'cx> {
let mut parser = cx.new_parser_from_tts(tts);
let cond_expr = panictry!(parser.parse_expr());
let custom_msg_args = if parser.eat(&token::Comma) {