Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rustc_typeck: export modules and fields for sub-passes. #25390

Merged
merged 1 commit into from May 20, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/librustc_typeck/lib.rs
Expand Up @@ -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>,
Expand All @@ -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
Expand Down