Skip to content

Commit f2535ed

Browse files
pcwaltonhuonw
authored andcommitted
---
yaml --- r: 102522 b: refs/heads/auto c: 0327d8a h: refs/heads/master v: v3
1 parent a9e1d5a commit f2535ed

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: a0646ae3a496819fe69eec3ee74f4422c0619218
16+
refs/heads/auto: 0327d8a073a9e094c9cd046c739983f9850ebeeb
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/librustc/middle/lint.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -609,15 +609,17 @@ pub fn each_lint(sess: session::Session,
609609
// Check from a list of attributes if it contains the appropriate
610610
// `#[level(lintname)]` attribute (e.g. `#[allow(dead_code)]).
611611
pub fn contains_lint(attrs: &[ast::Attribute],
612-
level: level, lintname: &'static str) -> bool {
612+
level: level,
613+
lintname: &'static str)
614+
-> bool {
613615
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)) {
615617
if attr.meta_item_list().is_none() {
616618
continue
617619
}
618620
let list = attr.meta_item_list().unwrap();
619621
for meta_item in list.iter() {
620-
if lintname == meta_item.name() {
622+
if meta_item.name().equiv(&lintname) {
621623
return true;
622624
}
623625
}

branches/auto/src/librustc/middle/trans/glue.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ pub fn declare_tydesc(ccx: &CrateContext, t: ty::t) -> @tydesc_info {
482482
});
483483

484484
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);
486486

487487
let inf = @tydesc_info {
488488
ty: t,

0 commit comments

Comments
 (0)