Rename a tiny module.
So it doesn't clash with `rustc_middle::ty`.
This commit is contained in:
parent
4b27cc8b7a
commit
b03ae74c84
@ -168,7 +168,7 @@ impl<'ck, 'mir, 'tcx> TypeVisitor<TyCtxt<'tcx>> for LocalReturnTyVisitor<'ck, 'm
|
|||||||
match t.kind() {
|
match t.kind() {
|
||||||
ty::FnPtr(_) => {}
|
ty::FnPtr(_) => {}
|
||||||
ty::Ref(_, _, hir::Mutability::Mut) => {
|
ty::Ref(_, _, hir::Mutability::Mut) => {
|
||||||
self.checker.check_op(ops::ty::MutRef(self.kind));
|
self.checker.check_op(ops::mut_ref::MutRef(self.kind));
|
||||||
t.super_visit_with(self)
|
t.super_visit_with(self)
|
||||||
}
|
}
|
||||||
_ => t.super_visit_with(self),
|
_ => t.super_visit_with(self),
|
||||||
|
@ -10,8 +10,8 @@ use rustc_infer::traits::{ImplSource, Obligation, ObligationCause};
|
|||||||
use rustc_middle::mir::{self, CallSource};
|
use rustc_middle::mir::{self, CallSource};
|
||||||
use rustc_middle::ty::print::with_no_trimmed_paths;
|
use rustc_middle::ty::print::with_no_trimmed_paths;
|
||||||
use rustc_middle::ty::{
|
use rustc_middle::ty::{
|
||||||
self as middle_ty, suggest_constraining_type_param, Closure, FnDef, FnPtr, GenericArgKind,
|
self, suggest_constraining_type_param, Closure, FnDef, FnPtr, GenericArgKind, GenericArgsRef,
|
||||||
GenericArgsRef, Param, TraitRef, Ty,
|
Param, TraitRef, Ty,
|
||||||
};
|
};
|
||||||
use rustc_middle::util::{call_kind, CallDesugaringKind, CallKind};
|
use rustc_middle::util::{call_kind, CallDesugaringKind, CallKind};
|
||||||
use rustc_session::parse::feature_err;
|
use rustc_session::parse::feature_err;
|
||||||
@ -124,7 +124,7 @@ impl<'tcx> NonConstOp<'tcx> for FnCallNonConst<'tcx> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
middle_ty::Adt(..) => {
|
ty::Adt(..) => {
|
||||||
let obligation =
|
let obligation =
|
||||||
Obligation::new(tcx, ObligationCause::dummy(), param_env, trait_ref);
|
Obligation::new(tcx, ObligationCause::dummy(), param_env, trait_ref);
|
||||||
|
|
||||||
@ -621,7 +621,7 @@ impl<'tcx> NonConstOp<'tcx> for ThreadLocalAccess {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Types that cannot appear in the signature or locals of a `const fn`.
|
/// Types that cannot appear in the signature or locals of a `const fn`.
|
||||||
pub mod ty {
|
pub mod mut_ref {
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user