Remove #[macro_use] extern crate tracing
from rustfmt.
This commit is contained in:
parent
de02c4af61
commit
ee5ec5a196
@ -3,6 +3,7 @@
|
|||||||
use rustc_ast::ast;
|
use rustc_ast::ast;
|
||||||
use rustc_ast::HasAttrs;
|
use rustc_ast::HasAttrs;
|
||||||
use rustc_span::{symbol::sym, Span};
|
use rustc_span::{symbol::sym, Span};
|
||||||
|
use tracing::debug;
|
||||||
|
|
||||||
use self::doc_comment::DocCommentFormatter;
|
use self::doc_comment::DocCommentFormatter;
|
||||||
use crate::comment::{contains_comment, rewrite_doc_comment, CommentStyle};
|
use crate::comment::{contains_comment, rewrite_doc_comment, CommentStyle};
|
||||||
|
@ -60,6 +60,7 @@
|
|||||||
|
|
||||||
use rustc_ast::{ast, ptr};
|
use rustc_ast::{ast, ptr};
|
||||||
use rustc_span::{symbol, BytePos, Span};
|
use rustc_span::{symbol, BytePos, Span};
|
||||||
|
use tracing::debug;
|
||||||
|
|
||||||
use crate::comment::{rewrite_comment, CharClasses, FullCodeCharKind, RichChar};
|
use crate::comment::{rewrite_comment, CharClasses, FullCodeCharKind, RichChar};
|
||||||
use crate::config::{IndentStyle, Version};
|
use crate::config::{IndentStyle, Version};
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
use rustc_ast::{ast, ptr};
|
use rustc_ast::{ast, ptr};
|
||||||
use rustc_span::Span;
|
use rustc_span::Span;
|
||||||
use thin_vec::thin_vec;
|
use thin_vec::thin_vec;
|
||||||
|
use tracing::debug;
|
||||||
|
|
||||||
use crate::attr::get_attrs_from_stmt;
|
use crate::attr::get_attrs_from_stmt;
|
||||||
use crate::config::lists::*;
|
use crate::config::lists::*;
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
use itertools::{multipeek, MultiPeek};
|
use itertools::{multipeek, MultiPeek};
|
||||||
use rustc_span::Span;
|
use rustc_span::Span;
|
||||||
|
use tracing::{debug, trace};
|
||||||
|
|
||||||
use crate::config::Config;
|
use crate::config::Config;
|
||||||
use crate::rewrite::RewriteContext;
|
use crate::rewrite::RewriteContext;
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
use rustc_ast::token::{Delimiter, Lit, LitKind};
|
use rustc_ast::token::{Delimiter, Lit, LitKind};
|
||||||
use rustc_ast::{ast, ptr, token, ForLoopKind, MatchKind};
|
use rustc_ast::{ast, ptr, token, ForLoopKind, MatchKind};
|
||||||
use rustc_span::{BytePos, Span};
|
use rustc_span::{BytePos, Span};
|
||||||
|
use tracing::debug;
|
||||||
|
|
||||||
use crate::chains::rewrite_chain;
|
use crate::chains::rewrite_chain;
|
||||||
use crate::closures;
|
use crate::closures;
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
use rustc_ast::ast;
|
use rustc_ast::ast;
|
||||||
use rustc_span::Span;
|
use rustc_span::Span;
|
||||||
|
use tracing::debug;
|
||||||
|
|
||||||
use self::newline_style::apply_newline_style;
|
use self::newline_style::apply_newline_style;
|
||||||
use crate::comment::{CharClasses, FullCodeCharKind};
|
use crate::comment::{CharClasses, FullCodeCharKind};
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
use rustc_ast::visit;
|
use rustc_ast::visit;
|
||||||
use rustc_ast::{ast, ptr};
|
use rustc_ast::{ast, ptr};
|
||||||
use rustc_span::{symbol, BytePos, Span, DUMMY_SP};
|
use rustc_span::{symbol, BytePos, Span, DUMMY_SP};
|
||||||
|
use tracing::debug;
|
||||||
|
|
||||||
use crate::attr::filter_inline_attrs;
|
use crate::attr::filter_inline_attrs;
|
||||||
use crate::comment::{
|
use crate::comment::{
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
#![allow(clippy::match_like_matches_macro)]
|
#![allow(clippy::match_like_matches_macro)]
|
||||||
#![allow(unreachable_pub)]
|
#![allow(unreachable_pub)]
|
||||||
|
|
||||||
#[macro_use]
|
// #[macro_use]
|
||||||
extern crate tracing;
|
// extern crate tracing;
|
||||||
|
|
||||||
// N.B. these crates are loaded from the sysroot, so they need extern crate.
|
// N.B. these crates are loaded from the sysroot, so they need extern crate.
|
||||||
extern crate rustc_ast;
|
extern crate rustc_ast;
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
symbol::{self, kw},
|
symbol::{self, kw},
|
||||||
BytePos, Span, Symbol, DUMMY_SP,
|
BytePos, Span, Symbol, DUMMY_SP,
|
||||||
};
|
};
|
||||||
|
use tracing::debug;
|
||||||
|
|
||||||
use crate::comment::{
|
use crate::comment::{
|
||||||
contains_comment, CharClasses, FindUncommented, FullCodeCharKind, LineClasses,
|
contains_comment, CharClasses, FindUncommented, FullCodeCharKind, LineClasses,
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
use rustc_ast::{ast, ptr, MatchKind};
|
use rustc_ast::{ast, ptr, MatchKind};
|
||||||
use rustc_span::{BytePos, Span};
|
use rustc_span::{BytePos, Span};
|
||||||
|
use tracing::debug;
|
||||||
|
|
||||||
use crate::comment::{combine_strs_with_missing_comments, rewrite_comment, FindUncommented};
|
use crate::comment::{combine_strs_with_missing_comments, rewrite_comment, FindUncommented};
|
||||||
use crate::config::lists::*;
|
use crate::config::lists::*;
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
use rustc_span::{BytePos, Pos, Span};
|
use rustc_span::{BytePos, Pos, Span};
|
||||||
|
use tracing::debug;
|
||||||
|
|
||||||
use crate::comment::{is_last_comment_block, rewrite_comment, CodeCharKind, CommentCodeSlices};
|
use crate::comment::{is_last_comment_block, rewrite_comment, CodeCharKind, CommentCodeSlices};
|
||||||
use crate::config::file_lines::FileLines;
|
use crate::config::file_lines::FileLines;
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
use rustc_ast::ast;
|
use rustc_ast::ast;
|
||||||
use rustc_ast::visit::Visitor;
|
use rustc_ast::visit::Visitor;
|
||||||
use rustc_span::Symbol;
|
use rustc_span::Symbol;
|
||||||
|
use tracing::debug;
|
||||||
|
|
||||||
use crate::attr::MetaVisitor;
|
use crate::attr::MetaVisitor;
|
||||||
use crate::parse::macros::cfg_if::parse_cfg_if;
|
use crate::parse::macros::cfg_if::parse_cfg_if;
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
use rustc_ast::token::Delimiter;
|
use rustc_ast::token::Delimiter;
|
||||||
use rustc_ast::{ast, ptr};
|
use rustc_ast::{ast, ptr};
|
||||||
use rustc_span::Span;
|
use rustc_span::Span;
|
||||||
|
use tracing::debug;
|
||||||
|
|
||||||
use crate::closures;
|
use crate::closures;
|
||||||
use crate::config::Version;
|
use crate::config::Version;
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
use crate::{is_nightly_channel, FormatReport, FormatReportFormatterBuilder, Input, Session};
|
use crate::{is_nightly_channel, FormatReport, FormatReportFormatterBuilder, Input, Session};
|
||||||
|
|
||||||
use rustfmt_config_proc_macro::nightly_only_test;
|
use rustfmt_config_proc_macro::nightly_only_test;
|
||||||
|
use tracing::{debug, warn};
|
||||||
|
|
||||||
mod configuration_snippet;
|
mod configuration_snippet;
|
||||||
mod mod_resolver;
|
mod mod_resolver;
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
use rustc_ast::ast::{self, FnRetTy, Mutability, Term};
|
use rustc_ast::ast::{self, FnRetTy, Mutability, Term};
|
||||||
use rustc_ast::ptr;
|
use rustc_ast::ptr;
|
||||||
use rustc_span::{symbol::kw, BytePos, Pos, Span};
|
use rustc_span::{symbol::kw, BytePos, Pos, Span};
|
||||||
|
use tracing::debug;
|
||||||
|
|
||||||
use crate::comment::{combine_strs_with_missing_comments, contains_comment};
|
use crate::comment::{combine_strs_with_missing_comments, contains_comment};
|
||||||
use crate::config::lists::*;
|
use crate::config::lists::*;
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
use rustc_ast::{ast, token::Delimiter, visit};
|
use rustc_ast::{ast, token::Delimiter, visit};
|
||||||
use rustc_data_structures::sync::Lrc;
|
use rustc_data_structures::sync::Lrc;
|
||||||
use rustc_span::{symbol, BytePos, Pos, Span};
|
use rustc_span::{symbol, BytePos, Pos, Span};
|
||||||
|
use tracing::debug;
|
||||||
|
|
||||||
use crate::attr::*;
|
use crate::attr::*;
|
||||||
use crate::comment::{contains_comment, rewrite_comment, CodeCharKind, CommentCodeSlices};
|
use crate::comment::{contains_comment, rewrite_comment, CodeCharKind, CommentCodeSlices};
|
||||||
|
Loading…
Reference in New Issue
Block a user