Lint fixes
This commit is contained in:
parent
eb84c8b621
commit
369efd0d8e
@ -7,7 +7,6 @@
|
|||||||
|
|
||||||
extern crate rustc_data_structures;
|
extern crate rustc_data_structures;
|
||||||
extern crate rustc_driver;
|
extern crate rustc_driver;
|
||||||
extern crate rustc_errors;
|
|
||||||
extern crate rustc_hir;
|
extern crate rustc_hir;
|
||||||
extern crate rustc_interface;
|
extern crate rustc_interface;
|
||||||
extern crate rustc_metadata;
|
extern crate rustc_metadata;
|
||||||
|
@ -44,7 +44,7 @@ macro_rules! declare_id {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl $name {
|
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())
|
Scalar::from_u32(self.0.get())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -246,7 +246,7 @@ impl FileDescriptor for DummyOutput {
|
|||||||
Ok(Ok(bytes.len()))
|
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))
|
Ok(Box::new(DummyOutput))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user