Skip to content

Commit 98890be

Browse files
committedApr 15, 2024·
Rebase fallout
1 parent 25c0cf0 commit 98890be

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed
 

‎compiler/rustc_borrowck/src/diagnostics/region_errors.rs

+4-5
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ use rustc_middle::ty::{self, RegionVid, Ty};
2626
use rustc_middle::ty::{Region, TyCtxt};
2727
use rustc_span::symbol::{kw, Ident};
2828
use rustc_span::Span;
29-
use rustc_trait_selection::infer::type_variable::{TypeVariableOrigin, TypeVariableOriginKind};
29+
use rustc_trait_selection::infer::type_variable::TypeVariableOrigin;
3030
use rustc_trait_selection::infer::InferCtxtExt;
3131
use rustc_trait_selection::traits::{Obligation, ObligationCtxt};
3232

@@ -1104,10 +1104,9 @@ impl<'a, 'tcx> MirBorrowckCtxt<'a, 'tcx> {
11041104
);
11051105
let closure_kind = args.as_closure().kind();
11061106
let closure_kind_ty = Ty::from_closure_kind(tcx, closure_kind);
1107-
let tupled_upvars_ty = self.infcx.next_ty_var(TypeVariableOrigin {
1108-
kind: TypeVariableOriginKind::ClosureSynthetic,
1109-
span: closure_expr.span,
1110-
});
1107+
let tupled_upvars_ty = self
1108+
.infcx
1109+
.next_ty_var(TypeVariableOrigin { param_def_id: None, span: closure_expr.span });
11111110
let closure_args = ty::ClosureArgs::new(
11121111
tcx,
11131112
ty::ClosureArgsParts {

‎compiler/rustc_infer/src/infer/error_reporting/need_type_info.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ use rustc_middle::hir::nested_filter;
1616
use rustc_middle::infer::unify_key::{ConstVariableOrigin, ConstVariableValue};
1717
use rustc_middle::ty::adjustment::{Adjust, Adjustment, AutoBorrow};
1818
use rustc_middle::ty::print::{FmtPrinter, PrettyPrinter, Print, Printer};
19-
use rustc_middle::ty::{self, InferConst};
20-
use rustc_middle::ty::{GenericArg, GenericArgKind, GenericArgsRef};
21-
use rustc_middle::ty::{IsSuggestable, Ty, TyCtxt, TypeckResults};
19+
use rustc_middle::ty::{
20+
self, GenericArg, GenericArgKind, GenericArgsRef, InferConst, IsSuggestable, Ty, TyCtxt,
21+
TypeFoldable, TypeFolder, TypeSuperFoldable, TypeckResults,
22+
};
2223
use rustc_span::symbol::{sym, Ident};
2324
use rustc_span::{BytePos, Span, DUMMY_SP};
2425
use std::borrow::Cow;

0 commit comments

Comments
 (0)
Please sign in to comment.