enable some warnings that rustc bootstrap enables

This commit is contained in:
Ralf Jung 2022-12-25 14:18:41 +01:00
parent fed7e2c935
commit 92b6562a25
4 changed files with 4 additions and 4 deletions

View File

@ -243,7 +243,7 @@ if [ -z "$CARGO_PROFILE_DEV_OPT_LEVEL" ]; then
export CARGO_PROFILE_DEV_OPT_LEVEL=2
fi
# Enable rustc-specific lints (ignored without `-Zunstable-options`).
export RUSTFLAGS="-Zunstable-options -Wrustc::internal $RUSTFLAGS"
export RUSTFLAGS="-Zunstable-options -Wrustc::internal -Wrust_2018_idioms -Wunused_lifetimes -Wsemicolon_in_expressions_from_macros $RUSTFLAGS"
# We set the rpath so that Miri finds the private rustc libraries it needs.
export RUSTFLAGS="-C link-args=-Wl,-rpath,$LIBDIR $RUSTFLAGS"

View File

@ -36,7 +36,7 @@ fn as_epoll_handle<'tcx>(&mut self) -> InterpResult<'tcx, &mut Epoll> {
Ok(self)
}
fn dup<'tcx>(&mut self) -> io::Result<Box<dyn FileDescriptor>> {
fn dup(&mut self) -> io::Result<Box<dyn FileDescriptor>> {
Ok(Box::new(self.clone()))
}

View File

@ -21,7 +21,7 @@ fn name(&self) -> &'static str {
"event"
}
fn dup<'tcx>(&mut self) -> io::Result<Box<dyn FileDescriptor>> {
fn dup(&mut self) -> io::Result<Box<dyn FileDescriptor>> {
Ok(Box::new(Event { val: self.val }))
}

View File

@ -15,7 +15,7 @@ fn name(&self) -> &'static str {
"socketpair"
}
fn dup<'tcx>(&mut self) -> io::Result<Box<dyn FileDescriptor>> {
fn dup(&mut self) -> io::Result<Box<dyn FileDescriptor>> {
Ok(Box::new(SocketPair))
}