Silence various warnings
This commit is contained in:
parent
86b6e6e2f5
commit
3b911816ec
@ -34,7 +34,6 @@ be indexed by the direction (see the type `Direction`).
|
||||
|
||||
*/
|
||||
|
||||
use std::prelude::*;
|
||||
use std::uint;
|
||||
use std::vec;
|
||||
|
||||
|
@ -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",
|
||||
|
@ -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)));
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user