Remove hir::GenericParam::attrs.
This commit is contained in:
parent
7ea1eacb17
commit
fd8a021757
2 changed files with 1 additions and 5 deletions
|
@ -841,7 +841,6 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
|
||||||
hir::GenericParam {
|
hir::GenericParam {
|
||||||
hir_id: self.lower_node_id(node_id),
|
hir_id: self.lower_node_id(node_id),
|
||||||
name: hir_name,
|
name: hir_name,
|
||||||
attrs: &[],
|
|
||||||
bounds: &[],
|
bounds: &[],
|
||||||
span,
|
span,
|
||||||
pure_wrt_drop: false,
|
pure_wrt_drop: false,
|
||||||
|
@ -1453,7 +1452,6 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
|
||||||
hir_id: self.lower_node_id(def_node_id),
|
hir_id: self.lower_node_id(def_node_id),
|
||||||
name: ParamName::Plain(ident),
|
name: ParamName::Plain(ident),
|
||||||
pure_wrt_drop: false,
|
pure_wrt_drop: false,
|
||||||
attrs: &[],
|
|
||||||
bounds: hir_bounds,
|
bounds: hir_bounds,
|
||||||
span,
|
span,
|
||||||
kind: hir::GenericParamKind::Type {
|
kind: hir::GenericParamKind::Type {
|
||||||
|
@ -1742,7 +1740,6 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
|
||||||
name,
|
name,
|
||||||
span: lifetime.span,
|
span: lifetime.span,
|
||||||
pure_wrt_drop: false,
|
pure_wrt_drop: false,
|
||||||
attrs: &[],
|
|
||||||
bounds: &[],
|
bounds: &[],
|
||||||
kind: hir::GenericParamKind::Lifetime { kind },
|
kind: hir::GenericParamKind::Lifetime { kind },
|
||||||
});
|
});
|
||||||
|
@ -2311,12 +2308,12 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
|
||||||
};
|
};
|
||||||
|
|
||||||
let hir_id = self.lower_node_id(param.id);
|
let hir_id = self.lower_node_id(param.id);
|
||||||
|
self.lower_attrs(hir_id, ¶m.attrs);
|
||||||
hir::GenericParam {
|
hir::GenericParam {
|
||||||
hir_id,
|
hir_id,
|
||||||
name,
|
name,
|
||||||
span: param.ident.span,
|
span: param.ident.span,
|
||||||
pure_wrt_drop: self.sess.contains_name(¶m.attrs, sym::may_dangle),
|
pure_wrt_drop: self.sess.contains_name(¶m.attrs, sym::may_dangle),
|
||||||
attrs: self.lower_attrs(hir_id, ¶m.attrs),
|
|
||||||
bounds: self.arena.alloc_from_iter(bounds),
|
bounds: self.arena.alloc_from_iter(bounds),
|
||||||
kind,
|
kind,
|
||||||
}
|
}
|
||||||
|
|
|
@ -469,7 +469,6 @@ pub enum GenericParamKind<'hir> {
|
||||||
pub struct GenericParam<'hir> {
|
pub struct GenericParam<'hir> {
|
||||||
pub hir_id: HirId,
|
pub hir_id: HirId,
|
||||||
pub name: ParamName,
|
pub name: ParamName,
|
||||||
pub attrs: &'hir [Attribute],
|
|
||||||
pub bounds: GenericBounds<'hir>,
|
pub bounds: GenericBounds<'hir>,
|
||||||
pub span: Span,
|
pub span: Span,
|
||||||
pub pure_wrt_drop: bool,
|
pub pure_wrt_drop: bool,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue