mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-17 22:46:50 +00:00
publicly export ty::subst
in ty
it feels arbitrary to have `Ty` and `Const` directly in that module and to not have `GenericArg` and `GenericArgKind` there. Writing `ty::GenericArg` can also feel clearer than importing it. Using `ty::subst::GenericArg` however is ugly.
This commit is contained in:
parent
64a7aa7016
commit
154eba64b9
@ -22,7 +22,6 @@ use crate::mir::{Body, GeneratorLayout};
|
||||
use crate::traits::{self, Reveal};
|
||||
use crate::ty;
|
||||
use crate::ty::fast_reject::SimplifiedType;
|
||||
use crate::ty::subst::{GenericArg, InternalSubsts, Subst, SubstsRef};
|
||||
use crate::ty::util::Discr;
|
||||
pub use adt::*;
|
||||
pub use assoc::*;
|
||||
@ -44,6 +43,7 @@ use rustc_session::cstore::CrateStoreDyn;
|
||||
use rustc_span::symbol::{kw, sym, Ident, Symbol};
|
||||
use rustc_span::Span;
|
||||
use rustc_target::abi::Align;
|
||||
pub use subst::*;
|
||||
pub use vtable::*;
|
||||
|
||||
use std::fmt::Debug;
|
||||
|
Loading…
Reference in New Issue
Block a user