Skip to content

Commit 62e6a2f

Browse files
authored
Unrolled build for #149767
Rollup merge of #149767 - reddevilmidzy:t11, r=Kivooeo Tidying up tests/ui/issues 33 tests [4/N] > [!NOTE] > Intermediate commits are intended to help review, but will be squashed add comment commit prior to merge. part of #133895 `tests/ui/compile-flags` split it into `tests/ui/compile-flags/invalid/` and `tests/ui/compile-flags/run-pass/` r? Kivooeo
2 parents 31010ca + 1bd997a commit 62e6a2f

File tree

114 files changed

+205
-192
lines changed

Some content is hidden

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

114 files changed

+205
-192
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/issues/issue-46472.stderr renamed to 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/issues/issue-19499.rs renamed to 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: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
//! regression test for https://github.com/rust-lang/rust/issues/24779
2+
//@ run-pass
3+
fn main() {
4+
assert_eq!((|| || 42)()(), 42);
5+
}

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)