Skip to content

Commit 154eba6

Browse files
committed
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.
1 parent 64a7aa7 commit 154eba6

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_middle/src/ty

1 file changed

+1
-1
lines changed

compiler/rustc_middle/src/ty/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ use crate::mir::{Body, GeneratorLayout};
2222
use crate::traits::{self, Reveal};
2323
use crate::ty;
2424
use crate::ty::fast_reject::SimplifiedType;
25-
use crate::ty::subst::{GenericArg, InternalSubsts, Subst, SubstsRef};
2625
use crate::ty::util::Discr;
2726
pub use adt::*;
2827
pub use assoc::*;
@@ -44,6 +43,7 @@ use rustc_session::cstore::CrateStoreDyn;
4443
use rustc_span::symbol::{kw, sym, Ident, Symbol};
4544
use rustc_span::Span;
4645
use rustc_target::abi::Align;
46+
pub use subst::*;
4747
pub use vtable::*;
4848

4949
use std::fmt::Debug;

0 commit comments

Comments
 (0)