about summary refs log tree commit diff
path: root/clippy_lints/src/implicit_hasher.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-11-02 14:10:12 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2023-11-02 19:35:00 +1100
commite1ec2d5cc98cea75d222fc67d31e1d15bfc1d6f1 (patch)
treeca6744875782806722df03e6cfc01fa89f8403d8 /clippy_lints/src/implicit_hasher.rs
parent2e907aa90c67d73fadc9be54c6609f618045c10c (diff)
downloadrust-e1ec2d5cc98cea75d222fc67d31e1d15bfc1d6f1.tar.gz
rust-e1ec2d5cc98cea75d222fc67d31e1d15bfc1d6f1.zip
Minimize `pub` usage in `source_map.rs`.
Most notably, this commit changes the `pub use crate::*;` in that file
to `use crate::*;`. This requires a lot of `use` items in other crates
to be adjusted, because everything defined within `rustc_span::*` was
also available via `rustc_span::source_map::*`, which is bizarre.

The commit also removes `SourceMap::span_to_relative_line_string`, which
is unused.
Diffstat (limited to 'clippy_lints/src/implicit_hasher.rs')
-rw-r--r--clippy_lints/src/implicit_hasher.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/implicit_hasher.rs b/clippy_lints/src/implicit_hasher.rs
index 2b2ea156cd4..230c68f5bf5 100644
--- a/clippy_lints/src/implicit_hasher.rs
+++ b/clippy_lints/src/implicit_hasher.rs
@@ -10,7 +10,7 @@ use rustc_lint::{LateContext, LateLintPass};
 use rustc_middle::hir::nested_filter;
 use rustc_middle::ty::{Ty, TypeckResults};
 use rustc_session::{declare_lint_pass, declare_tool_lint};
-use rustc_span::source_map::Span;
+use rustc_span::Span;
 use rustc_span::symbol::sym;
 
 use if_chain::if_chain;