diff options
| author | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2016-10-19 07:59:59 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-10-19 07:59:59 +0300 |
| commit | 373fcd1bd358c27db02fa65800c23c148046348c (patch) | |
| tree | a393e27f916457a59d759606037c59a594b09dcb /src/libsyntax/print | |
| parent | 6e3a72d256d862904703e429499356bfea5cf5e8 (diff) | |
| parent | 10a58ac49b7529e39fc2ad823204853f3538d90b (diff) | |
| download | rust-373fcd1bd358c27db02fa65800c23c148046348c.tar.gz rust-373fcd1bd358c27db02fa65800c23c148046348c.zip | |
Rollup merge of #37117 - pnkfelix:may-dangle-attr, r=nikomatsakis
`#[may_dangle]` attribute `#[may_dangle]` attribute Second step of #34761. Last big hurdle before we can work in earnest towards Allocator integration (#32838) Note: I am not clear if this is *also* a syntax-breaking change that needs to be part of a breaking-batch.
Diffstat (limited to 'src/libsyntax/print')
| -rw-r--r-- | src/libsyntax/print/pprust.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index ecb437f31a5..3a0f9cd8ec4 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -1361,6 +1361,7 @@ impl<'a> State<'a> { if comma { try!(self.word_space(",")) } + try!(self.print_outer_attributes_inline(&lifetime_def.attrs)); try!(self.print_lifetime_bounds(&lifetime_def.lifetime, &lifetime_def.bounds)); comma = true; } @@ -2803,6 +2804,7 @@ impl<'a> State<'a> { try!(self.commasep(Inconsistent, &ints[..], |s, &idx| { if idx < generics.lifetimes.len() { let lifetime_def = &generics.lifetimes[idx]; + try!(s.print_outer_attributes_inline(&lifetime_def.attrs)); s.print_lifetime_bounds(&lifetime_def.lifetime, &lifetime_def.bounds) } else { let idx = idx - generics.lifetimes.len(); @@ -2816,6 +2818,7 @@ impl<'a> State<'a> { } pub fn print_ty_param(&mut self, param: &ast::TyParam) -> io::Result<()> { + try!(self.print_outer_attributes_inline(¶m.attrs)); try!(self.print_ident(param.ident)); try!(self.print_bounds(":", ¶m.bounds)); match param.default { |
