Rename ast::Static
to ast::StaticItem
to match ast::ConstItem
This commit is contained in:
parent
4bebdd7104
commit
373807a95c
15 changed files with 68 additions and 68 deletions
|
@ -688,7 +688,7 @@ impl<'a, 'b, 'tcx> BuildReducedGraphVisitor<'a, 'b, 'tcx> {
|
|||
}
|
||||
|
||||
// These items live in the value namespace.
|
||||
ItemKind::Static(box ast::Static { mutability, .. }) => {
|
||||
ItemKind::Static(box ast::StaticItem { mutability, .. }) => {
|
||||
let res = Res::Def(DefKind::Static(mutability), def_id);
|
||||
self.r.define(parent, ident, ValueNS, (res, vis, sp, expansion));
|
||||
}
|
||||
|
|
|
@ -2346,7 +2346,7 @@ impl<'a: 'ast, 'b, 'ast, 'tcx> LateResolutionVisitor<'a, 'b, 'ast, 'tcx> {
|
|||
});
|
||||
}
|
||||
|
||||
ItemKind::Static(box ast::Static { ref ty, ref expr, .. })
|
||||
ItemKind::Static(box ast::StaticItem { ref ty, ref expr, .. })
|
||||
| ItemKind::Const(box ast::ConstItem { ref ty, ref expr, .. }) => {
|
||||
self.with_static_rib(|this| {
|
||||
this.with_lifetime_rib(LifetimeRibKind::Elided(LifetimeRes::Static), |this| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue