-
Notifications
You must be signed in to change notification settings - Fork 13.9k
Rehome 26 tests/ui/issues/ tests to other subdirectories under tests/ui/ [#5 of Batch #2]
#146490
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ypes-in-trait-implementation-87490.stderr → ...hed-types-in-associated-type-87490.stderr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
tests/ui/issues/issue-72076.rs → .../missing-default-associated-type-72076.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/ui/issues/issue-72076.stderr → ...sing-default-associated-type-72076.stderr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...lid-assignment-in-while-loop-77218.stderr → .../invalid-assignment-in-while-77218.stderr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...ue-70724-add_type_neq_err_label-unwrap.rs → ...nary-operation-error-on-function-70724.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| // https://github.com/rust-lang/rust/issues/70724 | ||
| fn a() -> i32 { | ||
| 3 | ||
| } | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
1 change: 1 addition & 0 deletions
1
tests/ui/issues/issue-72002.rs → ...ion/index-coercion-over-indexmut-72002.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| // https://github.com/rust-lang/rust/issues/72002 | ||
| //@ check-pass | ||
| struct Indexable; | ||
|
|
||
|
|
||
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| // https://github.com/rust-lang/rust/issues/54410 | ||
| extern "C" { | ||
| pub static mut symbol: [i8]; | ||
| //~^ ERROR the size for values of type `[i8]` cannot be known at compilation time | ||
| } | ||
|
|
||
| fn main() { | ||
| println!("{:p}", unsafe { &symbol }); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| error[E0277]: the size for values of type `[i8]` cannot be known at compilation time | ||
| --> $DIR/extern-static-mut-slice-54410.rs:3:5 | ||
| | | ||
| LL | pub static mut symbol: [i8]; | ||
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time | ||
| | | ||
| = help: the trait `Sized` is not implemented for `[i8]` | ||
| = note: statics and constants must have a statically known size | ||
|
|
||
| error: aborting due to 1 previous error | ||
|
|
||
| For more information about this error, try `rustc --explain E0277`. |
1 change: 1 addition & 0 deletions
1
tests/ui/issues/issue-70381.rs → ...-format-string-missing-parameter-70381.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/ui/issues/issue-70381.stderr → ...mat-string-missing-parameter-70381.stderr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
tests/ui/higher-ranked-trait-bounds/higher-trait-bounds-ice-60218.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| // https://github.com/rust-lang/rust/issues/60218 | ||
| // Regression test for #60218 | ||
| // | ||
| // This was reported to cause ICEs. | ||
|
|
||
| use std::iter::Map; | ||
|
|
||
| pub trait Foo {} | ||
|
|
||
| pub fn trigger_error<I, F>(iterable: I, functor: F) | ||
| where | ||
| for<'t> &'t I: IntoIterator, | ||
| for<'t> Map<<&'t I as IntoIterator>::IntoIter, F>: Iterator, | ||
| for<'t> <Map<<&'t I as IntoIterator>::IntoIter, F> as Iterator>::Item: Foo, | ||
| { | ||
| } | ||
|
|
||
| fn main() { | ||
| trigger_error(vec![], |x: &u32| x) //~ ERROR E0277 | ||
| } |
25 changes: 25 additions & 0 deletions
25
tests/ui/higher-ranked-trait-bounds/higher-trait-bounds-ice-60218.stderr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| error[E0277]: the trait bound `&u32: Foo` is not satisfied | ||
| --> $DIR/higher-trait-bounds-ice-60218.rs:19:19 | ||
| | | ||
| LL | trigger_error(vec![], |x: &u32| x) | ||
| | ------------- ^^^^^^ the trait `Foo` is not implemented for `&u32` | ||
| | | | ||
| | required by a bound introduced by this call | ||
| | | ||
| help: this trait has no implementations, consider adding one | ||
| --> $DIR/higher-trait-bounds-ice-60218.rs:8:1 | ||
| | | ||
| LL | pub trait Foo {} | ||
| | ^^^^^^^^^^^^^ | ||
| note: required by a bound in `trigger_error` | ||
| --> $DIR/higher-trait-bounds-ice-60218.rs:14:72 | ||
| | | ||
| LL | pub fn trigger_error<I, F>(iterable: I, functor: F) | ||
| | ------------- required by a bound in this function | ||
| ... | ||
| LL | for<'t> <Map<<&'t I as IntoIterator>::IntoIter, F> as Iterator>::Item: Foo, | ||
| | ^^^ required by this bound in `trigger_error` | ||
|
|
||
| error: aborting due to 1 previous error | ||
|
|
||
| For more information about this error, try `rustc --explain E0277`. |
File renamed without changes.
2 changes: 2 additions & 0 deletions
2
tests/ui/issues/issue-72278.rs → ...bound-lifetime-arguments-warning-72278.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/ui/issues/issue-72278.stderr → ...d-lifetime-arguments-warning-72278.stderr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| pub struct S; | ||
| mod m { pub struct S; } | ||
| pub use crate::m::S as S2; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| // https://github.com/rust-lang/rust/issues/67039 | ||
| // Pin's PartialEq implementation allowed to access the pointer allowing for | ||
| // unsoundness by using Rc::get_mut to move value within Rc. | ||
| // See https://internals.rust-lang.org/t/unsoundness-in-pin/11311/73 for more details. | ||
|
|
||
| use std::ops::Deref; | ||
| use std::pin::Pin; | ||
| use std::rc::Rc; | ||
|
|
||
| struct Apple; | ||
|
|
||
| impl Deref for Apple { | ||
| type Target = Apple; | ||
| fn deref(&self) -> &Apple { | ||
| &Apple | ||
| } | ||
| } | ||
|
|
||
| impl PartialEq<Rc<Apple>> for Apple { | ||
| fn eq(&self, _rc: &Rc<Apple>) -> bool { | ||
| unreachable!() | ||
| } | ||
| } | ||
|
|
||
| fn main() { | ||
| let _ = Pin::new(Apple) == Rc::pin(Apple); | ||
| //~^ ERROR type mismatch resolving | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| error[E0271]: type mismatch resolving `<Rc<Apple> as Deref>::Target == Rc<Apple>` | ||
| --> $DIR/pin-deref-target-partial-eq-67039.rs:26:29 | ||
| | | ||
| LL | let _ = Pin::new(Apple) == Rc::pin(Apple); | ||
| | ^^ expected `Rc<Apple>`, found `Apple` | ||
| | | ||
| = note: expected struct `Rc<Apple>` | ||
| found struct `Apple` | ||
| = note: required for `Pin<Apple>` to implement `PartialEq<Pin<Rc<Apple>>>` | ||
|
|
||
| error: aborting due to 1 previous error | ||
|
|
||
| For more information about this error, try `rustc --explain E0271`. |
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
1 change: 1 addition & 0 deletions
1
tests/ui/issues/issue-74082.rs → .../ui/repr/invalid-repr-on-structs-74082.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
tests/ui/issues/issue-74082.stderr → ...repr/invalid-repr-on-structs-74082.stderr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
tests/ui/issues/issue-73112.rs → ...ked-struct-contains-aligned-type-73112.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
tests/ui/issues/issue-73112.stderr → ...struct-contains-aligned-type-73112.stderr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
tests/ui/issues/issue-71406.rs → .../function-module-ambiguity-error-71406.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| // https://github.com/rust-lang/rust/issues/71406 | ||
| use std::sync::mpsc; | ||
|
|
||
| fn main() { | ||
|
|
||
2 changes: 1 addition & 1 deletion
2
tests/ui/issues/issue-71406.stderr → ...ction-module-ambiguity-error-71406.stderr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions
12
...laxed-bounds-assumed-unsized-87199.stderr → ...ounds/invalid-bound-modifier-87199.stderr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
tests/ui/issues/issue-73229.rs → ...ts/callback-trait-implementation-73229.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| // https://github.com/rust-lang/rust/issues/73229 | ||
| //@ check-pass | ||
|
|
||
| fn any<T>() -> T { | ||
|
|
||
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions
1
...ssue-69602-type-err-during-codegen-ice.rs → ...s/trait-implementation-ambiguity-69602.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| // https://github.com/rust-lang/rust/issues/69602 | ||
| trait TraitA { | ||
| const VALUE: usize; | ||
| } | ||
|
|
||
4 changes: 2 additions & 2 deletions
4
...-69602-type-err-during-codegen-ice.stderr → ...ait-implementation-ambiguity-69602.stderr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
tests/ui/issues/issue-69683.rs → ...e-inference-for-associated-types-69683.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| // https://github.com/rust-lang/rust/issues/69683 | ||
| pub trait Element<S> { | ||
| type Array; | ||
| } | ||
|
|
||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.