We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents acf8887 + f86bf0e commit d4daee4Copy full SHA for d4daee4
src/libcore/repr.rs
@@ -23,9 +23,9 @@ use io::{Writer, WriterUtil};
23
use libc::c_void;
24
use managed;
25
use ptr;
26
+#[cfg(stage0)] use sys;
27
use reflect;
28
use reflect::{MovePtr, align};
-use sys;
29
use to_str::ToStr;
30
use vec::UnboxedVecRepr;
31
use vec::raw::{VecRepr, SliceRepr};
@@ -479,7 +479,7 @@ impl TyVisitor for ReprVisitor {
479
}
480
481
#[cfg(not(stage0))]
482
- fn visit_enter_enum(&self, n_variants: uint,
+ fn visit_enter_enum(&self, _n_variants: uint,
483
get_disr: extern unsafe fn(ptr: *Opaque) -> int,
484
_sz: uint, _align: uint) -> bool {
485
let disr = unsafe { get_disr(transmute(self.ptr)) };
0 commit comments