Stop using hir_ty_to_ty
in rustc_privacy
This commit is contained in:
parent
b998b515e9
commit
4389a1cc42
32 changed files with 191 additions and 565 deletions
|
@ -37,7 +37,7 @@ mod layout_sanity_check;
|
|||
mod needs_drop;
|
||||
mod opaque_types;
|
||||
mod representability;
|
||||
mod sig_types;
|
||||
pub mod sig_types;
|
||||
mod structural_match;
|
||||
mod ty;
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ use rustc_middle::ty::{self, TyCtxt};
|
|||
use rustc_span::Span;
|
||||
use rustc_type_ir::visit::TypeVisitable;
|
||||
|
||||
pub(crate) trait SpannedTypeVisitor<'tcx> {
|
||||
pub trait SpannedTypeVisitor<'tcx> {
|
||||
type BreakTy = !;
|
||||
fn visit(
|
||||
&mut self,
|
||||
|
@ -17,7 +17,7 @@ pub(crate) trait SpannedTypeVisitor<'tcx> {
|
|||
) -> ControlFlow<Self::BreakTy>;
|
||||
}
|
||||
|
||||
pub(crate) fn walk_types<'tcx, V: SpannedTypeVisitor<'tcx>>(
|
||||
pub fn walk_types<'tcx, V: SpannedTypeVisitor<'tcx>>(
|
||||
tcx: TyCtxt<'tcx>,
|
||||
item: LocalDefId,
|
||||
visitor: &mut V,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue