Skip to content

Commit a3dda49

Browse files
committed
Remove needless lifetimes
1 parent 01d8121 commit a3dda49

File tree

16 files changed

+66
-66
lines changed

16 files changed

+66
-66
lines changed

src/librustc/hir/check_attr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ fn is_c_like_enum(item: &hir::Item) -> bool {
347347
}
348348
}
349349

350-
fn check_mod_attrs<'tcx>(tcx: TyCtxt<'tcx>, module_def_id: DefId) {
350+
fn check_mod_attrs(tcx: TyCtxt<'_>, module_def_id: DefId) {
351351
tcx.hir().visit_item_likes_in_module(
352352
module_def_id,
353353
&mut CheckAttrVisitor { tcx }.as_deep_visitor()

src/librustc/infer/type_variable.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ impl<'tcx> TypeVariableTable<'tcx> {
115115
///
116116
/// Note that this function does not return care whether
117117
/// `vid` has been unified with something else or not.
118-
pub fn var_diverges<'a>(&'a self, vid: ty::TyVid) -> bool {
118+
pub fn var_diverges(&self, vid: ty::TyVid) -> bool {
119119
self.values.get(vid.index as usize).diverging
120120
}
121121

src/librustc_data_structures/graph/implementation/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,11 +247,11 @@ impl<N: Debug, E: Debug> Graph<N, E> {
247247
self.incoming_edges(target).sources()
248248
}
249249

250-
pub fn depth_traverse<'a>(
251-
&'a self,
250+
pub fn depth_traverse(
251+
&self,
252252
start: NodeIndex,
253253
direction: Direction,
254-
) -> DepthFirstTraversal<'a, N, E> {
254+
) -> DepthFirstTraversal<'_, N, E> {
255255
DepthFirstTraversal::with_start_node(self, start, direction)
256256
}
257257

src/librustc_mir/dataflow/impls/borrowed_locals.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ struct BorrowedLocalsVisitor<'gk> {
9292
trans: &'gk mut GenKillSet<Local>,
9393
}
9494

95-
fn find_local<'tcx>(place: &Place<'tcx>) -> Option<Local> {
95+
fn find_local(place: &Place<'_>) -> Option<Local> {
9696
place.iterate(|place_base, place_projection| {
9797
for proj in place_projection {
9898
if proj.elem == ProjectionElem::Deref {

src/librustc_typeck/check/dropck.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use syntax_pos::Span;
2929
/// struct/enum definition for the nominal type itself (i.e.
3030
/// cannot do `struct S<T>; impl<T:Clone> Drop for S<T> { ... }`).
3131
///
32-
pub fn check_drop_impl<'tcx>(tcx: TyCtxt<'tcx>, drop_impl_did: DefId) -> Result<(), ErrorReported> {
32+
pub fn check_drop_impl(tcx: TyCtxt<'_>, drop_impl_did: DefId) -> Result<(), ErrorReported> {
3333
let dtor_self_type = tcx.type_of(drop_impl_did);
3434
let dtor_predicates = tcx.predicates_of(drop_impl_did);
3535
match dtor_self_type.sty {

src/librustc_typeck/check/intrinsic.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ pub fn intrisic_operation_unsafety(intrinsic: &str) -> hir::Unsafety {
7979

8080
/// Remember to add all intrinsics here, in librustc_codegen_llvm/intrinsic.rs,
8181
/// and in libcore/intrinsics.rs
82-
pub fn check_intrinsic_type<'tcx>(tcx: TyCtxt<'tcx>, it: &hir::ForeignItem) {
82+
pub fn check_intrinsic_type(tcx: TyCtxt<'_>, it: &hir::ForeignItem) {
8383
let param = |n| tcx.mk_ty_param(n, InternedString::intern(&format!("P{}", n)));
8484
let name = it.ident.as_str();
8585

@@ -385,7 +385,7 @@ pub fn check_intrinsic_type<'tcx>(tcx: TyCtxt<'tcx>, it: &hir::ForeignItem) {
385385
}
386386

387387
/// Type-check `extern "platform-intrinsic" { ... }` functions.
388-
pub fn check_platform_intrinsic_type<'tcx>(tcx: TyCtxt<'tcx>, it: &hir::ForeignItem) {
388+
pub fn check_platform_intrinsic_type(tcx: TyCtxt<'_>, it: &hir::ForeignItem) {
389389
let param = |n| {
390390
let name = InternedString::intern(&format!("P{}", n));
391391
tcx.mk_ty_param(n, name)

src/librustc_typeck/check/mod.rs

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -698,31 +698,31 @@ impl ItemLikeVisitor<'tcx> for CheckItemTypesVisitor<'tcx> {
698698
fn visit_impl_item(&mut self, _: &'tcx hir::ImplItem) { }
699699
}
700700

701-
pub fn check_wf_new<'tcx>(tcx: TyCtxt<'tcx>) {
701+
pub fn check_wf_new(tcx: TyCtxt<'_>) {
702702
let mut visit = wfcheck::CheckTypeWellFormedVisitor::new(tcx);
703703
tcx.hir().krate().par_visit_all_item_likes(&mut visit);
704704
}
705705

706-
fn check_mod_item_types<'tcx>(tcx: TyCtxt<'tcx>, module_def_id: DefId) {
706+
fn check_mod_item_types(tcx: TyCtxt<'_>, module_def_id: DefId) {
707707
tcx.hir().visit_item_likes_in_module(module_def_id, &mut CheckItemTypesVisitor { tcx });
708708
}
709709

710-
fn typeck_item_bodies<'tcx>(tcx: TyCtxt<'tcx>, crate_num: CrateNum) {
710+
fn typeck_item_bodies(tcx: TyCtxt<'_>, crate_num: CrateNum) {
711711
debug_assert!(crate_num == LOCAL_CRATE);
712712
tcx.par_body_owners(|body_owner_def_id| {
713713
tcx.ensure().typeck_tables_of(body_owner_def_id);
714714
});
715715
}
716716

717-
fn check_item_well_formed<'tcx>(tcx: TyCtxt<'tcx>, def_id: DefId) {
717+
fn check_item_well_formed(tcx: TyCtxt<'_>, def_id: DefId) {
718718
wfcheck::check_item_well_formed(tcx, def_id);
719719
}
720720

721-
fn check_trait_item_well_formed<'tcx>(tcx: TyCtxt<'tcx>, def_id: DefId) {
721+
fn check_trait_item_well_formed(tcx: TyCtxt<'_>, def_id: DefId) {
722722
wfcheck::check_trait_item(tcx, def_id);
723723
}
724724

725-
fn check_impl_item_well_formed<'tcx>(tcx: TyCtxt<'tcx>, def_id: DefId) {
725+
fn check_impl_item_well_formed(tcx: TyCtxt<'_>, def_id: DefId) {
726726
wfcheck::check_impl_item(tcx, def_id);
727727
}
728728

@@ -742,7 +742,7 @@ pub fn provide(providers: &mut Providers<'_>) {
742742
};
743743
}
744744

745-
fn adt_destructor<'tcx>(tcx: TyCtxt<'tcx>, def_id: DefId) -> Option<ty::Destructor> {
745+
fn adt_destructor(tcx: TyCtxt<'_>, def_id: DefId) -> Option<ty::Destructor> {
746746
tcx.calculate_dtor(def_id, &mut dropck::check_drop_impl)
747747
}
748748

@@ -755,10 +755,10 @@ fn adt_destructor<'tcx>(tcx: TyCtxt<'tcx>, def_id: DefId) -> Option<ty::Destruct
755755
/// may not succeed. In some cases where this function returns `None`
756756
/// (notably closures), `typeck_tables(def_id)` would wind up
757757
/// redirecting to the owning function.
758-
fn primary_body_of<'tcx>(
759-
tcx: TyCtxt<'tcx>,
758+
fn primary_body_of(
759+
tcx: TyCtxt<'_>,
760760
id: hir::HirId,
761-
) -> Option<(hir::BodyId, Option<&'tcx hir::FnDecl>)> {
761+
) -> Option<(hir::BodyId, Option<&hir::FnDecl>)> {
762762
match tcx.hir().get(id) {
763763
Node::Item(item) => {
764764
match item.node {
@@ -796,7 +796,7 @@ fn primary_body_of<'tcx>(
796796
}
797797
}
798798

799-
fn has_typeck_tables<'tcx>(tcx: TyCtxt<'tcx>, def_id: DefId) -> bool {
799+
fn has_typeck_tables(tcx: TyCtxt<'_>, def_id: DefId) -> bool {
800800
// Closures' tables come from their outermost function,
801801
// as they are part of the same "inference environment".
802802
let outer_def_id = tcx.closure_base_def_id(def_id);
@@ -808,11 +808,11 @@ fn has_typeck_tables<'tcx>(tcx: TyCtxt<'tcx>, def_id: DefId) -> bool {
808808
primary_body_of(tcx, id).is_some()
809809
}
810810

811-
fn used_trait_imports<'tcx>(tcx: TyCtxt<'tcx>, def_id: DefId) -> &'tcx DefIdSet {
811+
fn used_trait_imports(tcx: TyCtxt<'_>, def_id: DefId) -> &DefIdSet {
812812
&*tcx.typeck_tables_of(def_id).used_trait_imports
813813
}
814814

815-
fn typeck_tables_of<'tcx>(tcx: TyCtxt<'tcx>, def_id: DefId) -> &'tcx ty::TypeckTables<'tcx> {
815+
fn typeck_tables_of(tcx: TyCtxt<'_>, def_id: DefId) -> &ty::TypeckTables<'_> {
816816
// Closures' tables come from their outermost function,
817817
// as they are part of the same "inference environment".
818818
let outer_def_id = tcx.closure_base_def_id(def_id);
@@ -912,7 +912,7 @@ fn typeck_tables_of<'tcx>(tcx: TyCtxt<'tcx>, def_id: DefId) -> &'tcx ty::TypeckT
912912
tables
913913
}
914914

915-
fn check_abi<'tcx>(tcx: TyCtxt<'tcx>, span: Span, abi: Abi) {
915+
fn check_abi(tcx: TyCtxt<'_>, span: Span, abi: Abi) {
916916
if !tcx.sess.target.target.is_abi_supported(abi) {
917917
struct_span_err!(tcx.sess, span, E0570,
918918
"The ABI `{}` is not supported for the current target", abi).emit()
@@ -1285,7 +1285,7 @@ fn check_fn<'a, 'tcx>(
12851285
(fcx, gen_ty)
12861286
}
12871287

1288-
fn check_struct<'tcx>(tcx: TyCtxt<'tcx>, id: hir::HirId, span: Span) {
1288+
fn check_struct(tcx: TyCtxt<'_>, id: hir::HirId, span: Span) {
12891289
let def_id = tcx.hir().local_def_id_from_hir_id(id);
12901290
let def = tcx.adt_def(def_id);
12911291
def.destructor(tcx); // force the destructor to be evaluated
@@ -1299,7 +1299,7 @@ fn check_struct<'tcx>(tcx: TyCtxt<'tcx>, id: hir::HirId, span: Span) {
12991299
check_packed(tcx, span, def_id);
13001300
}
13011301

1302-
fn check_union<'tcx>(tcx: TyCtxt<'tcx>, id: hir::HirId, span: Span) {
1302+
fn check_union(tcx: TyCtxt<'_>, id: hir::HirId, span: Span) {
13031303
let def_id = tcx.hir().local_def_id_from_hir_id(id);
13041304
let def = tcx.adt_def(def_id);
13051305
def.destructor(tcx); // force the destructor to be evaluated
@@ -1461,14 +1461,14 @@ fn maybe_check_static_with_link_section(tcx: TyCtxt<'_>, id: DefId, span: Span)
14611461
}
14621462
}
14631463

1464-
fn check_on_unimplemented<'tcx>(tcx: TyCtxt<'tcx>, trait_def_id: DefId, item: &hir::Item) {
1464+
fn check_on_unimplemented(tcx: TyCtxt<'_>, trait_def_id: DefId, item: &hir::Item) {
14651465
let item_def_id = tcx.hir().local_def_id_from_hir_id(item.hir_id);
14661466
// an error would be reported if this fails.
14671467
let _ = traits::OnUnimplementedDirective::of_item(tcx, trait_def_id, item_def_id);
14681468
}
14691469

1470-
fn report_forbidden_specialization<'tcx>(
1471-
tcx: TyCtxt<'tcx>,
1470+
fn report_forbidden_specialization(
1471+
tcx: TyCtxt<'_>,
14721472
impl_item: &hir::ImplItem,
14731473
parent_impl: DefId,
14741474
) {
@@ -1684,7 +1684,7 @@ fn check_impl_items_against_trait<'tcx>(
16841684
/// Checks whether a type can be represented in memory. In particular, it
16851685
/// identifies types that contain themselves without indirection through a
16861686
/// pointer, which would mean their size is unbounded.
1687-
fn check_representable<'tcx>(tcx: TyCtxt<'tcx>, sp: Span, item_def_id: DefId) -> bool {
1687+
fn check_representable(tcx: TyCtxt<'_>, sp: Span, item_def_id: DefId) -> bool {
16881688
let rty = tcx.type_of(item_def_id);
16891689

16901690
// Check that it is possible to represent this type. This call identifies
@@ -1706,7 +1706,7 @@ fn check_representable<'tcx>(tcx: TyCtxt<'tcx>, sp: Span, item_def_id: DefId) ->
17061706
return true;
17071707
}
17081708

1709-
pub fn check_simd<'tcx>(tcx: TyCtxt<'tcx>, sp: Span, def_id: DefId) {
1709+
pub fn check_simd(tcx: TyCtxt<'_>, sp: Span, def_id: DefId) {
17101710
let t = tcx.type_of(def_id);
17111711
if let ty::Adt(def, substs) = t.sty {
17121712
if def.is_struct() {
@@ -1735,7 +1735,7 @@ pub fn check_simd<'tcx>(tcx: TyCtxt<'tcx>, sp: Span, def_id: DefId) {
17351735
}
17361736
}
17371737

1738-
fn check_packed<'tcx>(tcx: TyCtxt<'tcx>, sp: Span, def_id: DefId) {
1738+
fn check_packed(tcx: TyCtxt<'_>, sp: Span, def_id: DefId) {
17391739
let repr = tcx.adt_def(def_id).repr;
17401740
if repr.packed() {
17411741
for attr in tcx.get_attrs(def_id).iter() {
@@ -1759,7 +1759,7 @@ fn check_packed<'tcx>(tcx: TyCtxt<'tcx>, sp: Span, def_id: DefId) {
17591759
}
17601760
}
17611761

1762-
fn check_packed_inner<'tcx>(tcx: TyCtxt<'tcx>, def_id: DefId, stack: &mut Vec<DefId>) -> bool {
1762+
fn check_packed_inner(tcx: TyCtxt<'_>, def_id: DefId, stack: &mut Vec<DefId>) -> bool {
17631763
let t = tcx.type_of(def_id);
17641764
if stack.contains(&def_id) {
17651765
debug!("check_packed_inner: {:?} is recursive", t);
@@ -1833,7 +1833,7 @@ fn bad_non_zero_sized_fields<'tcx>(
18331833
err.emit();
18341834
}
18351835

1836-
fn check_transparent<'tcx>(tcx: TyCtxt<'tcx>, sp: Span, def_id: DefId) {
1836+
fn check_transparent(tcx: TyCtxt<'_>, sp: Span, def_id: DefId) {
18371837
let adt = tcx.adt_def(def_id);
18381838
if !adt.repr.transparent() {
18391839
return;
@@ -1982,7 +1982,7 @@ pub fn check_enum<'tcx>(tcx: TyCtxt<'tcx>, sp: Span, vs: &'tcx [hir::Variant], i
19821982
check_transparent(tcx, sp, def_id);
19831983
}
19841984

1985-
fn report_unexpected_variant_res<'tcx>(tcx: TyCtxt<'tcx>, res: Res, span: Span, qpath: &QPath) {
1985+
fn report_unexpected_variant_res(tcx: TyCtxt<'_>, res: Res, span: Span, qpath: &QPath) {
19861986
span_err!(tcx.sess, span, E0533,
19871987
"expected unit struct/variant or constant, found {} `{}`",
19881988
res.descr(),

src/librustc_typeck/check/wfcheck.rs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ impl<'tcx> CheckWfFcxBuilder<'tcx> {
6868
/// We do this check as a pre-pass before checking fn bodies because if these constraints are
6969
/// not included it frequently leads to confusing errors in fn bodies. So it's better to check
7070
/// the types first.
71-
pub fn check_item_well_formed<'tcx>(tcx: TyCtxt<'tcx>, def_id: DefId) {
71+
pub fn check_item_well_formed(tcx: TyCtxt<'_>, def_id: DefId) {
7272
let hir_id = tcx.hir().as_local_hir_id(def_id).unwrap();
7373
let item = tcx.hir().expect_item(hir_id);
7474

@@ -156,7 +156,7 @@ pub fn check_item_well_formed<'tcx>(tcx: TyCtxt<'tcx>, def_id: DefId) {
156156
}
157157
}
158158

159-
pub fn check_trait_item<'tcx>(tcx: TyCtxt<'tcx>, def_id: DefId) {
159+
pub fn check_trait_item(tcx: TyCtxt<'_>, def_id: DefId) {
160160
let hir_id = tcx.hir().as_local_hir_id(def_id).unwrap();
161161
let trait_item = tcx.hir().expect_trait_item(hir_id);
162162

@@ -167,7 +167,7 @@ pub fn check_trait_item<'tcx>(tcx: TyCtxt<'tcx>, def_id: DefId) {
167167
check_associated_item(tcx, trait_item.hir_id, trait_item.span, method_sig);
168168
}
169169

170-
pub fn check_impl_item<'tcx>(tcx: TyCtxt<'tcx>, def_id: DefId) {
170+
pub fn check_impl_item(tcx: TyCtxt<'_>, def_id: DefId) {
171171
let hir_id = tcx.hir().as_local_hir_id(def_id).unwrap();
172172
let impl_item = tcx.hir().expect_impl_item(hir_id);
173173

@@ -178,8 +178,8 @@ pub fn check_impl_item<'tcx>(tcx: TyCtxt<'tcx>, def_id: DefId) {
178178
check_associated_item(tcx, impl_item.hir_id, impl_item.span, method_sig);
179179
}
180180

181-
fn check_associated_item<'tcx>(
182-
tcx: TyCtxt<'tcx>,
181+
fn check_associated_item(
182+
tcx: TyCtxt<'_>,
183183
item_id: hir::HirId,
184184
span: Span,
185185
sig_if_method: Option<&hir::MethodSig>,
@@ -231,7 +231,7 @@ fn for_item<'tcx>(tcx: TyCtxt<'tcx>, item: &hir::Item) -> CheckWfFcxBuilder<'tcx
231231
for_id(tcx, item.hir_id, item.span)
232232
}
233233

234-
fn for_id<'tcx>(tcx: TyCtxt<'tcx>, id: hir::HirId, span: Span) -> CheckWfFcxBuilder<'tcx> {
234+
fn for_id(tcx: TyCtxt<'_>, id: hir::HirId, span: Span) -> CheckWfFcxBuilder<'_> {
235235
let def_id = tcx.hir().local_def_id_from_hir_id(id);
236236
CheckWfFcxBuilder {
237237
inherited: Inherited::build(tcx, def_id),
@@ -316,7 +316,7 @@ fn check_type_defn<'tcx, F>(
316316
});
317317
}
318318

319-
fn check_trait<'tcx>(tcx: TyCtxt<'tcx>, item: &hir::Item) {
319+
fn check_trait(tcx: TyCtxt<'_>, item: &hir::Item) {
320320
debug!("check_trait: {:?}", item.hir_id);
321321

322322
let trait_def_id = tcx.hir().local_def_id_from_hir_id(item.hir_id);
@@ -339,7 +339,7 @@ fn check_trait<'tcx>(tcx: TyCtxt<'tcx>, item: &hir::Item) {
339339
});
340340
}
341341

342-
fn check_item_fn<'tcx>(tcx: TyCtxt<'tcx>, item: &hir::Item) {
342+
fn check_item_fn(tcx: TyCtxt<'_>, item: &hir::Item) {
343343
for_item(tcx, item).with_fcx(|fcx, tcx| {
344344
let def_id = fcx.tcx.hir().local_def_id_from_hir_id(item.hir_id);
345345
let sig = fcx.tcx.fn_sig(def_id);
@@ -351,8 +351,8 @@ fn check_item_fn<'tcx>(tcx: TyCtxt<'tcx>, item: &hir::Item) {
351351
})
352352
}
353353

354-
fn check_item_type<'tcx>(
355-
tcx: TyCtxt<'tcx>,
354+
fn check_item_type(
355+
tcx: TyCtxt<'_>,
356356
item_id: hir::HirId,
357357
ty_span: Span,
358358
allow_foreign_ty: bool,
@@ -979,7 +979,7 @@ fn check_variances_for_type_defn<'tcx>(
979979
}
980980
}
981981

982-
fn report_bivariance<'tcx>(tcx: TyCtxt<'tcx>, span: Span, param_name: ast::Name) {
982+
fn report_bivariance(tcx: TyCtxt<'_>, span: Span, param_name: ast::Name) {
983983
let mut err = error_392(tcx, span, param_name);
984984

985985
let suggested_marker_id = tcx.lang_items().phantom_data();
@@ -1022,7 +1022,7 @@ fn reject_shadowing_parameters(tcx: TyCtxt<'_>, def_id: DefId) {
10221022

10231023
/// Feature gates RFC 2056 -- trivial bounds, checking for global bounds that
10241024
/// aren't true.
1025-
fn check_false_global_bounds<'a, 'tcx>(fcx: &FnCtxt<'a, 'tcx>, span: Span, id: hir::HirId) {
1025+
fn check_false_global_bounds(fcx: &FnCtxt<'_, '_>, span: Span, id: hir::HirId) {
10261026
let empty_env = ty::ParamEnv::empty();
10271027

10281028
let def_id = fcx.tcx.hir().local_def_id_from_hir_id(id);
@@ -1134,11 +1134,11 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
11341134
}
11351135
}
11361136

1137-
fn error_392<'tcx>(
1138-
tcx: TyCtxt<'tcx>,
1137+
fn error_392(
1138+
tcx: TyCtxt<'_>,
11391139
span: Span,
11401140
param_name: ast::Name,
1141-
) -> DiagnosticBuilder<'tcx> {
1141+
) -> DiagnosticBuilder<'_> {
11421142
let mut err = struct_span_err!(tcx.sess, span, E0392,
11431143
"parameter `{}` is never used", param_name);
11441144
err.span_label(span, "unused parameter");

src/librustc_typeck/coherence/builtin.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use rustc::hir::def_id::DefId;
1717
use hir::Node;
1818
use rustc::hir::{self, ItemKind};
1919

20-
pub fn check_trait<'tcx>(tcx: TyCtxt<'tcx>, trait_def_id: DefId) {
20+
pub fn check_trait(tcx: TyCtxt<'_>, trait_def_id: DefId) {
2121
Checker { tcx, trait_def_id }
2222
.check(tcx.lang_items().drop_trait(), visit_implementation_of_drop)
2323
.check(tcx.lang_items().copy_trait(), visit_implementation_of_copy)
@@ -46,7 +46,7 @@ impl<'tcx> Checker<'tcx> {
4646
}
4747
}
4848

49-
fn visit_implementation_of_drop<'tcx>(tcx: TyCtxt<'tcx>, impl_did: DefId) {
49+
fn visit_implementation_of_drop(tcx: TyCtxt<'_>, impl_did: DefId) {
5050
if let ty::Adt(..) = tcx.type_of(impl_did).sty {
5151
/* do nothing */
5252
} else {
@@ -74,7 +74,7 @@ fn visit_implementation_of_drop<'tcx>(tcx: TyCtxt<'tcx>, impl_did: DefId) {
7474
}
7575
}
7676

77-
fn visit_implementation_of_copy<'tcx>(tcx: TyCtxt<'tcx>, impl_did: DefId) {
77+
fn visit_implementation_of_copy(tcx: TyCtxt<'_>, impl_did: DefId) {
7878
debug!("visit_implementation_of_copy: impl_did={:?}", impl_did);
7979

8080
let impl_hir_id = if let Some(n) = tcx.hir().as_local_hir_id(impl_did) {
@@ -154,7 +154,7 @@ fn visit_implementation_of_coerce_unsized(tcx: TyCtxt<'tcx>, impl_did: DefId) {
154154
}
155155
}
156156

157-
fn visit_implementation_of_dispatch_from_dyn<'tcx>(tcx: TyCtxt<'tcx>, impl_did: DefId) {
157+
fn visit_implementation_of_dispatch_from_dyn(tcx: TyCtxt<'_>, impl_did: DefId) {
158158
debug!("visit_implementation_of_dispatch_from_dyn: impl_did={:?}",
159159
impl_did);
160160
if impl_did.is_local() {

0 commit comments

Comments
 (0)