Skip to content

Commit 10229fd

Browse files
committed
Rename DefPathData::LifetimeDef to LifetimeParam
1 parent c654548 commit 10229fd

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

src/librustc/hir/lowering.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ impl<'a> LoweringContext<'a> {
699699
self.resolver.definitions().create_def_with_parent(
700700
parent_id.index,
701701
def_node_id,
702-
DefPathData::LifetimeDef(str_name.as_interned_str()),
702+
DefPathData::LifetimeParam(str_name.as_interned_str()),
703703
DefIndexAddressSpace::High,
704704
Mark::root(),
705705
span,
@@ -1424,7 +1424,7 @@ impl<'a> LoweringContext<'a> {
14241424
self.context.resolver.definitions().create_def_with_parent(
14251425
self.parent,
14261426
def_node_id,
1427-
DefPathData::LifetimeDef(name.name().as_interned_str()),
1427+
DefPathData::LifetimeParam(name.name().as_interned_str()),
14281428
DefIndexAddressSpace::High,
14291429
Mark::root(),
14301430
lifetime.span,

src/librustc/hir/map/def_collector.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ impl<'a> visit::Visitor<'a> for DefCollector<'a> {
173173
fn visit_generic_param(&mut self, param: &'a GenericParamAST) {
174174
let name = param.ident.name.as_interned_str();
175175
let def_path_data = match param.kind {
176-
GenericParamKindAST::Lifetime { .. } => DefPathData::LifetimeDef(name),
176+
GenericParamKindAST::Lifetime { .. } => DefPathData::LifetimeParam(name),
177177
GenericParamKindAST::Type { .. } => DefPathData::TypeParam(name),
178178
};
179179
self.create_def(

src/librustc/hir/map/definitions.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ pub enum DefPathData {
360360
/// A type parameter (generic parameter)
361361
TypeParam(InternedString),
362362
/// A lifetime definition
363-
LifetimeDef(InternedString),
363+
LifetimeParam(InternedString),
364364
/// A variant of a enum
365365
EnumVariant(InternedString),
366366
/// A struct field
@@ -625,7 +625,7 @@ impl DefPathData {
625625
Module(name) |
626626
MacroDef(name) |
627627
TypeParam(name) |
628-
LifetimeDef(name) |
628+
LifetimeParam(name) |
629629
EnumVariant(name) |
630630
Field(name) |
631631
GlobalMetaData(name) => Some(name),
@@ -652,7 +652,7 @@ impl DefPathData {
652652
Module(name) |
653653
MacroDef(name) |
654654
TypeParam(name) |
655-
LifetimeDef(name) |
655+
LifetimeParam(name) |
656656
EnumVariant(name) |
657657
Field(name) |
658658
GlobalMetaData(name) => {

src/librustc/ty/item_path.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
215215
data @ DefPathData::ValueNs(..) |
216216
data @ DefPathData::Module(..) |
217217
data @ DefPathData::TypeParam(..) |
218-
data @ DefPathData::LifetimeDef(..) |
218+
data @ DefPathData::LifetimeParam(..) |
219219
data @ DefPathData::EnumVariant(..) |
220220
data @ DefPathData::Field(..) |
221221
data @ DefPathData::AnonConst |

src/librustc/util/ppaux.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ impl PrintContext {
287287
DefPathData::MacroDef(_) |
288288
DefPathData::ClosureExpr |
289289
DefPathData::TypeParam(_) |
290-
DefPathData::LifetimeDef(_) |
290+
DefPathData::LifetimeParam(_) |
291291
DefPathData::Field(_) |
292292
DefPathData::StructCtor |
293293
DefPathData::AnonConst |

0 commit comments

Comments
 (0)