Skip to content

Commit 3e6b19b

Browse files
committed
cleanup
1 parent 383ddca commit 3e6b19b

File tree

2 files changed

+3
-7
lines changed
  • compiler

2 files changed

+3
-7
lines changed

compiler/rustc_ast_lowering/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1948,8 +1948,8 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
19481948
debug!("lower_async_fn_ret_ty: lifetime_params={:#?}", lifetime_params);
19491949

19501950
let generic_params =
1951-
this.arena.alloc_from_iter(lifetime_params.iter().map(|(span, hir_name)| {
1952-
this.lifetime_to_generic_param(*span, *hir_name, opaque_ty_def_id)
1951+
this.arena.alloc_from_iter(lifetime_params.iter().map(|&(span, hir_name)| {
1952+
this.lifetime_to_generic_param(span, hir_name, opaque_ty_def_id)
19531953
}));
19541954

19551955
let opaque_ty_item = hir::OpaqueTy {

compiler/rustc_typeck/src/check/fn_ctxt/_impl.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1125,6 +1125,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
11251125

11261126
// Instantiates the given path, which must refer to an item with the given
11271127
// number of type parameters and type.
1128+
#[instrument(skip(self, span))]
11281129
pub fn instantiate_value_path(
11291130
&self,
11301131
segments: &[hir::PathSegment<'_>],
@@ -1133,11 +1134,6 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
11331134
span: Span,
11341135
hir_id: hir::HirId,
11351136
) -> (Ty<'tcx>, Res) {
1136-
debug!(
1137-
"instantiate_value_path(segments={:?}, self_ty={:?}, res={:?}, hir_id={})",
1138-
segments, self_ty, res, hir_id,
1139-
);
1140-
11411137
let tcx = self.tcx;
11421138

11431139
let path_segs = match res {

0 commit comments

Comments
 (0)