mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 11:44:28 +00:00
auto merge of #5918 : catamorphism/rust/Warnings, r=catamorphism
This commit is contained in:
commit
d4daee453c
@ -23,9 +23,9 @@ use io::{Writer, WriterUtil};
|
||||
use libc::c_void;
|
||||
use managed;
|
||||
use ptr;
|
||||
#[cfg(stage0)] use sys;
|
||||
use reflect;
|
||||
use reflect::{MovePtr, align};
|
||||
use sys;
|
||||
use to_str::ToStr;
|
||||
use vec::UnboxedVecRepr;
|
||||
use vec::raw::{VecRepr, SliceRepr};
|
||||
@ -479,7 +479,7 @@ impl TyVisitor for ReprVisitor {
|
||||
}
|
||||
|
||||
#[cfg(not(stage0))]
|
||||
fn visit_enter_enum(&self, n_variants: uint,
|
||||
fn visit_enter_enum(&self, _n_variants: uint,
|
||||
get_disr: extern unsafe fn(ptr: *Opaque) -> int,
|
||||
_sz: uint, _align: uint) -> bool {
|
||||
let disr = unsafe { get_disr(transmute(self.ptr)) };
|
||||
|
Loading…
Reference in New Issue
Block a user