Skip to content

Commit cfceeca

Browse files
committed
Auto merge of #25390 - eddyb:typeck-pub, r=nrc
Needed for driving parts of type-checking manually.
2 parents cec980a + 65f3067 commit cfceeca

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/librustc_typeck/lib.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,13 @@ use std::cell::RefCell;
117117
// registered before they are used.
118118
pub mod diagnostics;
119119

120-
mod check;
120+
pub mod check;
121121
mod rscope;
122122
mod astconv;
123-
mod collect;
123+
pub mod collect;
124124
mod constrained_type_params;
125-
mod coherence;
126-
mod variance;
125+
pub mod coherence;
126+
pub mod variance;
127127

128128
pub struct TypeAndSubsts<'tcx> {
129129
pub substs: subst::Substs<'tcx>,
@@ -132,13 +132,13 @@ pub struct TypeAndSubsts<'tcx> {
132132

133133
pub struct CrateCtxt<'a, 'tcx: 'a> {
134134
// A mapping from method call sites to traits that have that method.
135-
trait_map: ty::TraitMap,
135+
pub trait_map: ty::TraitMap,
136136
/// A vector of every trait accessible in the whole crate
137137
/// (i.e. including those from subcrates). This is used only for
138138
/// error reporting, and so is lazily initialised and generally
139139
/// shouldn't taint the common path (hence the RefCell).
140-
all_traits: RefCell<Option<check::method::AllTraitsVec>>,
141-
tcx: &'a ty::ctxt<'tcx>,
140+
pub all_traits: RefCell<Option<check::method::AllTraitsVec>>,
141+
pub tcx: &'a ty::ctxt<'tcx>,
142142
}
143143

144144
// Functions that write types into the node type table

0 commit comments

Comments
 (0)