diff options
| author | ljedrz <ljedrz@gmail.com> | 2018-07-12 11:58:16 +0200 |
|---|---|---|
| committer | ljedrz <ljedrz@gmail.com> | 2018-07-12 11:58:16 +0200 |
| commit | 08c113abef13bd5ed050f7f8480afcd04eda081f (patch) | |
| tree | 0a02ef8e4f3fa98fa60cee0215f5bd0a74fb2784 /src/libsyntax_ext/assert.rs | |
| parent | c946c2539e9690fab5dbf7ac217ec696ac263cf3 (diff) | |
| download | rust-08c113abef13bd5ed050f7f8480afcd04eda081f.tar.gz rust-08c113abef13bd5ed050f7f8480afcd04eda081f.zip | |
Deny bare trait objects in src/libsyntax_ext
Diffstat (limited to 'src/libsyntax_ext/assert.rs')
| -rw-r--r-- | src/libsyntax_ext/assert.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax_ext/assert.rs b/src/libsyntax_ext/assert.rs index fe4d599d824..8d0a04831fc 100644 --- a/src/libsyntax_ext/assert.rs +++ b/src/libsyntax_ext/assert.rs @@ -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) { |
