Visitar URL original
Rollup merge of #159612 - zedddie:gsoc-batch-29-meow, r=Teapot4195 · rust-lang/rust@b8e8ffb · GitHub
Skip to content

Commit b8e8ffb

Browse files
authored
Rollup merge of #159612 - zedddie:gsoc-batch-29-meow, r=Teapot4195
Reorganize `tests/ui/issues` [29/N] Part of [GSoC'26 project](https://rust-lang.zulipchat.com/#narrow/channel/421156-gsoc/topic/Project.3A.20Reorganizing.20tests.2Fui.2Fissues) r? Kivooeo @Teapot4195
2 parents ace4ff7 + 3b999ca commit b8e8ffb

20 files changed

Lines changed: 75 additions & 93 deletions

tests/ui/issues/issue-51655.rs renamed to tests/ui/consts/const_in_pattern/const-bytes-slice-pattern.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
//! Regression test for <https://github.com/rust-lang/rust/issues/51655>.
2+
//! This used to ICE.
13
//@ check-pass
4+
25
#![allow(dead_code)]
36

47
const PATH_DOT: &[u8] = &[b'.'];

tests/ui/issues/issue-24687-embed-debuginfo/auxiliary/issue-24687-mbcs-in-comments.rs renamed to tests/ui/debuginfo/auxiliary/cross-crate-multibyte-debuginfo-comments.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
use std::fmt;
1+
//! Auxiliary file for <https://github.com/rust-lang/rust/issues/24687>.
2+
//! This is a file with many multi-byte characters, to try to encourage
3+
//! the compiler to trip on them. The Drop implementation below will
4+
//! need to have its source location embedded into the debug info for
5+
//! the output file.
26
3-
// This ia file with many multi-byte characters, to try to encourage
4-
// the compiler to trip on them. The Drop implementation below will
5-
// need to have its source location embedded into the debug info for
6-
// the output file.
7+
use std::fmt;
78

89
// αααααααααααααααααααααααααααααααααααααααααααααααααααααααααααααααααααααα
910
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
//! Auxiliary file for <https://github.com/rust-lang/rust/issues/24687>.
2+
//! This is a file that pulls in a separate file as a submodule, where
3+
//! that separate file has many multi-byte characters, to try to
4+
//! encourage the compiler to trip on them.
5+
#![crate_type="lib"]
6+
7+
#[path = "cross-crate-multibyte-debuginfo-comments.rs"]
8+
mod issue_24687_mbcs_in_comments;
9+
10+
pub use issue_24687_mbcs_in_comments::D;

tests/ui/issues/issue-24687-embed-debuginfo/main.rs renamed to tests/ui/debuginfo/cross-crate-multibyte-debuginfo.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
//! Regression test for <https://github.com/rust-lang/rust/issues/24687>.
12
//@ run-pass
2-
//@ aux-build:issue-24687-lib.rs
3+
//@ aux-build:cross-crate-multibyte-debuginfo.rs
34
//@ compile-flags:-g
45

5-
extern crate issue_24687_lib as d;
6+
extern crate cross_crate_multibyte_debuginfo as d;
67

78
fn main() {
89
// Create a `D`, which has a destructor whose body will be codegen'ed

tests/ui/issues/issue-50618.rs renamed to tests/ui/functional-struct-update/fru-unknown-field-in-closure.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
//! Regression test for <https://github.com/rust-lang/rust/issues/50618>.
2+
//! This used to ICE.
3+
14
struct Point {
25
pub x: u64,
36
pub y: u64,

tests/ui/issues/issue-50618.stderr renamed to tests/ui/functional-struct-update/fru-unknown-field-in-closure.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0560]: struct `Point` has no field named `nonexistent`
2-
--> $DIR/issue-50618.rs:14:13
2+
--> $DIR/fru-unknown-field-in-closure.rs:17:13
33
|
44
LL | nonexistent: 0,
55
| ^^^^^^^^^^^ `Point` does not have this field

tests/ui/issues/issue-51116.rs renamed to tests/ui/inference/need_type_info/for-loop-nested-array-inference.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
//! Regression test for <https://github.com/rust-lang/rust/issues/51116>.
2+
//! This used to leak internal `__next` ident into suggestion.
3+
14
fn main() {
25
let tiles = Default::default();
36
for row in &mut tiles {

tests/ui/issues/issue-51116.stderr renamed to tests/ui/inference/need_type_info/for-loop-nested-array-inference.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0282]: type annotations needed
2-
--> $DIR/issue-51116.rs:5:13
2+
--> $DIR/for-loop-nested-array-inference.rs:8:13
33
|
44
LL | *tile = 0;
55
| ^^^^^ cannot infer type

‎tests/ui/issues/issue-24687-embed-debuginfo/auxiliary/issue-24687-lib.rs‎

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

‎tests/ui/issues/issue-5315.rs‎

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

0 commit comments

Comments
 (0)