Skip to content

Commit 2441253

Browse files
committed
Fix fallout from deny(unused_lifetimes).
1 parent 37799a5 commit 2441253

File tree

167 files changed

+583
-586
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

167 files changed

+583
-586
lines changed

src/librustc/cfg/construct.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ struct LoopScope {
3030
break_index: CFGIndex, // where to go on a `break`
3131
}
3232

33-
pub fn construct<'a, 'tcx>(tcx: TyCtxt<'tcx, 'tcx, 'tcx>,
33+
pub fn construct<'tcx>(tcx: TyCtxt<'tcx, 'tcx, 'tcx>,
3434
body: &hir::Body) -> CFG {
3535
let mut graph = graph::Graph::new();
3636
let entry = graph.add_node(CFGNodeData::Entry);

src/librustc/cfg/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ pub type CFGNode = graph::Node<CFGNodeData>;
4949
pub type CFGEdge = graph::Edge<CFGEdgeData>;
5050

5151
impl CFG {
52-
pub fn new<'a, 'tcx>(tcx: TyCtxt<'tcx, 'tcx, 'tcx>,
52+
pub fn new<'tcx>(tcx: TyCtxt<'tcx, 'tcx, 'tcx>,
5353
body: &hir::Body) -> CFG {
5454
construct::construct(tcx, body)
5555
}

src/librustc/dep_graph/graph.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,7 @@ impl DepGraph {
842842
//
843843
// This method will only load queries that will end up in the disk cache.
844844
// Other queries will not be executed.
845-
pub fn exec_cache_promotions<'a, 'tcx>(&self, tcx: TyCtxt<'tcx, 'tcx, 'tcx>) {
845+
pub fn exec_cache_promotions<'tcx>(&self, tcx: TyCtxt<'tcx, 'tcx, 'tcx>) {
846846
let green_nodes: Vec<DepNode> = {
847847
let data = self.data.as_ref().unwrap();
848848
data.colors.values.indices().filter_map(|prev_index| {

src/librustc/dep_graph/safe.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ impl DepGraphSafe for DefId {
3333

3434
/// The type context itself can be used to access all kinds of tracked
3535
/// state, but those accesses should always generate read events.
36-
impl<'a, 'gcx, 'tcx> DepGraphSafe for TyCtxt<'tcx, 'gcx, 'tcx> {
36+
impl<'gcx, 'tcx> DepGraphSafe for TyCtxt<'tcx, 'gcx, 'tcx> {
3737
}
3838

3939
/// Tuples make it easy to build up state.

src/librustc/infer/canonical/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ impl<'tcx> CanonicalVarValues<'tcx> {
478478
/// `self.var_values == [Type(u32), Lifetime('a), Type(u64)]`
479479
/// we'll return a substitution `subst` with:
480480
/// `subst.var_values == [Type(^0), Lifetime(^1), Type(^2)]`.
481-
pub fn make_identity<'a>(&self, tcx: TyCtxt<'tcx, 'tcx, 'tcx>) -> Self {
481+
pub fn make_identity(&self, tcx: TyCtxt<'tcx, 'tcx, 'tcx>) -> Self {
482482
use crate::ty::subst::UnpackedKind;
483483

484484
CanonicalVarValues {

src/librustc/infer/error_reporting/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ mod need_type_info;
6767

6868
pub mod nice_region_error;
6969

70-
impl<'a, 'gcx, 'tcx> TyCtxt<'tcx, 'gcx, 'tcx> {
70+
impl<'gcx, 'tcx> TyCtxt<'tcx, 'gcx, 'tcx> {
7171
pub fn note_and_explain_region(
7272
self,
7373
region_scope_tree: &region::ScopeTree,

src/librustc/infer/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1624,7 +1624,7 @@ impl<'a, 'gcx, 'tcx> TypeFolder<'gcx, 'tcx> for ShallowResolver<'a, 'gcx, 'tcx>
16241624
}
16251625
}
16261626

1627-
impl<'a, 'gcx, 'tcx> TypeTrace<'tcx> {
1627+
impl<'gcx, 'tcx> TypeTrace<'tcx> {
16281628
pub fn span(&self) -> Span {
16291629
self.cause.span
16301630
}

src/librustc/infer/outlives/free_region_map.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ impl<'tcx> FreeRegionMap<'tcx> {
2828
/// cases, this is more conservative than necessary, in order to
2929
/// avoid making arbitrary choices. See
3030
/// `TransitiveRelation::postdom_upper_bound` for more details.
31-
pub fn lub_free_regions<'a, 'gcx>(&self,
31+
pub fn lub_free_regions<'gcx>(&self,
3232
tcx: TyCtxt<'tcx, 'gcx, 'tcx>,
3333
r_a: Region<'tcx>,
3434
r_b: Region<'tcx>)
@@ -90,7 +90,7 @@ impl_stable_hash_for!(struct FreeRegionMap<'tcx> {
9090

9191
impl<'a, 'tcx> Lift<'tcx> for FreeRegionMap<'a> {
9292
type Lifted = FreeRegionMap<'tcx>;
93-
fn lift_to_tcx<'b, 'gcx>(&self, tcx: TyCtxt<'tcx, 'gcx, 'tcx>) -> Option<FreeRegionMap<'tcx>> {
93+
fn lift_to_tcx<'gcx>(&self, tcx: TyCtxt<'tcx, 'gcx, 'tcx>) -> Option<FreeRegionMap<'tcx>> {
9494
self.relation.maybe_map(|&fr| tcx.lift(&fr))
9595
.map(|relation| FreeRegionMap { relation })
9696
}

src/librustc/infer/region_constraints/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,7 @@ impl<'tcx> fmt::Display for GenericKind<'tcx> {
849849
}
850850
}
851851

852-
impl<'a, 'gcx, 'tcx> GenericKind<'tcx> {
852+
impl<'gcx, 'tcx> GenericKind<'tcx> {
853853
pub fn to_ty(&self, tcx: TyCtxt<'tcx, 'gcx, 'tcx>) -> Ty<'tcx> {
854854
match *self {
855855
GenericKind::Param(ref p) => p.to_ty(tcx),

src/librustc/infer/unify_key.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use std::marker::PhantomData;
1010
use std::cell::RefMut;
1111

1212
pub trait ToType {
13-
fn to_type<'a, 'gcx, 'tcx>(&self, tcx: TyCtxt<'tcx, 'gcx, 'tcx>) -> Ty<'tcx>;
13+
fn to_type<'gcx, 'tcx>(&self, tcx: TyCtxt<'tcx, 'gcx, 'tcx>) -> Ty<'tcx>;
1414
}
1515

1616
impl UnifyKey for ty::IntVid {
@@ -52,7 +52,7 @@ impl UnifyKey for ty::RegionVid {
5252
}
5353

5454
impl ToType for IntVarValue {
55-
fn to_type<'a, 'gcx, 'tcx>(&self, tcx: TyCtxt<'tcx, 'gcx, 'tcx>) -> Ty<'tcx> {
55+
fn to_type<'gcx, 'tcx>(&self, tcx: TyCtxt<'tcx, 'gcx, 'tcx>) -> Ty<'tcx> {
5656
match *self {
5757
ty::IntType(i) => tcx.mk_mach_int(i),
5858
ty::UintType(i) => tcx.mk_mach_uint(i),
@@ -72,7 +72,7 @@ impl UnifyKey for ty::FloatVid {
7272
impl EqUnifyValue for FloatVarValue {}
7373

7474
impl ToType for FloatVarValue {
75-
fn to_type<'a, 'gcx, 'tcx>(&self, tcx: TyCtxt<'tcx, 'gcx, 'tcx>) -> Ty<'tcx> {
75+
fn to_type<'gcx, 'tcx>(&self, tcx: TyCtxt<'tcx, 'gcx, 'tcx>) -> Ty<'tcx> {
7676
tcx.mk_mach_float(self.0)
7777
}
7878
}

0 commit comments

Comments
 (0)