Skip to content

Commit 1bd997a

Browse files
committed
Cleaned up some tests
Split invalid-compile-flags into run-pass & invalid Update tests/ui/README.md
1 parent 92f21a8 commit 1bd997a

File tree

98 files changed

+139
-126
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+139
-126
lines changed

tests/ui/README.md

Lines changed: 14 additions & 8 deletions
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
//! regression test for issue https://github.com/rust-lang/rust/issues/46472
12
fn bar<'a>() -> &'a mut u32 {
23
&mut 4
34
//~^ ERROR cannot return reference to temporary value [E0515]
45
}
56

6-
fn main() { }
7+
fn main() {}

tests/ui/borrowck/return-ref-to-temporary.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0515]: cannot return reference to temporary value
2-
--> $DIR/issue-46472.rs:2:5
2+
--> $DIR/return-ref-to-temporary.rs:3:5
33
|
44
LL | &mut 4
55
| ^^^^^-

tests/ui/closures/closure-upvar-trait-caching.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
// reasonable examples) let to ambiguity errors about not being able
88
// to infer sufficient type information.
99

10-
1110
fn main() {
1211
let n = 0;
13-
let it = Some(1_usize).into_iter().inspect(|_| {n;});
12+
let it = Some(1_usize).into_iter().inspect(|_| {
13+
n;
14+
});
1415
}
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1+
//! regression test for https://github.com/rust-lang/rust/issues/24779
12
//@ run-pass
23
fn main() {
3-
assert_eq!((||||42)()(), 42);
4+
assert_eq!((|| || 42)()(), 42);
45
}

tests/ui/invalid-compile-flags/branch-protection-missing-pac-ret.BADFLAGS.stderr renamed to tests/ui/compile-flags/invalid/branch-protection-missing-pac-ret.BADFLAGS.stderr

File renamed without changes.

tests/ui/invalid-compile-flags/branch-protection-missing-pac-ret.BADFLAGSPC.stderr renamed to tests/ui/compile-flags/invalid/branch-protection-missing-pac-ret.BADFLAGSPC.stderr

File renamed without changes.

tests/ui/invalid-compile-flags/branch-protection-missing-pac-ret.BADTARGET.stderr renamed to tests/ui/compile-flags/invalid/branch-protection-missing-pac-ret.BADTARGET.stderr

File renamed without changes.

tests/ui/invalid-compile-flags/branch-protection-missing-pac-ret.rs renamed to tests/ui/compile-flags/invalid/branch-protection-missing-pac-ret.rs

File renamed without changes.

tests/ui/invalid-compile-flags/codegen-option-without-group.rs renamed to tests/ui/compile-flags/invalid/codegen-option-without-group.rs

File renamed without changes.

0 commit comments

Comments
 (0)