Skip to content

Commit 1d0cb40

Browse files
committed
rustc: remove leftover lifetimes with no bounds from where clauses.
1 parent b25b466 commit 1d0cb40

File tree

11 files changed

+7
-28
lines changed

11 files changed

+7
-28
lines changed

src/librustc/dep_graph/dep_node.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,6 @@ macro_rules! define_dep_nodes {
207207
pub fn new<'a, 'tcx>(tcx: TyCtxt<'tcx>,
208208
dep: DepConstructor<'tcx>)
209209
-> DepNode
210-
where 'tcx,
211-
'tcx
212210
{
213211
match dep {
214212
$(

src/librustc/infer/lattice.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ pub fn super_lattice_tys<'a, 'tcx, L>(
4848
) -> RelateResult<'tcx, Ty<'tcx>>
4949
where
5050
L: LatticeDir<'a, 'tcx>,
51-
'tcx,
5251
{
5352
debug!("{}.lattice_tys({:?}, {:?})",
5453
this.tag(),

src/librustc/traits/select.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,6 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
697697
) -> Result<EvaluationResult, OverflowError>
698698
where
699699
I: IntoIterator<Item = PredicateObligation<'tcx>>,
700-
'tcx,
701700
{
702701
let mut result = EvaluatedToOk;
703702
for obligation in predicates {

src/librustc/ty/query/on_disk_cache.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,6 @@ fn decode_tagged<'a, 'tcx, D, T, V>(decoder: &mut D,
511511
where T: Decodable + Eq + ::std::fmt::Debug,
512512
V: Decodable,
513513
D: DecoderWithPosition,
514-
'tcx,
515514
{
516515
let start_pos = decoder.position();
517516

src/librustc_lint/builtin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1088,7 +1088,7 @@ impl TypeAliasBounds {
10881088

10891089
// We use a HIR visitor to walk the type.
10901090
use rustc::hir::intravisit::{self, Visitor};
1091-
struct WalkAssocTypes<'a, 'db> where 'db {
1091+
struct WalkAssocTypes<'a, 'db> {
10921092
err: &'a mut DiagnosticBuilder<'db>
10931093
}
10941094
impl<'a, 'db, 'v> Visitor<'v> for WalkAssocTypes<'a, 'db> {

src/librustc_metadata/creader.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -293,10 +293,7 @@ impl<'a> CrateLoader<'a> {
293293
&mut self,
294294
locate_ctxt: &mut locator::Context<'b>,
295295
path_kind: PathKind,
296-
) -> Option<(LoadResult, Option<Library>)>
297-
where
298-
'a
299-
{
296+
) -> Option<(LoadResult, Option<Library>)> {
300297
// Use a new locator Context so trying to load a proc macro doesn't affect the error
301298
// message we emit
302299
let mut proc_macro_locator = locate_ctxt.clone();

src/librustc_mir/borrow_check/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1693,7 +1693,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
16931693
fn move_path_closest_to<'a>(
16941694
&mut self,
16951695
place: &'a Place<'tcx>,
1696-
) -> Result<(&'a Place<'tcx>, MovePathIndex), NoMovePathFound> where 'cx {
1696+
) -> Result<(&'a Place<'tcx>, MovePathIndex), NoMovePathFound> {
16971697
let mut last_prefix = place;
16981698
for prefix in self.prefixes(place, PrefixSet::All) {
16991699
if let Some(mpi) = self.move_path_for_place(prefix) {

src/librustc_mir/borrow_check/nll/type_check/liveness/trace.rs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,7 @@ pub(super) fn trace(
5858
}
5959

6060
/// Contextual state for the type-liveness generator.
61-
struct LivenessContext<'me, 'typeck, 'flow, 'tcx>
62-
where
63-
'typeck,
64-
'flow,
65-
'tcx,
66-
{
61+
struct LivenessContext<'me, 'typeck, 'flow, 'tcx> {
6762
/// Current type-checker, giving us our inference context etc.
6863
typeck: &'me mut TypeChecker<'typeck, 'tcx>,
6964

@@ -96,12 +91,7 @@ struct DropData<'tcx> {
9691
region_constraint_data: Option<Rc<Vec<QueryRegionConstraint<'tcx>>>>,
9792
}
9893

99-
struct LivenessResults<'me, 'typeck, 'flow, 'tcx>
100-
where
101-
'typeck,
102-
'flow,
103-
'tcx,
104-
{
94+
struct LivenessResults<'me, 'typeck, 'flow, 'tcx> {
10595
cx: LivenessContext<'me, 'typeck, 'flow, 'tcx>,
10696

10797
/// Set of points that define the current local.

src/librustc_mir/build/matches/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1691,7 +1691,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
16911691
&mut self,
16921692
block: BasicBlock,
16931693
bindings: impl IntoIterator<Item = &'b Binding<'tcx>>,
1694-
) where 'tcx {
1694+
) {
16951695
debug!("bind_matched_candidate_for_arm_body(block={:?})", block);
16961696

16971697
let re_erased = self.hir.tcx().lifetimes.re_erased;

src/librustc_mir/hair/pattern/_match.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -392,9 +392,7 @@ impl<'a, 'tcx> MatchCheckCtxt<'a, 'tcx> {
392392
}
393393
}
394394

395-
fn is_non_exhaustive_variant<'p>(&self, pattern: &'p Pattern<'tcx>) -> bool
396-
where 'a
397-
{
395+
fn is_non_exhaustive_variant<'p>(&self, pattern: &'p Pattern<'tcx>) -> bool {
398396
match *pattern.kind {
399397
PatternKind::Variant { adt_def, variant_index, .. } => {
400398
let ref variant = adt_def.variants[variant_index];

src/librustc_mir/monomorphize/partitioning.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,6 @@ fn numbered_codegen_unit_name(
769769
fn debug_dump<'a, 'b, 'tcx, I>(tcx: TyCtxt<'tcx>, label: &str, cgus: I)
770770
where
771771
I: Iterator<Item = &'b CodegenUnit<'tcx>>,
772-
'tcx,
773772
{
774773
if cfg!(debug_assertions) {
775774
debug!("{}", label);

0 commit comments

Comments
 (0)