about summary refs log tree commit diff
path: root/src/rustc
diff options
context:
space:
mode:
Diffstat (limited to 'src/rustc')
-rw-r--r--src/rustc/driver/driver.rs2
-rw-r--r--src/rustc/front/test.rs2
-rw-r--r--src/rustc/metadata/encoder.rs2
-rw-r--r--src/rustc/middle/lang_items.rs2
-rw-r--r--src/rustc/middle/resolve3.rs2
-rw-r--r--src/rustc/util/ppaux.rs6
6 files changed, 8 insertions, 8 deletions
diff --git a/src/rustc/driver/driver.rs b/src/rustc/driver/driver.rs
index c1a371af4dd..f3ebc65e49b 100644
--- a/src/rustc/driver/driver.rs
+++ b/src/rustc/driver/driver.rs
@@ -272,7 +272,7 @@ fn pretty_print_input(sess: session, cfg: ast::crate_cfg, input: input,
                       ppm: pp_mode) {
     fn ann_paren_for_expr(node: pprust::ann_node) {
         match node {
-          pprust::node_expr(s, expr) => pprust::popen(s),
+          pprust::node_expr(s, _) => pprust::popen(s),
           _ => ()
         }
     }
diff --git a/src/rustc/front/test.rs b/src/rustc/front/test.rs
index d2abe360f67..f36b94055fa 100644
--- a/src/rustc/front/test.rs
+++ b/src/rustc/front/test.rs
@@ -105,7 +105,7 @@ fn fold_item(cx: test_ctxt, &&i: @ast::item, fld: fold::ast_fold) ->
 
     if is_test_fn(i) {
         match i.node {
-          ast::item_fn(decl, purity, _, _) if purity == ast::unsafe_fn => {
+          ast::item_fn(_, purity, _, _) if purity == ast::unsafe_fn => {
             cx.sess.span_fatal(
                 i.span,
                 ~"unsafe functions cannot be used for tests");
diff --git a/src/rustc/metadata/encoder.rs b/src/rustc/metadata/encoder.rs
index 24b259f84f6..abc4760b66d 100644
--- a/src/rustc/metadata/encoder.rs
+++ b/src/rustc/metadata/encoder.rs
@@ -990,7 +990,7 @@ fn synthesize_crate_attrs(ecx: @encode_ctxt, crate: @crate) -> ~[attribute] {
                 attr
             } else {
                 match attr.node.value.node {
-                  meta_list(n, l) => {
+                  meta_list(_, l) => {
                     found_link_attr = true;;
                     synthesize_link_attr(ecx, l)
                   }
diff --git a/src/rustc/middle/lang_items.rs b/src/rustc/middle/lang_items.rs
index f85dc4c7324..e454813ce4c 100644
--- a/src/rustc/middle/lang_items.rs
+++ b/src/rustc/middle/lang_items.rs
@@ -187,7 +187,7 @@ struct LanguageItemCollector {
                 none => {
                     self.session.err(fmt!("no item found for `%s`", key));
                 }
-                some(did) => {
+                some(_) => {
                     // OK.
                 }
             }
diff --git a/src/rustc/middle/resolve3.rs b/src/rustc/middle/resolve3.rs
index 0de27f61b62..e0a1e93bdf8 100644
--- a/src/rustc/middle/resolve3.rs
+++ b/src/rustc/middle/resolve3.rs
@@ -729,7 +729,7 @@ struct Resolver {
     fn visibility_to_privacy(visibility: visibility) -> Privacy {
         match visibility {
             inherited | public => Public,
-            privacy => Private
+            private => Private
         }
     }
 
diff --git a/src/rustc/util/ppaux.rs b/src/rustc/util/ppaux.rs
index 9d952517052..308455d76fc 100644
--- a/src/rustc/util/ppaux.rs
+++ b/src/rustc/util/ppaux.rs
@@ -179,10 +179,10 @@ fn region_to_str(cx: ctxt, region: region) -> ~str {
     // to fit that into a short string.  Hence the recommendation to use
     // `explain_region()` or `note_and_explain_region()`.
     match region {
-      re_scope(node_id) => ~"&",
+      re_scope(_) => ~"&",
       re_bound(br) => bound_region_to_str(cx, br),
-      re_free(id, br) => bound_region_to_str(cx, br),
-      re_var(id)    => ~"&",
+      re_free(_, br) => bound_region_to_str(cx, br),
+      re_var(_)    => ~"&",
       re_static     => ~"&static"
     }
 }