Skip to content

Commit

Permalink
Avoid triggering rust-lang/rust#26709
Browse files Browse the repository at this point in the history
  • Loading branch information
thepowersgang committed Jul 1, 2015
1 parent edb324e commit 44bd884
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
14 changes: 6 additions & 8 deletions Kernel/Core/lib/mem/aref.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,12 @@ impl<T: ?Sized> ops::Deref for Aref<T>
&self.__inner.data
}
}

//impl ArefBorrow<Any>
impl<T: ?Sized> ops::Drop for Aref<T>
{
fn drop(&mut self) {
assert_eq!(self.__inner.count.load(Ordering::Relaxed), 0);
}
}

impl<T> ArefInner<T>
{
Expand Down Expand Up @@ -95,12 +99,6 @@ impl<T: ?Sized> ops::Deref for ArefInner<T>
&self.data
}
}
impl<T: ?Sized> ops::Drop for ArefInner<T>
{
fn drop(&mut self) {
assert_eq!(self.count.load(Ordering::Relaxed), 0);
}
}


impl<T: ?Sized> ArefBorrow<T>
Expand Down
3 changes: 2 additions & 1 deletion Kernel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ $(warning $(foreach m,$(MODS), $(addsuffix .o,$(call fn_moddeps,$m)) ))
EOBJS := $(foreach m,$(MODS), $(addsuffix .o,$(call fn_moddeps,$m)) )
OBJS += $(EOBJS)

PREFIX := ../.prefix/
PREFIX ?= ../.prefix/
rustcmd = LD_LIBRARY_PATH=$(PREFIX)lib/ $(PREFIX)bin/$1
RUSTC := $(call rustcmd,rustc)
RUSTDOC := $(call rustcmd,rustdoc)
Expand Down Expand Up @@ -68,6 +68,7 @@ RUSTFLAGS += -C no-vectorize-slp
RUSTFLAGS += --cfg arch__$(ARCH)
RUSTFLAGS += -L bin/plugins/
RUSTFLAGS += --cfg nightly --cfg no_std
#RUSTFLAGS += -C save-temps
ifeq ($(USE_ACPICA),1)
RUSTFLAGS += --cfg use_acpica
endif
Expand Down

0 comments on commit 44bd884

Please sign in to comment.