Skip to content

Commit e9959aa

Browse files
committed
comments
1 parent 9f38ca9 commit e9959aa

File tree

40 files changed

+89
-38
lines changed

40 files changed

+89
-38
lines changed

tests/ui/README.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 renamed to tests/ui/borrowck/closure-borrow-conflict-11192.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-11192.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-11192.rs:22:10
33
|
44
LL | let mut test = |foo: &Foo| {
55
| ----------- mutable borrow occurs here

tests/ui/cfg/conditional-compilation-struct.rs renamed to tests/ui/cfg/conditional-compilation-struct-11085.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-11205.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/issues/issue-106755.stderr renamed to tests/ui/diagnostics-infra/primary-fluent-bundle-missing.stderr

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0751]: found both positive and negative implementation of trait `Send` for type `TestType<_>`:
2-
--> $DIR/issue-106755.rs:13:1
2+
--> $DIR/primary-fluent-bundle-missing.rs:15:1
33
|
44
LL | unsafe impl<T: MyTrait + 'static> Send for TestType<T> {}
55
| ------------------------------------------------------ positive implementation here
@@ -8,7 +8,7 @@ LL | impl<T: MyTrait> !Send for TestType<T> {}
88
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ negative implementation here
99

1010
error[E0119]: conflicting implementations of trait `Send` for type `TestType<_>`
11-
--> $DIR/issue-106755.rs:17:1
11+
--> $DIR/primary-fluent-bundle-missing.rs:19:1
1212
|
1313
LL | unsafe impl<T: MyTrait + 'static> Send for TestType<T> {}
1414
| ------------------------------------------------------ first implementation here
@@ -17,26 +17,26 @@ LL | unsafe impl<T: 'static> Send for TestType<T> {}
1717
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `TestType<_>`
1818

1919
error[E0367]: `!Send` impl requires `T: MyTrait` but the struct it is implemented for does not
20-
--> $DIR/issue-106755.rs:13:9
20+
--> $DIR/primary-fluent-bundle-missing.rs:15:9
2121
|
2222
LL | impl<T: MyTrait> !Send for TestType<T> {}
2323
| ^^^^^^^
2424
|
2525
note: the implementor must specify the same requirement
26-
--> $DIR/issue-106755.rs:9:1
26+
--> $DIR/primary-fluent-bundle-missing.rs:11:1
2727
|
2828
LL | struct TestType<T>(::std::marker::PhantomData<T>);
2929
| ^^^^^^^^^^^^^^^^^^
3030

3131
error[E0366]: `!Send` impls cannot be specialized
32-
--> $DIR/issue-106755.rs:19:1
32+
--> $DIR/primary-fluent-bundle-missing.rs:21:1
3333
|
3434
LL | impl !Send for TestType<i32> {}
3535
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3636
|
3737
= note: `i32` is not a generic parameter
3838
note: use the same sequence of generic lifetime, type and const parameters as the struct definition
39-
--> $DIR/issue-106755.rs:9:1
39+
--> $DIR/primary-fluent-bundle-missing.rs:11:1
4040
|
4141
LL | struct TestType<T>(::std::marker::PhantomData<T>);
4242
| ^^^^^^^^^^^^^^^^^^

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 renamed to tests/ui/extern/extern-rust-fn-type-error-10764.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

0 commit comments

Comments
 (0)