Skip to content

Commit 8f37d1f

Browse files
committed
use 'tcx where it is known to be (Step 1)
1 parent 50d50ab commit 8f37d1f

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_hir_typeck/src/fn_ctxt

1 file changed

+2
-2
lines changed

compiler/rustc_hir_typeck/src/fn_ctxt/_impl.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
987987
#[instrument(skip(self, span), level = "debug")]
988988
pub fn instantiate_value_path(
989989
&self,
990-
segments: &[hir::PathSegment<'_>],
990+
segments: &[hir::PathSegment<'tcx>],
991991
self_ty: Option<RawTy<'tcx>>,
992992
res: Res,
993993
span: Span,
@@ -1166,7 +1166,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
11661166
span: Span,
11671167
path_segs: &'a [PathSeg],
11681168
infer_args_for_err: &'a FxHashSet<usize>,
1169-
segments: &'a [hir::PathSegment<'a>],
1169+
segments: &'a [hir::PathSegment<'tcx>],
11701170
}
11711171
impl<'tcx, 'a> CreateSubstsForGenericArgsCtxt<'a, 'tcx> for CreateCtorSubstsContext<'a, 'tcx> {
11721172
fn args_for_def_id(

0 commit comments

Comments
 (0)