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 D | as_rvalue.rs | 14 use rustc_middle::ty::{self, Ty, UpvarSubsts}; 308 UpvarSubsts::Generator(substs) => { in as_rvalue() 314 UpvarSubsts::Closure(substs) => { in as_rvalue()
|
H A D | as_place.rs | 250 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 D | sty.rs | 672 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 D | mod.rs | 80 UpvarSubsts, VarianceDiagInfo, VarianceDiagMutKind,
|
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_middle/src/ |
H A D | thir.rs | 25 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 D | upvar.rs | 46 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 D | expr.rs | 18 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 D | mod.rs | 908 ty::Closure(_, substs) => ty::UpvarSubsts::Closure(substs), in args_and_body() 909 ty::Generator(_, substs, _) => ty::UpvarSubsts::Generator(substs), in args_and_body()
|