diff options
| author | bors <bors@rust-lang.org> | 2015-05-20 15:32:58 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-05-20 15:32:58 +0000 |
| commit | cfceecafc680d10607e6a29b8c4b056bf86a819b (patch) | |
| tree | a7e92c72e391ee3823978264c050c6d04d4aca14 | |
| parent | cec980a1a706fd6afc27dd54c1eed7c51800d753 (diff) | |
| parent | 65f3067b5257895bf3714a0678996520e27b7391 (diff) | |
| download | rust-cfceecafc680d10607e6a29b8c4b056bf86a819b.tar.gz rust-cfceecafc680d10607e6a29b8c4b056bf86a819b.zip | |
Auto merge of #25390 - eddyb:typeck-pub, r=nrc
Needed for driving parts of type-checking manually.
| -rw-r--r-- | src/librustc_typeck/lib.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/librustc_typeck/lib.rs b/src/librustc_typeck/lib.rs index 25602cb0ee3..eaf7f1f92a7 100644 --- a/src/librustc_typeck/lib.rs +++ b/src/librustc_typeck/lib.rs @@ -117,13 +117,13 @@ use std::cell::RefCell; // registered before they are used. pub mod diagnostics; -mod check; +pub mod check; mod rscope; mod astconv; -mod collect; +pub mod collect; mod constrained_type_params; -mod coherence; -mod variance; +pub mod coherence; +pub mod variance; pub struct TypeAndSubsts<'tcx> { pub substs: subst::Substs<'tcx>, @@ -132,13 +132,13 @@ pub struct TypeAndSubsts<'tcx> { pub struct CrateCtxt<'a, 'tcx: 'a> { // A mapping from method call sites to traits that have that method. - trait_map: ty::TraitMap, + pub trait_map: ty::TraitMap, /// A vector of every trait accessible in the whole crate /// (i.e. including those from subcrates). This is used only for /// error reporting, and so is lazily initialised and generally /// shouldn't taint the common path (hence the RefCell). - all_traits: RefCell<Option<check::method::AllTraitsVec>>, - tcx: &'a ty::ctxt<'tcx>, + pub all_traits: RefCell<Option<check::method::AllTraitsVec>>, + pub tcx: &'a ty::ctxt<'tcx>, } // Functions that write types into the node type table |
