mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
Rebase fallout
This commit is contained in:
parent
25c0cf0a66
commit
98890be9c4
@ -26,7 +26,7 @@ use rustc_middle::ty::{self, RegionVid, Ty};
|
|||||||
use rustc_middle::ty::{Region, TyCtxt};
|
use rustc_middle::ty::{Region, TyCtxt};
|
||||||
use rustc_span::symbol::{kw, Ident};
|
use rustc_span::symbol::{kw, Ident};
|
||||||
use rustc_span::Span;
|
use rustc_span::Span;
|
||||||
use rustc_trait_selection::infer::type_variable::{TypeVariableOrigin, TypeVariableOriginKind};
|
use rustc_trait_selection::infer::type_variable::TypeVariableOrigin;
|
||||||
use rustc_trait_selection::infer::InferCtxtExt;
|
use rustc_trait_selection::infer::InferCtxtExt;
|
||||||
use rustc_trait_selection::traits::{Obligation, ObligationCtxt};
|
use rustc_trait_selection::traits::{Obligation, ObligationCtxt};
|
||||||
|
|
||||||
@ -1104,10 +1104,9 @@ impl<'a, 'tcx> MirBorrowckCtxt<'a, 'tcx> {
|
|||||||
);
|
);
|
||||||
let closure_kind = args.as_closure().kind();
|
let closure_kind = args.as_closure().kind();
|
||||||
let closure_kind_ty = Ty::from_closure_kind(tcx, closure_kind);
|
let closure_kind_ty = Ty::from_closure_kind(tcx, closure_kind);
|
||||||
let tupled_upvars_ty = self.infcx.next_ty_var(TypeVariableOrigin {
|
let tupled_upvars_ty = self
|
||||||
kind: TypeVariableOriginKind::ClosureSynthetic,
|
.infcx
|
||||||
span: closure_expr.span,
|
.next_ty_var(TypeVariableOrigin { param_def_id: None, span: closure_expr.span });
|
||||||
});
|
|
||||||
let closure_args = ty::ClosureArgs::new(
|
let closure_args = ty::ClosureArgs::new(
|
||||||
tcx,
|
tcx,
|
||||||
ty::ClosureArgsParts {
|
ty::ClosureArgsParts {
|
||||||
|
@ -16,9 +16,10 @@ use rustc_middle::hir::nested_filter;
|
|||||||
use rustc_middle::infer::unify_key::{ConstVariableOrigin, ConstVariableValue};
|
use rustc_middle::infer::unify_key::{ConstVariableOrigin, ConstVariableValue};
|
||||||
use rustc_middle::ty::adjustment::{Adjust, Adjustment, AutoBorrow};
|
use rustc_middle::ty::adjustment::{Adjust, Adjustment, AutoBorrow};
|
||||||
use rustc_middle::ty::print::{FmtPrinter, PrettyPrinter, Print, Printer};
|
use rustc_middle::ty::print::{FmtPrinter, PrettyPrinter, Print, Printer};
|
||||||
use rustc_middle::ty::{self, InferConst};
|
use rustc_middle::ty::{
|
||||||
use rustc_middle::ty::{GenericArg, GenericArgKind, GenericArgsRef};
|
self, GenericArg, GenericArgKind, GenericArgsRef, InferConst, IsSuggestable, Ty, TyCtxt,
|
||||||
use rustc_middle::ty::{IsSuggestable, Ty, TyCtxt, TypeckResults};
|
TypeFoldable, TypeFolder, TypeSuperFoldable, TypeckResults,
|
||||||
|
};
|
||||||
use rustc_span::symbol::{sym, Ident};
|
use rustc_span::symbol::{sym, Ident};
|
||||||
use rustc_span::{BytePos, Span, DUMMY_SP};
|
use rustc_span::{BytePos, Span, DUMMY_SP};
|
||||||
use std::borrow::Cow;
|
use std::borrow::Cow;
|
||||||
|
Loading…
Reference in New Issue
Block a user