Silence various warnings

This commit is contained in:
Niko Matsakis 2013-07-10 10:04:22 -04:00
parent 86b6e6e2f5
commit 3b911816ec
4 changed files with 3 additions and 5 deletions

View File

@ -34,7 +34,6 @@ be indexed by the direction (see the type `Direction`).
*/
use std::prelude::*;
use std::uint;
use std::vec;

View File

@ -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",

View File

@ -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)));

View File

@ -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)
}
}