Always import all tracing macros for the entire crate instead of piecemeal by module
This commit is contained in:
@@ -7,8 +7,6 @@ use rustc_errors::{error_code, Diagnostic, PResult};
|
||||
use rustc_span::{sym, BytePos, Span};
|
||||
use std::convert::TryInto;
|
||||
|
||||
use tracing::debug;
|
||||
|
||||
// Public for rustfmt usage
|
||||
#[derive(Debug)]
|
||||
pub enum InnerAttrPolicy<'a> {
|
||||
|
||||
@@ -29,7 +29,6 @@ use std::ops::{Deref, DerefMut};
|
||||
use std::mem::take;
|
||||
|
||||
use crate::parser;
|
||||
use tracing::{debug, trace};
|
||||
|
||||
const TURBOFISH_SUGGESTION_STR: &str =
|
||||
"use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments";
|
||||
|
||||
@@ -22,7 +22,6 @@ use rustc_span::DUMMY_SP;
|
||||
|
||||
use std::convert::TryFrom;
|
||||
use std::mem;
|
||||
use tracing::debug;
|
||||
|
||||
impl<'a> Parser<'a> {
|
||||
/// Parses a source module as a crate. This is the main entry point for the parser.
|
||||
|
||||
@@ -37,7 +37,6 @@ use rustc_errors::{
|
||||
use rustc_session::parse::ParseSess;
|
||||
use rustc_span::source_map::{Span, DUMMY_SP};
|
||||
use rustc_span::symbol::{kw, sym, Ident, Symbol};
|
||||
use tracing::debug;
|
||||
|
||||
use std::ops::Range;
|
||||
use std::{cmp, mem, slice};
|
||||
|
||||
@@ -13,7 +13,6 @@ use rustc_span::source_map::{BytePos, Span};
|
||||
use rustc_span::symbol::{kw, sym, Ident};
|
||||
|
||||
use std::mem;
|
||||
use tracing::debug;
|
||||
|
||||
/// Specifies how to parse a path.
|
||||
#[derive(Copy, Clone, PartialEq)]
|
||||
|
||||
Reference in New Issue
Block a user