Skip to content

Commit c6c55cc

Browse files
committed
cleaned up some tests
1 parent 8072811 commit c6c55cc

16 files changed

+76
-78
lines changed

tests/ui/filter-block-view-items.rs renamed to tests/ui/cfg/cfg-false-use-item.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Test that use items with cfg(false) are properly filtered out
2+
13
//@ run-pass
24

35
pub fn main() {

tests/ui/illegal-ufcs-drop.fixed renamed to tests/ui/drop/explicit-drop-call-error.fixed

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Test error for explicit destructor method calls via UFCS
2+
13
//@ run-rustfix
24

35
#![allow(dropping_references)]

tests/ui/illegal-ufcs-drop.rs renamed to tests/ui/drop/explicit-drop-call-error.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Test error for explicit destructor method calls via UFCS
2+
13
//@ run-rustfix
24

35
#![allow(dropping_references)]

tests/ui/illegal-ufcs-drop.stderr renamed to tests/ui/drop/explicit-drop-call-error.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0040]: explicit use of destructor method
2-
--> $DIR/illegal-ufcs-drop.rs:12:5
2+
--> $DIR/explicit-drop-call-error.rs:14:5
33
|
44
LL | Drop::drop(&mut Foo)
55
| ^^^^^^^^^^

tests/ui/format-no-std.rs renamed to tests/ui/fmt/format-macro-no-std.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Test format! macro functionality in no_std environment
2+
13
//@ run-pass
24
//@ ignore-emscripten no no_std executables
35
//@ ignore-wasm different `main` convention
@@ -9,7 +11,8 @@
911
// Import global allocator and panic handler.
1012
extern crate std as other;
1113

12-
#[macro_use] extern crate alloc;
14+
#[macro_use]
15+
extern crate alloc;
1316

1417
use alloc::string::ToString;
1518

@@ -21,7 +24,7 @@ extern "C" fn main(_argc: core::ffi::c_int, _argv: *const *const u8) -> core::ff
2124
let s = format!("test");
2225
assert_eq!(s, "test".to_string());
2326

24-
let s = format!("{test}", test=3_isize);
27+
let s = format!("{test}", test = 3_isize);
2528
assert_eq!(s, "3".to_string());
2629

2730
let s = format!("hello {}", "world");

tests/ui/fun-indirect-call.rs

Lines changed: 0 additions & 9 deletions
This file was deleted.

tests/ui/future-incompatible-lint-group.rs

Lines changed: 0 additions & 15 deletions
This file was deleted.

tests/ui/global-scope.rs

Lines changed: 0 additions & 13 deletions
This file was deleted.

tests/ui/hello.rs

Lines changed: 0 additions & 10 deletions
This file was deleted.

tests/ui/include-macros/parent_dir.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
fn main() {
44
let _ = include_str!("include-macros/file.txt"); //~ ERROR couldn't read
55
//~^HELP different directory
6-
let _ = include_str!("hello.rs"); //~ ERROR couldn't read
7-
//~^HELP different directory
86
let _ = include_bytes!("../../data.bin"); //~ ERROR couldn't read
97
//~^HELP different directory
108
let _ = include_str!("tests/ui/include-macros/file.txt"); //~ ERROR couldn't read

0 commit comments

Comments
 (0)