diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2022-09-19 22:40:04 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2022-09-21 09:34:01 +0000 |
| commit | 369efd0d8e477166a6195334bd2ad6a18d41b267 (patch) | |
| tree | 8f06e9a3307b7adacfe430f631531254747fbc76 /src | |
| parent | eb84c8b6211c540bb88f4a5f279988725021f486 (diff) | |
Lint fixes
Diffstat (limited to 'src')
| -rw-r--r-- | src/bin/miri.rs | 1 | ||||
| -rw-r--r-- | src/concurrency/sync.rs | 2 | ||||
| -rw-r--r-- | src/shims/unix/fs.rs | 2 |
3 files changed, 2 insertions, 3 deletions
diff --git a/src/bin/miri.rs b/src/bin/miri.rs index 644a8129eee..7d32ee42573 100644 --- a/src/bin/miri.rs +++ b/src/bin/miri.rs @@ -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; diff --git a/src/concurrency/sync.rs b/src/concurrency/sync.rs index d301ced8511..464f452ca76 100644 --- a/src/concurrency/sync.rs +++ b/src/concurrency/sync.rs @@ -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()) } } diff --git a/src/shims/unix/fs.rs b/src/shims/unix/fs.rs index edeb2001f93..8464c4589ed 100644 --- a/src/shims/unix/fs.rs +++ b/src/shims/unix/fs.rs @@ -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)) } } |
