diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-11-02 14:10:12 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-11-02 19:35:00 +1100 |
| commit | e1ec2d5cc98cea75d222fc67d31e1d15bfc1d6f1 (patch) | |
| tree | ca6744875782806722df03e6cfc01fa89f8403d8 /clippy_lints/src/missing_inline.rs | |
| parent | 2e907aa90c67d73fadc9be54c6609f618045c10c (diff) | |
| download | rust-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/missing_inline.rs')
| -rw-r--r-- | clippy_lints/src/missing_inline.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clippy_lints/src/missing_inline.rs b/clippy_lints/src/missing_inline.rs index 93f6025c71d..12114dc4cee 100644 --- a/clippy_lints/src/missing_inline.rs +++ b/clippy_lints/src/missing_inline.rs @@ -3,8 +3,7 @@ use rustc_ast::ast; use rustc_hir as hir; use rustc_lint::{self, LateContext, LateLintPass, LintContext}; use rustc_session::{declare_lint_pass, declare_tool_lint}; -use rustc_span::source_map::Span; -use rustc_span::sym; +use rustc_span::{sym, Span}; declare_clippy_lint! { /// ### What it does |
