mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
Make rustc_log doc test runnable
This commit is contained in:
parent
dd5ee326bc
commit
ffbeebbf7a
@ -4080,6 +4080,7 @@ name = "rustc_log"
|
|||||||
version = "0.0.0"
|
version = "0.0.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"atty",
|
"atty",
|
||||||
|
"rustc_span",
|
||||||
"tracing",
|
"tracing",
|
||||||
"tracing-subscriber",
|
"tracing-subscriber",
|
||||||
"tracing-tree",
|
"tracing-tree",
|
||||||
|
@ -3,14 +3,14 @@ name = "rustc_log"
|
|||||||
version = "0.0.0"
|
version = "0.0.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[lib]
|
|
||||||
doctest = false
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
atty = "0.2"
|
atty = "0.2"
|
||||||
tracing = "0.1.28"
|
tracing = "0.1.28"
|
||||||
tracing-subscriber = { version = "0.3.3", default-features = false, features = ["fmt", "env-filter", "smallvec", "parking_lot", "ansi"] }
|
tracing-subscriber = { version = "0.3.3", default-features = false, features = ["fmt", "env-filter", "smallvec", "parking_lot", "ansi"] }
|
||||||
tracing-tree = "0.2.0"
|
tracing-tree = "0.2.0"
|
||||||
|
|
||||||
|
[dev-dependencies]
|
||||||
|
rustc_span = { path = "../rustc_span" }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
max_level_info = ['tracing/max_level_info']
|
max_level_info = ['tracing/max_level_info']
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
//! rustc_span = { path = "../rust/compiler/rustc_span" }
|
//! rustc_span = { path = "../rust/compiler/rustc_span" }
|
||||||
//! ```
|
//! ```
|
||||||
//!
|
//!
|
||||||
//! ```ignore
|
//! ```
|
||||||
//! fn main() {
|
//! fn main() {
|
||||||
//! rustc_log::init_rustc_env_logger().unwrap();
|
//! rustc_log::init_rustc_env_logger().unwrap();
|
||||||
//!
|
//!
|
||||||
|
Loading…
Reference in New Issue
Block a user