Skip to content

Commit 0327d8a

Browse files
pcwaltonhuonw
authored andcommitted
librustc: Fix merge fallout.
1 parent a0646ae commit 0327d8a

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

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
}

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)