mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-03 10:33:34 +00:00
removed logging stuff
This commit is contained in:
parent
75015b6eaa
commit
a28f9545e1
1
Cargo.lock
generated
1
Cargo.lock
generated
@ -634,7 +634,6 @@ dependencies = [
|
|||||||
"cfg",
|
"cfg",
|
||||||
"completion",
|
"completion",
|
||||||
"either",
|
"either",
|
||||||
"env_logger",
|
|
||||||
"expect-test",
|
"expect-test",
|
||||||
"hir",
|
"hir",
|
||||||
"ide_db",
|
"ide_db",
|
||||||
|
@ -36,5 +36,4 @@ completion = { path = "../completion", version = "0.0.0" }
|
|||||||
hir = { path = "../hir", version = "0.0.0" }
|
hir = { path = "../hir", version = "0.0.0" }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
expect-test = "1.1"
|
expect-test = "1.1"
|
||||||
env_logger = { version = "0.8.1", default-features = false }
|
|
@ -447,9 +447,6 @@ fn foo<fold arglist>(
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn fold_region() {
|
fn fold_region() {
|
||||||
log_init_for_test_debug();
|
|
||||||
// only error level log is printed on the terminal
|
|
||||||
log::error!("test fold_region");
|
|
||||||
check(
|
check(
|
||||||
r#"
|
r#"
|
||||||
// 1. some normal comment
|
// 1. some normal comment
|
||||||
@ -460,8 +457,4 @@ calling_function(x,y);
|
|||||||
"#,
|
"#,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn log_init_for_test_debug() {
|
|
||||||
let _ = env_logger::builder().is_test(true).try_init();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user