Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 906ba0a

Browse files
committedMar 22, 2024
add issue numbers via // issue: rust-lang/rust#ISSUE_NUM directive
1 parent 15ef7a0 commit 906ba0a

11 files changed

+39
-8
lines changed
 

‎tests/ui/associated-type-bounds/resolution-failure-building-vtable-representation-ice-90691.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// ICE #90691 Encountered error `Unimplemented` selecting ...
22
//@ build-pass
3+
// issue: rust-lang/rust#90691
34

45
trait TError: std::fmt::Debug {}
56
impl TError for () {}

‎tests/ui/const-generics/generic_const_exprs/failed-to-normalize-ice-issue-88421.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//@ check-pass
2-
2+
// issue: rust-lang/rust#88421
33
#![feature(adt_const_params)]
44
#![feature(generic_const_exprs)]
55
#![allow(incomplete_features)]

‎tests/ui/consts/ice-bad-input-type-for-cast-83056.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// #83056 ICE "bad input type for cast"
2+
// issue: rust-lang/rust#83056
23

34
struct S([bool; f as usize]);
45
fn f() -> T {}

‎tests/ui/consts/ice-bad-input-type-for-cast-83056.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0412]: cannot find type `T` in this scope
2-
--> $DIR/ice-bad-input-type-for-cast-83056.rs:4:11
2+
--> $DIR/ice-bad-input-type-for-cast-83056.rs:5:11
33
|
44
LL | struct S([bool; f as usize]);
55
| ----------------------------- similarly named struct `S` defined here

‎tests/ui/extern/extern-C-non-FFI-safe-arg-ice-52334.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// test for #52334 ICE when casting extern "C" fn when it has a non-FFI-safe argument
22
//@ check-pass
3-
3+
// issue: rust-lang/rust#52334
44
type Foo = extern "C" fn(::std::ffi::CStr);
55
//~^ WARN `extern` fn uses type `[i8]`, which is not FFI-safe
66
extern "C" {

‎tests/ui/extern/extern-C-str-arg-ice-80125.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// test for #80125
1+
// issue: rust-lang/rust#80125
22
//@ check-pass
33
type ExternCallback = extern "C" fn(*const u8, u32, str);
44
//~^ WARN `extern` fn uses type `str`, which is not FFI-safe

‎tests/ui/privacy/decl-macro-infinite-global-import-cycle-ice-64784.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// ICE #64784 already borrowed: BorrowMutError
22
//@ check-pass
3+
// issue: rust-lang/rust#64784
34
#![feature(decl_macro)]
45

56
pub macro m($i:ident, $j:ident) {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
error[E0391]: cycle detected when computing layout of `Foo`
2+
|
3+
= note: ...which requires computing layout of `<&'static Foo as core::ops::deref::Deref>::Target`...
4+
= note: ...which again requires computing layout of `Foo`, completing the cycle
5+
note: cycle used when const-evaluating + checking `_`
6+
--> $DIR/stack-overflow-trait-infer-98842.rs:15:1
7+
|
8+
LL | const _: *const Foo = 0 as _;
9+
| ^^^^^^^^^^^^^^^^^^^
10+
= note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information
11+
12+
error[E0080]: it is undefined behavior to use this value
13+
--> $DIR/stack-overflow-trait-infer-98842.rs:15:1
14+
|
15+
LL | const _: *const Foo = 0 as _;
16+
| ^^^^^^^^^^^^^^^^^^^ a cycle occurred during layout computation
17+
|
18+
= note: the raw bytes of the constant (size: 8, align: 8) {
19+
00 00 00 00 00 00 00 00 │ ........
20+
}
21+
22+
error: aborting due to 2 previous errors
23+
24+
Some errors have detailed explanations: E0080, E0391.
25+
For more information about an error, try `rustc --explain E0080`.

‎tests/ui/sized/stack-overflow-trait-infer-98842.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
// #98842 stack overflow in trait inference
2+
// issue: rust-lang/rust#98842
23
//@ check-fail
34
//@ edition:2021
4-
//~^^^ ERROR cycle detected when computing layout of `Foo`
5+
//@ stderr-per-bitwidth
6+
//@ ignore-endian-big
7+
//~^^^^^^ ERROR cycle detected when computing layout of `Foo`
58

69
// If the inner `Foo` is named through an associated type,
710
// the "infinite size" error does not occur.

‎tests/ui/sized/stack-overflow-trait-infer-98842.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ error[E0391]: cycle detected when computing layout of `Foo`
33
= note: ...which requires computing layout of `<&'static Foo as core::ops::deref::Deref>::Target`...
44
= note: ...which again requires computing layout of `Foo`, completing the cycle
55
note: cycle used when const-evaluating + checking `_`
6-
--> $DIR/stack-overflow-trait-infer-98842.rs:12:1
6+
--> $DIR/stack-overflow-trait-infer-98842.rs:13:1
77
|
88
LL | const _: *const Foo = 0 as _;
99
| ^^^^^^^^^^^^^^^^^^^
1010
= note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information
1111

1212
error[E0080]: it is undefined behavior to use this value
13-
--> $DIR/stack-overflow-trait-infer-98842.rs:12:1
13+
--> $DIR/stack-overflow-trait-infer-98842.rs:13:1
1414
|
1515
LL | const _: *const Foo = 0 as _;
1616
| ^^^^^^^^^^^^^^^^^^^ a cycle occurred during layout computation

‎tests/ui/unsized-locals/ice-size_and_align_of-closure-not-supported-88212.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// ICE size_and_align_of::<[closure@test.rs:15:5: 17:7]> not supported #88212
2-
2+
// issue: rust-lang/rust#88212
33
#![feature(unsized_locals)]
44
//~^ WARN the feature `unsized_locals` is incomplete and may not be safe to use and/or cause compiler crashes
55

0 commit comments

Comments
 (0)
Failed to load comments.