Skip to content

Commit 589acf3

Browse files
committed
rename tests
1 parent cc990b7 commit 589acf3

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed
File renamed without changes.

tests/fail/leak_in_os_tls.stderr renamed to tests/fail/leak_in_lib_tls.stderr

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ LL | __rust_alloc(layout.size(), layout.align())
1010
= note: inside `alloc::alloc::exchange_malloc` at RUSTLIB/alloc/src/alloc.rs:LL:CC
1111
= note: inside `std::boxed::Box::<i32>::new` at RUSTLIB/alloc/src/boxed.rs:LL:CC
1212
note: inside closure
13-
--> $DIR/leak_in_os_tls.rs:LL:CC
13+
--> $DIR/leak_in_lib_tls.rs:LL:CC
1414
|
1515
LL | cell.set(Some(Box::leak(Box::new(123))));
1616
| ^^^^^^^^^^^^^
17-
= note: inside `std::thread::LocalKey::<std::cell::Cell<std::option::Option<&i32>>>::try_with::<[closure@$DIR/leak_in_os_tls.rs:LL:CC], ()>` at RUSTLIB/std/src/thread/local.rs:LL:CC
18-
= note: inside `std::thread::LocalKey::<std::cell::Cell<std::option::Option<&i32>>>::with::<[closure@$DIR/leak_in_os_tls.rs:LL:CC], ()>` at RUSTLIB/std/src/thread/local.rs:LL:CC
17+
= note: inside `std::thread::LocalKey::<std::cell::Cell<std::option::Option<&i32>>>::try_with::<[closure@$DIR/leak_in_lib_tls.rs:LL:CC], ()>` at RUSTLIB/std/src/thread/local.rs:LL:CC
18+
= note: inside `std::thread::LocalKey::<std::cell::Cell<std::option::Option<&i32>>>::with::<[closure@$DIR/leak_in_lib_tls.rs:LL:CC], ()>` at RUSTLIB/std/src/thread/local.rs:LL:CC
1919
note: inside closure
20-
--> $DIR/leak_in_os_tls.rs:LL:CC
20+
--> $DIR/leak_in_lib_tls.rs:LL:CC
2121
|
2222
LL | / TLS.with(|cell| {
2323
LL | | cell.set(Some(Box::leak(Box::new(123))));
File renamed without changes.

tests/fail/leak_in_tls.stderr renamed to tests/fail/leak_in_static_tls.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ LL | __rust_alloc(layout.size(), layout.align())
1010
= note: inside `alloc::alloc::exchange_malloc` at RUSTLIB/alloc/src/alloc.rs:LL:CC
1111
= note: inside `std::boxed::Box::<i32>::new` at RUSTLIB/alloc/src/boxed.rs:LL:CC
1212
note: inside closure
13-
--> $DIR/leak_in_tls.rs:LL:CC
13+
--> $DIR/leak_in_static_tls.rs:LL:CC
1414
|
1515
LL | TLS.set(Some(Box::leak(Box::new(123))));
1616
| ^^^^^^^^^^^^^

0 commit comments

Comments
 (0)