summary refs log tree commit diff
path: root/compiler/rustc_log
diff options
context:
space:
mode:
authorDavid Tolnay <dtolnay@gmail.com>2022-01-03 22:01:35 -0800
committerDavid Tolnay <dtolnay@gmail.com>2022-01-03 22:31:56 -0800
commitffbeebbf7a6dc5fba40b439fc0ebe80ac72af309 (patch)
tree13924fc498058b44683bebc0937b1e17a1fdd739 /compiler/rustc_log
parentdd5ee326bc565b19421ac952c23203f9ec63140c (diff)
downloadrust-ffbeebbf7a6dc5fba40b439fc0ebe80ac72af309.tar.gz
rust-ffbeebbf7a6dc5fba40b439fc0ebe80ac72af309.zip
Make rustc_log doc test runnable
Diffstat (limited to 'compiler/rustc_log')
-rw-r--r--compiler/rustc_log/Cargo.toml6
-rw-r--r--compiler/rustc_log/src/lib.rs2
2 files changed, 4 insertions, 4 deletions
diff --git a/compiler/rustc_log/Cargo.toml b/compiler/rustc_log/Cargo.toml
index 5b037946224..1b2cde60555 100644
--- a/compiler/rustc_log/Cargo.toml
+++ b/compiler/rustc_log/Cargo.toml
@@ -3,14 +3,14 @@ name = "rustc_log"
 version = "0.0.0"
 edition = "2021"
 
-[lib]
-doctest = false
-
 [dependencies]
 atty = "0.2"
 tracing = "0.1.28"
 tracing-subscriber = { version = "0.3.3", default-features = false, features = ["fmt", "env-filter", "smallvec", "parking_lot", "ansi"] }
 tracing-tree = "0.2.0"
 
+[dev-dependencies]
+rustc_span = { path = "../rustc_span" }
+
 [features]
 max_level_info = ['tracing/max_level_info']
diff --git a/compiler/rustc_log/src/lib.rs b/compiler/rustc_log/src/lib.rs
index 44c76a7379b..f5e7435d36e 100644
--- a/compiler/rustc_log/src/lib.rs
+++ b/compiler/rustc_log/src/lib.rs
@@ -12,7 +12,7 @@
 //! rustc_span = { path = "../rust/compiler/rustc_span" }
 //! ```
 //!
-//! ```ignore
+//! ```
 //! fn main() {
 //!     rustc_log::init_rustc_env_logger().unwrap();
 //!