diff options
| author | surechen <chenshuo17@huawei.com> | 2023-11-10 10:11:24 +0800 |
|---|---|---|
| committer | surechen <chenshuo17@huawei.com> | 2023-12-10 10:56:22 +0800 |
| commit | 40ae34194c586eea3614d3216322053d2e8e7b37 (patch) | |
| tree | 2f783001d0356467f126d3420e5b94446fb36fde /compiler/rustc_span/src/source_map | |
| parent | 8cd8d313690260e6cacc280b93710d62d4ffefb0 (diff) | |
| download | rust-40ae34194c586eea3614d3216322053d2e8e7b37.tar.gz rust-40ae34194c586eea3614d3216322053d2e8e7b37.zip | |
remove redundant imports
detects redundant imports that can be eliminated. for #117772 : In order to facilitate review and modification, split the checking code and removing redundant imports code into two PR.
Diffstat (limited to 'compiler/rustc_span/src/source_map')
| -rw-r--r-- | compiler/rustc_span/src/source_map/tests.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/compiler/rustc_span/src/source_map/tests.rs b/compiler/rustc_span/src/source_map/tests.rs index 5697969ddb8..113ca493d36 100644 --- a/compiler/rustc_span/src/source_map/tests.rs +++ b/compiler/rustc_span/src/source_map/tests.rs @@ -1,7 +1,5 @@ use super::*; -use rustc_data_structures::sync::{FreezeLock, Lrc}; - fn init_source_map() -> SourceMap { let sm = SourceMap::new(FilePathMapping::empty()); sm.new_source_file(PathBuf::from("blork.rs").into(), "first line.\nsecond line".to_string()); |
