Skip to content

Commit 3b91181

Browse files
committed
Silence various warnings
1 parent 86b6e6e commit 3b91181

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

src/librustc/middle/graph.rs

-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ be indexed by the direction (see the type `Direction`).
3434
3535
*/
3636

37-
use std::prelude::*;
3837
use std::uint;
3938
use std::vec;
4039

src/librustc/middle/trans/meth.rs

-1
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,6 @@ pub fn trans_trait_callee_from_llval(bcx: block,
548548

549549
let _icx = push_ctxt("impl::trans_trait_callee");
550550
let ccx = bcx.ccx();
551-
let bcx = bcx;
552551

553552
// Load the vtable from the @Trait pair
554553
debug!("(translating trait callee) loading vtable from pair %s",

src/librustc/middle/typeck/infer/error_reporting.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -372,9 +372,9 @@ impl ErrorReporting for InferCtxt {
372372
sup,
373373
"");
374374
}
375-
infer::ReferenceOutlivesReferent(ty, _) => {
375+
infer::ReferenceOutlivesReferent(ty, span) => {
376376
self.tcx.sess.span_err(
377-
origin.span(),
377+
span,
378378
fmt!("in type `%s`, pointer has a longer lifetime than \
379379
the data it references",
380380
ty.user_string(self.tcx)));

src/librustc/util/ppaux.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ impl Repr for typeck::method_param {
752752
}
753753

754754
impl Repr for ty::RegionVid {
755-
fn repr(&self, tcx: ctxt) -> ~str {
755+
fn repr(&self, _tcx: ctxt) -> ~str {
756756
fmt!("%?", *self)
757757
}
758758
}

0 commit comments

Comments
 (0)