Skip to content

Commit a564b81

Browse files
committed
---
yaml --- r: 207569 b: refs/heads/tmp c: 82dc34a h: refs/heads/master i: 207567: c9fbc1e v: v3
1 parent 7ac2868 commit a564b81

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
3232
refs/heads/beta: cd7d89af9169885642d43597302af69f842bbd78
3333
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3434
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
35-
refs/heads/tmp: 7b1e8446d1a7b8cccc05441e2a1f52f7c2d2871b
35+
refs/heads/tmp: 82dc34a7627b08c7660dfadcd5ad8792d409a28d
3636
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3737
refs/tags/homu-tmp: 704c2ee730d2e948d11a2edd77e3f35de8329a6e
3838
refs/heads/gate: 97c84447b65164731087ea82685580cc81424412

branches/tmp/src/librustc_lint/builtin.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2203,7 +2203,11 @@ impl LintPass for UnstableFeatures {
22032203
}
22042204
fn check_attribute(&mut self, ctx: &Context, attr: &ast::Attribute) {
22052205
if attr::contains_name(&[attr.node.value.clone()], "feature") {
2206-
ctx.span_lint(UNSTABLE_FEATURES, attr.span, "unstable feature");
2206+
if let Some(items) = attr.node.value.meta_item_list() {
2207+
for item in items {
2208+
ctx.span_lint(UNSTABLE_FEATURES, item.span, "unstable feature");
2209+
}
2210+
}
22072211
}
22082212
}
22092213
}

branches/tmp/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)