Skip to content

Commit ffbeebb

Browse files
committedJan 4, 2022
Make rustc_log doc test runnable
1 parent dd5ee32 commit ffbeebb

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed
 

‎Cargo.lock

+1
Original file line numberDiff line numberDiff line change
@@ -4080,6 +4080,7 @@ name = "rustc_log"
40804080
version = "0.0.0"
40814081
dependencies = [
40824082
"atty",
4083+
"rustc_span",
40834084
"tracing",
40844085
"tracing-subscriber",
40854086
"tracing-tree",

‎compiler/rustc_log/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ name = "rustc_log"
33
version = "0.0.0"
44
edition = "2021"
55

6-
[lib]
7-
doctest = false
8-
96
[dependencies]
107
atty = "0.2"
118
tracing = "0.1.28"
129
tracing-subscriber = { version = "0.3.3", default-features = false, features = ["fmt", "env-filter", "smallvec", "parking_lot", "ansi"] }
1310
tracing-tree = "0.2.0"
1411

12+
[dev-dependencies]
13+
rustc_span = { path = "../rustc_span" }
14+
1515
[features]
1616
max_level_info = ['tracing/max_level_info']

‎compiler/rustc_log/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
//! rustc_span = { path = "../rust/compiler/rustc_span" }
1313
//! ```
1414
//!
15-
//! ```ignore
15+
//! ```
1616
//! fn main() {
1717
//! rustc_log::init_rustc_env_logger().unwrap();
1818
//!

0 commit comments

Comments
 (0)