Skip to content

Commit d50a3a7

Browse files
committed
Remove needless lifetimes
1 parent 6ae80cf commit d50a3a7

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);
@@ -913,7 +913,7 @@ fn typeck_tables_of<'tcx>(tcx: TyCtxt<'tcx>, def_id: DefId) -> &'tcx ty::TypeckT
913913
tables
914914
}
915915

916-
fn check_abi<'tcx>(tcx: TyCtxt<'tcx>, span: Span, abi: Abi) {
916+
fn check_abi(tcx: TyCtxt<'_>, span: Span, abi: Abi) {
917917
if !tcx.sess.target.target.is_abi_supported(abi) {
918918
struct_span_err!(tcx.sess, span, E0570,
919919
"The ABI `{}` is not supported for the current target", abi).emit()
@@ -1291,7 +1291,7 @@ fn check_fn<'a, 'tcx>(
12911291
(fcx, gen_ty)
12921292
}
12931293

1294-
fn check_struct<'tcx>(tcx: TyCtxt<'tcx>, id: hir::HirId, span: Span) {
1294+
fn check_struct(tcx: TyCtxt<'_>, id: hir::HirId, span: Span) {
12951295
let def_id = tcx.hir().local_def_id_from_hir_id(id);
12961296
let def = tcx.adt_def(def_id);
12971297
def.destructor(tcx); // force the destructor to be evaluated
@@ -1305,7 +1305,7 @@ fn check_struct<'tcx>(tcx: TyCtxt<'tcx>, id: hir::HirId, span: Span) {
13051305
check_packed(tcx, span, def_id);
13061306
}
13071307

1308-
fn check_union<'tcx>(tcx: TyCtxt<'tcx>, id: hir::HirId, span: Span) {
1308+
fn check_union(tcx: TyCtxt<'_>, id: hir::HirId, span: Span) {
13091309
let def_id = tcx.hir().local_def_id_from_hir_id(id);
13101310
let def = tcx.adt_def(def_id);
13111311
def.destructor(tcx); // force the destructor to be evaluated
@@ -1467,14 +1467,14 @@ fn maybe_check_static_with_link_section(tcx: TyCtxt<'_>, id: DefId, span: Span)
14671467
}
14681468
}
14691469

1470-
fn check_on_unimplemented<'tcx>(tcx: TyCtxt<'tcx>, trait_def_id: DefId, item: &hir::Item) {
1470+
fn check_on_unimplemented(tcx: TyCtxt<'_>, trait_def_id: DefId, item: &hir::Item) {
14711471
let item_def_id = tcx.hir().local_def_id_from_hir_id(item.hir_id);
14721472
// an error would be reported if this fails.
14731473
let _ = traits::OnUnimplementedDirective::of_item(tcx, trait_def_id, item_def_id);
14741474
}
14751475

1476-
fn report_forbidden_specialization<'tcx>(
1477-
tcx: TyCtxt<'tcx>,
1476+
fn report_forbidden_specialization(
1477+
tcx: TyCtxt<'_>,
14781478
impl_item: &hir::ImplItem,
14791479
parent_impl: DefId,
14801480
) {
@@ -1690,7 +1690,7 @@ fn check_impl_items_against_trait<'tcx>(
16901690
/// Checks whether a type can be represented in memory. In particular, it
16911691
/// identifies types that contain themselves without indirection through a
16921692
/// pointer, which would mean their size is unbounded.
1693-
fn check_representable<'tcx>(tcx: TyCtxt<'tcx>, sp: Span, item_def_id: DefId) -> bool {
1693+
fn check_representable(tcx: TyCtxt<'_>, sp: Span, item_def_id: DefId) -> bool {
16941694
let rty = tcx.type_of(item_def_id);
16951695

16961696
// Check that it is possible to represent this type. This call identifies
@@ -1712,7 +1712,7 @@ fn check_representable<'tcx>(tcx: TyCtxt<'tcx>, sp: Span, item_def_id: DefId) ->
17121712
return true;
17131713
}
17141714

1715-
pub fn check_simd<'tcx>(tcx: TyCtxt<'tcx>, sp: Span, def_id: DefId) {
1715+
pub fn check_simd(tcx: TyCtxt<'_>, sp: Span, def_id: DefId) {
17161716
let t = tcx.type_of(def_id);
17171717
if let ty::Adt(def, substs) = t.sty {
17181718
if def.is_struct() {
@@ -1741,7 +1741,7 @@ pub fn check_simd<'tcx>(tcx: TyCtxt<'tcx>, sp: Span, def_id: DefId) {
17411741
}
17421742
}
17431743

1744-
fn check_packed<'tcx>(tcx: TyCtxt<'tcx>, sp: Span, def_id: DefId) {
1744+
fn check_packed(tcx: TyCtxt<'_>, sp: Span, def_id: DefId) {
17451745
let repr = tcx.adt_def(def_id).repr;
17461746
if repr.packed() {
17471747
for attr in tcx.get_attrs(def_id).iter() {
@@ -1765,7 +1765,7 @@ fn check_packed<'tcx>(tcx: TyCtxt<'tcx>, sp: Span, def_id: DefId) {
17651765
}
17661766
}
17671767

1768-
fn check_packed_inner<'tcx>(tcx: TyCtxt<'tcx>, def_id: DefId, stack: &mut Vec<DefId>) -> bool {
1768+
fn check_packed_inner(tcx: TyCtxt<'_>, def_id: DefId, stack: &mut Vec<DefId>) -> bool {
17691769
let t = tcx.type_of(def_id);
17701770
if stack.contains(&def_id) {
17711771
debug!("check_packed_inner: {:?} is recursive", t);
@@ -1839,7 +1839,7 @@ fn bad_non_zero_sized_fields<'tcx>(
18391839
err.emit();
18401840
}
18411841

1842-
fn check_transparent<'tcx>(tcx: TyCtxt<'tcx>, sp: Span, def_id: DefId) {
1842+
fn check_transparent(tcx: TyCtxt<'_>, sp: Span, def_id: DefId) {
18431843
let adt = tcx.adt_def(def_id);
18441844
if !adt.repr.transparent() {
18451845
return;
@@ -1988,7 +1988,7 @@ pub fn check_enum<'tcx>(tcx: TyCtxt<'tcx>, sp: Span, vs: &'tcx [hir::Variant], i
19881988
check_transparent(tcx, sp, def_id);
19891989
}
19901990

1991-
fn report_unexpected_variant_res<'tcx>(tcx: TyCtxt<'tcx>, res: Res, span: Span, qpath: &QPath) {
1991+
fn report_unexpected_variant_res(tcx: TyCtxt<'_>, res: Res, span: Span, qpath: &QPath) {
19921992
span_err!(tcx.sess, span, E0533,
19931993
"expected unit struct/variant or constant, found {} `{}`",
19941994
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),
@@ -317,7 +317,7 @@ fn check_type_defn<'tcx, F>(
317317
});
318318
}
319319

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

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

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

355-
fn check_item_type<'tcx>(
356-
tcx: TyCtxt<'tcx>,
355+
fn check_item_type(
356+
tcx: TyCtxt<'_>,
357357
item_id: hir::HirId,
358358
ty_span: Span,
359359
allow_foreign_ty: bool,
@@ -980,7 +980,7 @@ fn check_variances_for_type_defn<'tcx>(
980980
}
981981
}
982982

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

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

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

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

1138-
fn error_392<'tcx>(
1139-
tcx: TyCtxt<'tcx>,
1138+
fn error_392(
1139+
tcx: TyCtxt<'_>,
11401140
span: Span,
11411141
param_name: ast::Name,
1142-
) -> DiagnosticBuilder<'tcx> {
1142+
) -> DiagnosticBuilder<'_> {
11431143
let mut err = struct_span_err!(tcx.sess, span, E0392,
11441144
"parameter `{}` is never used", param_name);
11451145
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)