Always import all tracing macros for the entire crate instead of piecemeal by module
This commit is contained in:
parent
d3b22c7267
commit
ee3c835018
88 changed files with 76 additions and 119 deletions
|
@ -14,8 +14,6 @@ use rustc_session::parse::ParseSess;
|
|||
use rustc_span::symbol::{sym, Symbol};
|
||||
use rustc_span::{edition::Edition, BytePos, Pos, Span};
|
||||
|
||||
use tracing::debug;
|
||||
|
||||
mod tokentrees;
|
||||
mod unescape_error_reporting;
|
||||
mod unicode_chars;
|
||||
|
|
|
@ -20,13 +20,9 @@ pub(crate) fn emit_unescape_error(
|
|||
range: Range<usize>,
|
||||
error: EscapeError,
|
||||
) {
|
||||
tracing::debug!(
|
||||
debug!(
|
||||
"emit_unescape_error: {:?}, {:?}, {:?}, {:?}, {:?}",
|
||||
lit,
|
||||
span_with_quotes,
|
||||
mode,
|
||||
range,
|
||||
error
|
||||
lit, span_with_quotes, mode, range, error
|
||||
);
|
||||
let last_char = || {
|
||||
let c = lit[range.clone()].chars().rev().next().unwrap();
|
||||
|
|
|
@ -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)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue