Skip to content

Commit 51efd8f

Browse files
committed
move type traversals into a shared module
1 parent 8aca4ba commit 51efd8f

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

compiler/rustc_type_ir/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,13 @@ use rustc_macros::{Decodable, Encodable, HashStable_NoContext};
1919

2020
// These modules are `pub` since they are not glob-imported.
2121
#[macro_use]
22-
pub mod visit;
22+
pub mod traverse;
2323
#[cfg(feature = "nightly")]
2424
pub mod codec;
2525
pub mod data_structures;
2626
pub mod elaborate;
2727
pub mod error;
2828
pub mod fast_reject;
29-
pub mod fold;
3029
#[cfg_attr(feature = "nightly", rustc_diagnostic_item = "type_ir_inherent")]
3130
pub mod inherent;
3231
pub mod ir_print;
@@ -79,6 +78,7 @@ pub use region_kind::*;
7978
pub use ty_info::*;
8079
pub use ty_kind::*;
8180
pub use upcast::*;
81+
pub use traverse::{visit, fold};
8282

8383
rustc_index::newtype_index! {
8484
/// A [De Bruijn index][dbi] is a standard means of representing
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#[macro_use]
2+
pub mod visit;
3+
pub mod fold;

0 commit comments

Comments
 (0)