Skip to content

Commit 6fe1099

Browse files
committed
comments
1 parent 8761517 commit 6fe1099

40 files changed

+89
-38
lines changed

tests/ui/SUMMARY.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,10 @@ These tests revolve around command-line flags which change the way error/warning
412412

413413
Exercises `#[diagnostic::*]` namespaced attributes. See [RFC 3368 Diagnostic attribute namespace](https://github.com/rust-lang/rfcs/blob/master/text/3368-diagnostic-attribute-namespace.md).
414414

415+
## `tests/ui/diagnostics-infra`
416+
417+
This directory contains tests and infrastructure related to the diagnostics system, including support for translatable diagnostics
418+
415419
## `tests/ui/diagnostic-width/`: `--diagnostic-width`
416420

417421
Everything to do with `--diagnostic-width`.

tests/ui/borrowck/closure-borrow-conflict.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Regression test for https://github.com/rust-lang/rust/issues/11192
2+
13
struct Foo {
24
x: isize
35
}

tests/ui/issues/issue-11192.stderr renamed to tests/ui/borrowck/closure-borrow-conflict.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0502]: cannot borrow `*ptr` as immutable because it is also borrowed as mutable
2-
--> $DIR/issue-11192.rs:20:10
2+
--> $DIR/closure-borrow-conflict.rs:22:10
33
|
44
LL | let mut test = |foo: &Foo| {
55
| ----------- mutable borrow occurs here

tests/ui/cfg/conditional-compilation-struct.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Regression test for https://github.com/rust-lang/rust/issues/11085
2+
13
//@ run-pass
24

35
#![allow(dead_code)]

tests/ui/array-slice-vec/trait-object-arrays.rs renamed to tests/ui/coercion/trait-object-arrays.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Regression test for https://github.com/rust-lang/rust/issues/11205
2+
13
//@ run-pass
24

35
#![allow(dead_code)]

tests/ui/traits/negative-positive-impl-conflict.rs renamed to tests/ui/diagnostics-infra/primary-fluent-bundle-missing.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Regression test for https://github.com/rust-lang/rust/issues/106755
2+
13
//@ compile-flags:-Ztranslate-lang=en_US
24

35
#![feature(negative_impls)]

tests/ui/drop/conditional-drop-behavior.rs renamed to tests/ui/drop/conditional-drop-10734.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Regression test for https://github.com/rust-lang/rust/issues/10734
2+
13
//@ run-pass
24
#![allow(non_upper_case_globals)]
35

tests/ui/drop/trait-object-drop-behavior.rs renamed to tests/ui/drop/trait-object-drop-10802.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Regression test for https://github.com/rust-lang/rust/issues/10802
2+
13
//@ run-pass
24
#![allow(dead_code)]
35

tests/ui/extern/extern-rust-fn-type-error.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Regression test for https://github.com/rust-lang/rust/issues/10764
2+
13
fn f(_: extern "Rust" fn()) {}
24
extern "C" fn bar() {}
35

tests/ui/issues/issue-10764.stderr renamed to tests/ui/extern/extern-rust-fn-type-error.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0308]: mismatched types
2-
--> $DIR/issue-10764.rs:4:15
2+
--> $DIR/extern-rust-fn-type-error.rs:6:15
33
|
44
LL | fn main() { f(bar) }
55
| - ^^^ expected "Rust" fn, found "C" fn
@@ -9,7 +9,7 @@ LL | fn main() { f(bar) }
99
= note: expected fn pointer `fn()`
1010
found fn item `extern "C" fn() {bar}`
1111
note: function defined here
12-
--> $DIR/issue-10764.rs:1:4
12+
--> $DIR/extern-rust-fn-type-error.rs:3:4
1313
|
1414
LL | fn f(_: extern "Rust" fn()) {}
1515
| ^ ---------------------

0 commit comments

Comments
 (0)