Lint fixes

This commit is contained in:
Oli Scherer 2022-09-19 22:40:04 +00:00
parent eb84c8b621
commit 369efd0d8e
3 changed files with 2 additions and 3 deletions

View File

@ -7,7 +7,6 @@
extern crate rustc_data_structures;
extern crate rustc_driver;
extern crate rustc_errors;
extern crate rustc_hir;
extern crate rustc_interface;
extern crate rustc_metadata;

View File

@ -44,7 +44,7 @@ macro_rules! declare_id {
}
impl $name {
pub fn to_u32_scalar<'tcx>(&self) -> Scalar<Provenance> {
pub fn to_u32_scalar(&self) -> Scalar<Provenance> {
Scalar::from_u32(self.0.get())
}
}

View File

@ -246,7 +246,7 @@ impl FileDescriptor for DummyOutput {
Ok(Ok(bytes.len()))
}
fn dup<'tcx>(&mut self) -> io::Result<Box<dyn FileDescriptor>> {
fn dup(&mut self) -> io::Result<Box<dyn FileDescriptor>> {
Ok(Box::new(DummyOutput))
}
}