about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-08-30 13:31:05 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2024-08-30 13:31:05 +1000
commitde02c4af61f73998bbd01cb05c5d214fc6deb384 (patch)
treeec1877466740a2bb57872d81354603cae7f7ac15
parent37d1ce91b5d81c9a7239eb33e17e3d73f7f81aea (diff)
downloadrust-de02c4af61f73998bbd01cb05c5d214fc6deb384.tar.gz
rust-de02c4af61f73998bbd01cb05c5d214fc6deb384.zip
Remove `#[macro_use] extern crate tracing` from rustfmt helpers.
-rw-r--r--src/tools/rustfmt/src/format-diff/main.rs4
-rw-r--r--src/tools/rustfmt/src/git-rustfmt/main.rs4
2 files changed, 2 insertions, 6 deletions
diff --git a/src/tools/rustfmt/src/format-diff/main.rs b/src/tools/rustfmt/src/format-diff/main.rs
index f9eb70f6e04..d8616c63df9 100644
--- a/src/tools/rustfmt/src/format-diff/main.rs
+++ b/src/tools/rustfmt/src/format-diff/main.rs
@@ -4,12 +4,10 @@
 
 #![deny(warnings)]
 
-#[macro_use]
-extern crate tracing;
-
 use serde::{Deserialize, Serialize};
 use serde_json as json;
 use thiserror::Error;
+use tracing::debug;
 use tracing_subscriber::EnvFilter;
 
 use std::collections::HashSet;
diff --git a/src/tools/rustfmt/src/git-rustfmt/main.rs b/src/tools/rustfmt/src/git-rustfmt/main.rs
index 5674f40bef9..b8b0432aa95 100644
--- a/src/tools/rustfmt/src/git-rustfmt/main.rs
+++ b/src/tools/rustfmt/src/git-rustfmt/main.rs
@@ -2,9 +2,6 @@
 // `rustc_driver`.
 #![feature(rustc_private)]
 
-#[macro_use]
-extern crate tracing;
-
 use std::env;
 use std::io::stdout;
 use std::path::{Path, PathBuf};
@@ -13,6 +10,7 @@ use std::str::FromStr;
 
 use getopts::{Matches, Options};
 use rustfmt_nightly as rustfmt;
+use tracing::debug;
 use tracing_subscriber::EnvFilter;
 
 use crate::rustfmt::{load_config, CliOptions, FormatReportFormatterBuilder, Input, Session};