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.
This commit is contained in:
parent
2e907aa90c
commit
e1ec2d5cc9
68 changed files with 74 additions and 94 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue