Skip to content

Commit

Permalink
Silence various warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed Jul 11, 2013
1 parent 86b6e6e commit 3b91181
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/librustc/middle/graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ be indexed by the direction (see the type `Direction`).
*/

use std::prelude::*;
use std::uint;
use std::vec;

Expand Down
1 change: 0 additions & 1 deletion src/librustc/middle/trans/meth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,6 @@ pub fn trans_trait_callee_from_llval(bcx: block,

let _icx = push_ctxt("impl::trans_trait_callee");
let ccx = bcx.ccx();
let bcx = bcx;

// Load the vtable from the @Trait pair
debug!("(translating trait callee) loading vtable from pair %s",
Expand Down
4 changes: 2 additions & 2 deletions src/librustc/middle/typeck/infer/error_reporting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -372,9 +372,9 @@ impl ErrorReporting for InferCtxt {
sup,
"");
}
infer::ReferenceOutlivesReferent(ty, _) => {
infer::ReferenceOutlivesReferent(ty, span) => {
self.tcx.sess.span_err(
origin.span(),
span,
fmt!("in type `%s`, pointer has a longer lifetime than \
the data it references",
ty.user_string(self.tcx)));
Expand Down
2 changes: 1 addition & 1 deletion src/librustc/util/ppaux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ impl Repr for typeck::method_param {
}

impl Repr for ty::RegionVid {
fn repr(&self, tcx: ctxt) -> ~str {
fn repr(&self, _tcx: ctxt) -> ~str {
fmt!("%?", *self)
}
}
Expand Down

1 comment on commit 3b91181

@nikomatsakis
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r=graydon

Please sign in to comment.