File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
branches/auto/src/librustc/middle Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
13
13
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
14
14
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
15
15
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16
- refs/heads/auto: a0646ae3a496819fe69eec3ee74f4422c0619218
16
+ refs/heads/auto: 0327d8a073a9e094c9cd046c739983f9850ebeeb
17
17
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
18
18
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
19
19
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336
Original file line number Diff line number Diff line change @@ -609,15 +609,17 @@ pub fn each_lint(sess: session::Session,
609
609
// Check from a list of attributes if it contains the appropriate
610
610
// `#[level(lintname)]` attribute (e.g. `#[allow(dead_code)]).
611
611
pub fn contains_lint ( attrs : & [ ast:: Attribute ] ,
612
- level : level , lintname : & ' static str ) -> bool {
612
+ level : level ,
613
+ lintname : & ' static str )
614
+ -> bool {
613
615
let level_name = level_to_str ( level) ;
614
- for attr in attrs. iter ( ) . filter ( |m| level_name == m. name ( ) ) {
616
+ for attr in attrs. iter ( ) . filter ( |m| m. name ( ) . equiv ( & level_name ) ) {
615
617
if attr. meta_item_list ( ) . is_none ( ) {
616
618
continue
617
619
}
618
620
let list = attr. meta_item_list ( ) . unwrap ( ) ;
619
621
for meta_item in list. iter ( ) {
620
- if lintname == meta_item. name ( ) {
622
+ if meta_item. name ( ) . equiv ( & lintname ) {
621
623
return true ;
622
624
}
623
625
}
Original file line number Diff line number Diff line change @@ -482,7 +482,7 @@ pub fn declare_tydesc(ccx: &CrateContext, t: ty::t) -> @tydesc_info {
482
482
} ) ;
483
483
484
484
let ty_name = token:: intern_and_get_ident ( ppaux:: ty_to_str ( ccx. tcx , t) ) ;
485
- let ty_name = C_estr_slice ( ccx, ty_name) ;
485
+ let ty_name = C_str_slice ( ccx, ty_name) ;
486
486
487
487
let inf = @tydesc_info {
488
488
ty : t,
You can’t perform that action at this time.
0 commit comments