1
Fork 0

Rollup merge of #100669 - nnethercote:attribute-cleanups, r=spastorino

Attribute cleanups

r? `@ghost`
This commit is contained in:
Matthias Krüger 2022-08-18 05:10:48 +02:00 committed by GitHub
commit 3e057d1512
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 6 additions and 29 deletions

View file

@ -107,14 +107,13 @@ impl<'a> ExtCtxt<'a> {
&self,
span: Span,
ident: Ident,
attrs: Vec<ast::Attribute>,
bounds: ast::GenericBounds,
default: Option<P<ast::Ty>>,
) -> ast::GenericParam {
ast::GenericParam {
ident: ident.with_span_pos(span),
id: ast::DUMMY_NODE_ID,
attrs: attrs.into(),
attrs: AttrVec::new(),
bounds,
kind: ast::GenericParamKind::Type { default },
is_placeholder: false,