mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-24 05:33:41 +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",
|
||||
"completion",
|
||||
"either",
|
||||
"env_logger",
|
||||
"expect-test",
|
||||
"hir",
|
||||
"ide_db",
|
||||
|
@ -37,4 +37,3 @@ hir = { path = "../hir", version = "0.0.0" }
|
||||
|
||||
[dev-dependencies]
|
||||
expect-test = "1.1"
|
||||
env_logger = { version = "0.8.1", default-features = false }
|
@ -447,9 +447,6 @@ fn foo<fold arglist>(
|
||||
|
||||
#[test]
|
||||
fn fold_region() {
|
||||
log_init_for_test_debug();
|
||||
// only error level log is printed on the terminal
|
||||
log::error!("test fold_region");
|
||||
check(
|
||||
r#"
|
||||
// 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