]> git.lizzy.rs Git - rust.git/commitdiff
librustc: Fix merge fallout.
authorPatrick Walton <pcwalton@mimiga.net>
Mon, 13 Jan 2014 23:06:50 +0000 (15:06 -0800)
committerHuon Wilson <dbau.pp+github@gmail.com>
Sat, 1 Feb 2014 14:44:48 +0000 (01:44 +1100)
src/librustc/middle/lint.rs
src/librustc/middle/trans/glue.rs

index 3dfa186e4a95b8fb0bf319dc013030a62eab809d..af83bc97adc46b28b120ae43df1ca04fd7be7247 100644 (file)
@@ -609,15 +609,17 @@ pub fn each_lint(sess: session::Session,
 // Check from a list of attributes if it contains the appropriate
 // `#[level(lintname)]` attribute (e.g. `#[allow(dead_code)]).
 pub fn contains_lint(attrs: &[ast::Attribute],
-                    level: level, lintname: &'static str) -> bool {
+                     level: level,
+                     lintname: &'static str)
+                     -> bool {
     let level_name = level_to_str(level);
-    for attr in attrs.iter().filter(|m| level_name == m.name()) {
+    for attr in attrs.iter().filter(|m| m.name().equiv(&level_name)) {
         if attr.meta_item_list().is_none() {
             continue
         }
         let list = attr.meta_item_list().unwrap();
         for meta_item in list.iter() {
-            if lintname == meta_item.name() {
+            if meta_item.name().equiv(&lintname) {
                 return true;
             }
         }
index e002ecf04710c5b5d95c2fac3e39ddf03974b083..932b954e266889a24843935fa21a1b7a87709c9f 100644 (file)
@@ -482,7 +482,7 @@ pub fn declare_tydesc(ccx: &CrateContext, t: ty::t) -> @tydesc_info {
     });
 
     let ty_name = token::intern_and_get_ident(ppaux::ty_to_str(ccx.tcx, t));
-    let ty_name = C_estr_slice(ccx, ty_name);
+    let ty_name = C_str_slice(ccx, ty_name);
 
     let inf = @tydesc_info {
         ty: t,