Skip to content

Commit 356a37d

Browse files
committed
rustc: remove unused lifetimes.
1 parent 1d0cb40 commit 356a37d

File tree

9 files changed

+17
-17
lines changed

9 files changed

+17
-17
lines changed

src/librustc/dep_graph/dep_node.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ macro_rules! define_dep_nodes {
204204
impl DepNode {
205205
#[allow(unreachable_code, non_snake_case)]
206206
#[inline(always)]
207-
pub fn new<'a, 'tcx>(tcx: TyCtxt<'tcx>,
207+
pub fn new<'tcx>(tcx: TyCtxt<'tcx>,
208208
dep: DepConstructor<'tcx>)
209209
-> DepNode
210210
{

src/librustc/middle/liveness.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ impl IrMaps<'tcx> {
352352
}
353353
}
354354

355-
fn visit_fn<'a, 'tcx>(
355+
fn visit_fn<'tcx>(
356356
ir: &mut IrMaps<'tcx>,
357357
fk: FnKind<'tcx>,
358358
decl: &'tcx hir::FnDecl,

src/librustc/traits/select.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
690690
/// Evaluates the predicates in `predicates` recursively. Note that
691691
/// this applies projections in the predicates, and therefore
692692
/// is run within an inference probe.
693-
fn evaluate_predicates_recursively<'a, 'o, I>(
693+
fn evaluate_predicates_recursively<'o, I>(
694694
&mut self,
695695
stack: TraitObligationStackList<'o, 'tcx>,
696696
predicates: I,

src/librustc/ty/query/on_disk_cache.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ impl<'a, 'tcx> DecoderWithPosition for CacheDecoder<'a, 'tcx> {
505505

506506
// Decode something that was encoded with encode_tagged() and verify that the
507507
// tag matches and the correct amount of bytes was read.
508-
fn decode_tagged<'a, 'tcx, D, T, V>(decoder: &mut D,
508+
fn decode_tagged<D, T, V>(decoder: &mut D,
509509
expected_tag: T)
510510
-> Result<V, D::Error>
511511
where T: Decodable + Eq + ::std::fmt::Debug,

src/librustc_codegen_llvm/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ impl ExtraBackendMethods for LlvmCodegenBackend {
125125
) {
126126
unsafe { allocator::codegen(tcx, mods, kind) }
127127
}
128-
fn compile_codegen_unit<'a, 'tcx>(&self, tcx: TyCtxt<'tcx>, cgu_name: InternedString) {
128+
fn compile_codegen_unit<'tcx>(&self, tcx: TyCtxt<'tcx>, cgu_name: InternedString) {
129129
base::compile_codegen_unit(tcx, cgu_name);
130130
}
131131
fn target_machine_factory(

src/librustc_codegen_ssa/traits/backend.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ pub trait ExtraBackendMethods: CodegenBackend + WriteBackendMethods + Sized + Se
4444
mods: &mut Self::Module,
4545
kind: AllocatorKind,
4646
);
47-
fn compile_codegen_unit<'a, 'tcx>(&self, tcx: TyCtxt<'tcx>, cgu_name: InternedString);
47+
fn compile_codegen_unit<'tcx>(&self, tcx: TyCtxt<'tcx>, cgu_name: InternedString);
4848
// If find_features is true this won't access `sess.crate_types` by assuming
4949
// that `is_pie_binary` is false. When we discover LLVM target features
5050
// `sess.crate_types` is uninitialized so we cannot access it.

src/librustc_mir/hair/cx/to_ref.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,31 @@ pub trait ToRef {
88
fn to_ref(self) -> Self::Output;
99
}
1010

11-
impl<'a, 'tcx> ToRef for &'tcx hir::Expr {
11+
impl<'tcx> ToRef for &'tcx hir::Expr {
1212
type Output = ExprRef<'tcx>;
1313

1414
fn to_ref(self) -> ExprRef<'tcx> {
1515
ExprRef::Hair(self)
1616
}
1717
}
1818

19-
impl<'a, 'tcx> ToRef for &'tcx P<hir::Expr> {
19+
impl<'tcx> ToRef for &'tcx P<hir::Expr> {
2020
type Output = ExprRef<'tcx>;
2121

2222
fn to_ref(self) -> ExprRef<'tcx> {
2323
ExprRef::Hair(&**self)
2424
}
2525
}
2626

27-
impl<'a, 'tcx> ToRef for Expr<'tcx> {
27+
impl<'tcx> ToRef for Expr<'tcx> {
2828
type Output = ExprRef<'tcx>;
2929

3030
fn to_ref(self) -> ExprRef<'tcx> {
3131
ExprRef::Mirror(Box::new(self))
3232
}
3333
}
3434

35-
impl<'a, 'tcx, T, U> ToRef for &'tcx Option<T>
35+
impl<'tcx, T, U> ToRef for &'tcx Option<T>
3636
where &'tcx T: ToRef<Output = U>
3737
{
3838
type Output = Option<U>;
@@ -42,7 +42,7 @@ impl<'a, 'tcx, T, U> ToRef for &'tcx Option<T>
4242
}
4343
}
4444

45-
impl<'a, 'tcx, T, U> ToRef for &'tcx Vec<T>
45+
impl<'tcx, T, U> ToRef for &'tcx Vec<T>
4646
where &'tcx T: ToRef<Output = U>
4747
{
4848
type Output = Vec<U>;
@@ -52,7 +52,7 @@ impl<'a, 'tcx, T, U> ToRef for &'tcx Vec<T>
5252
}
5353
}
5454

55-
impl<'a, 'tcx, T, U> ToRef for &'tcx P<[T]>
55+
impl<'tcx, T, U> ToRef for &'tcx P<[T]>
5656
where &'tcx T: ToRef<Output = U>
5757
{
5858
type Output = Vec<U>;

src/librustc_mir/hair/pattern/_match.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -983,7 +983,7 @@ enum MissingCtors<'tcx> {
983983
// (The split logic gives a performance win, because we always need to know if
984984
// the set is empty, but we rarely need the full set, and it can be expensive
985985
// to compute the full set.)
986-
fn compute_missing_ctors<'a, 'tcx>(
986+
fn compute_missing_ctors<'tcx>(
987987
info: MissingCtorsInfo,
988988
tcx: TyCtxt<'tcx>,
989989
all_ctors: &Vec<Constructor<'tcx>>,
@@ -1518,7 +1518,7 @@ fn should_treat_range_exhaustively(tcx: TyCtxt<'tcx>, ctor: &Constructor<'tcx>)
15181518
/// boundaries for each interval range, sort them, then create constructors for each new interval
15191519
/// between every pair of boundary points. (This essentially sums up to performing the intuitive
15201520
/// merging operation depicted above.)
1521-
fn split_grouped_constructors<'p, 'a, 'tcx>(
1521+
fn split_grouped_constructors<'p, 'tcx>(
15221522
tcx: TyCtxt<'tcx>,
15231523
ctors: Vec<Constructor<'tcx>>,
15241524
&Matrix(ref m): &Matrix<'p, 'tcx>,
@@ -1596,7 +1596,7 @@ fn split_grouped_constructors<'p, 'a, 'tcx>(
15961596
}
15971597

15981598
/// Checks whether there exists any shared value in either `ctor` or `pat` by intersecting them.
1599-
fn constructor_intersects_pattern<'p, 'a, 'tcx>(
1599+
fn constructor_intersects_pattern<'p, 'tcx>(
16001600
tcx: TyCtxt<'tcx>,
16011601
ctor: &Constructor<'tcx>,
16021602
pat: &'p Pattern<'tcx>,
@@ -1686,7 +1686,7 @@ fn constructor_covered_by_range<'tcx>(
16861686
}
16871687
}
16881688

1689-
fn patterns_for_variant<'p, 'a, 'tcx>(
1689+
fn patterns_for_variant<'p, 'tcx>(
16901690
subpatterns: &'p [FieldPattern<'tcx>],
16911691
wild_patterns: &[&'p Pattern<'tcx>])
16921692
-> SmallVec<[&'p Pattern<'tcx>; 2]>

src/librustc_mir/monomorphize/collector.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ fn collect_roots<'tcx>(tcx: TyCtxt<'tcx>, mode: MonoItemCollectionMode) -> Vec<M
345345
}
346346

347347
// Collect all monomorphized items reachable from `starting_point`
348-
fn collect_items_rec<'a, 'tcx>(
348+
fn collect_items_rec<'tcx>(
349349
tcx: TyCtxt<'tcx>,
350350
starting_point: MonoItem<'tcx>,
351351
visited: MTRef<'_, MTLock<FxHashSet<MonoItem<'tcx>>>>,

0 commit comments

Comments
 (0)