Home
last modified time | relevance | path

Searched refs:UpvarSubsts (Results 1 – 8 of 8) sorted by relevance

/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_mir_build/src/build/expr/
H A Das_rvalue.rs14 use rustc_middle::ty::{self, Ty, UpvarSubsts};
308 UpvarSubsts::Generator(substs) => { in as_rvalue()
314 UpvarSubsts::Closure(substs) => { in as_rvalue()
H A Das_place.rs250 ty::Closure(_, substs) => ty::UpvarSubsts::Closure(substs), in to_upvars_resolved_place_builder()
251 ty::Generator(_, substs, _) => ty::UpvarSubsts::Generator(substs), in to_upvars_resolved_place_builder()
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_middle/src/ty/
H A Dsty.rs672 pub enum UpvarSubsts<'tcx> { enum
677 impl<'tcx> UpvarSubsts<'tcx> { implementation
684 UpvarSubsts::Closure(substs) => substs.as_closure().tupled_upvars_ty(), in upvar_tys()
685 UpvarSubsts::Generator(substs) => substs.as_generator().tupled_upvars_ty(), in upvar_tys()
701 UpvarSubsts::Closure(substs) => substs.as_closure().tupled_upvars_ty(), in tupled_upvars_ty()
702 UpvarSubsts::Generator(substs) => substs.as_generator().tupled_upvars_ty(), in tupled_upvars_ty()
H A Dmod.rs80 UpvarSubsts, VarianceDiagInfo, VarianceDiagMutKind,
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_middle/src/
H A Dthir.rs25 use rustc_middle::ty::{self, AdtDef, Const, Ty, UpvarSubsts, UserType};
403 substs: UpvarSubsts<'tcx>,
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_typeck/src/check/
H A Dupvar.rs46 self, ClosureSizeProfileData, Ty, TyCtxt, TypeckResults, UpvarCapture, UpvarSubsts,
182 ty::Closure(def_id, substs) => (def_id, UpvarSubsts::Closure(substs)), in analyze_closure()
183 ty::Generator(def_id, substs, _) => (def_id, UpvarSubsts::Generator(substs)), in analyze_closure()
198 let infer_kind = if let UpvarSubsts::Closure(closure_substs) = substs { in analyze_closure()
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_mir_build/src/thir/cx/
H A Dexpr.rs18 use rustc_middle::ty::{self, AdtKind, Ty, UpvarSubsts, UserType};
429 ty::Closure(def_id, substs) => (def_id, UpvarSubsts::Closure(substs), None), in make_mirror_unadjusted()
431 (def_id, UpvarSubsts::Generator(substs), Some(movability)) in make_mirror_unadjusted()
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_mir_build/src/build/
H A Dmod.rs908 ty::Closure(_, substs) => ty::UpvarSubsts::Closure(substs), in args_and_body()
909 ty::Generator(_, substs, _) => ty::UpvarSubsts::Generator(substs), in args_and_body()