File tree Expand file tree Collapse file tree 3 files changed +13
-9
lines changed Expand file tree Collapse file tree 3 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
10
10
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
11
11
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
12
12
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13
- refs/heads/auto: 7b1e8446d1a7b8cccc05441e2a1f52f7c2d2871b
13
+ refs/heads/auto: 82dc34a7627b08c7660dfadcd5ad8792d409a28d
14
14
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
15
15
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
16
16
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336
Original file line number Diff line number Diff line change @@ -2203,7 +2203,11 @@ impl LintPass for UnstableFeatures {
2203
2203
}
2204
2204
fn check_attribute ( & mut self , ctx : & Context , attr : & ast:: Attribute ) {
2205
2205
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
+ }
2207
2211
}
2208
2212
}
2209
2213
}
Original file line number Diff line number Diff line change @@ -117,13 +117,13 @@ use std::cell::RefCell;
117
117
// registered before they are used.
118
118
pub mod diagnostics;
119
119
120
- mod check;
120
+ pub mod check;
121
121
mod rscope;
122
122
mod astconv;
123
- mod collect;
123
+ pub mod collect;
124
124
mod constrained_type_params;
125
- mod coherence;
126
- mod variance;
125
+ pub mod coherence;
126
+ pub mod variance;
127
127
128
128
pub struct TypeAndSubsts < ' tcx > {
129
129
pub substs : subst:: Substs < ' tcx > ,
@@ -132,13 +132,13 @@ pub struct TypeAndSubsts<'tcx> {
132
132
133
133
pub struct CrateCtxt < ' a , ' tcx : ' a > {
134
134
// A mapping from method call sites to traits that have that method.
135
- trait_map : ty:: TraitMap ,
135
+ pub trait_map : ty:: TraitMap ,
136
136
/// A vector of every trait accessible in the whole crate
137
137
/// (i.e. including those from subcrates). This is used only for
138
138
/// error reporting, and so is lazily initialised and generally
139
139
/// 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 > ,
142
142
}
143
143
144
144
// Functions that write types into the node type table
You can’t perform that action at this time.
0 commit comments