Skip to content

Rehome 21 tests/ui/issues/ tests to other subdirectories under tests/ui/ #144548

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// https://github.com/rust-lang/rust/issues/26095
//@ check-pass
#![allow(dead_code)]
#![allow(non_upper_case_globals)]


trait HasNumber<T> {
const Number: usize;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/54044
#![deny(unused_attributes)] //~ NOTE lint level is defined here

#[cold]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error: attribute should be applied to a function definition
--> $DIR/issue-54044.rs:3:1
--> $DIR/cold-attribute-application-54044.rs:4:1
|
LL | #[cold]
| ^^^^^^^
Expand All @@ -9,13 +9,13 @@ LL | struct Foo;
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
note: the lint level is defined here
--> $DIR/issue-54044.rs:1:9
--> $DIR/cold-attribute-application-54044.rs:2:9
|
LL | #![deny(unused_attributes)]
| ^^^^^^^^^^^^^^^^^

error: attribute should be applied to a function definition
--> $DIR/issue-54044.rs:9:5
--> $DIR/cold-attribute-application-54044.rs:10:5
|
LL | #[cold]
| ^^^^^^^
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/36786
//@ run-pass
// Ensure that types that rely on obligations are autoderefed
// correctly
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/46471
fn main() {
let y = {
let mut z = 0;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0597]: `z` does not live long enough
--> $DIR/issue-46471-1.rs:4:9
--> $DIR/borrow-checker-lifetime-error-464711.rs:5:9
|
LL | let mut z = 0;
| ----- binding `z` declared here
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/11869
//@ check-pass
#![allow(dead_code)]

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/9918
//@ run-pass

pub fn main() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/36023
//@ run-pass
#![allow(unused_variables)]
use std::ops::Deref;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/18058
impl Undefined {}
//~^ ERROR cannot find type `Undefined` in this scope

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0412]: cannot find type `Undefined` in this scope
--> $DIR/issue-18058.rs:1:6
--> $DIR/impl-coherence-error-for-undefined-type-18058.rs:2:6
|
LL | impl Undefined {}
| ^^^^^^^^^ not found in this scope
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/77919
fn main() {
[1; <Multiply<Five, Five>>::VAL];
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0412]: cannot find type `PhantomData` in this scope
--> $DIR/issue-77919.rs:9:9
--> $DIR/trait-resolution-error-with-const-generics-77919.rs:10:9
|
LL | _n: PhantomData,
| ^^^^^^^^^^^ not found in this scope
Expand All @@ -10,7 +10,7 @@ LL + use std::marker::PhantomData;
|

error[E0412]: cannot find type `VAL` in this scope
--> $DIR/issue-77919.rs:11:63
--> $DIR/trait-resolution-error-with-const-generics-77919.rs:12:63
|
LL | impl<N, M> TypeVal<usize> for Multiply<N, M> where N: TypeVal<VAL> {}
| ^^^ not found in this scope
Expand All @@ -21,7 +21,7 @@ LL | impl<N, M, VAL> TypeVal<usize> for Multiply<N, M> where N: TypeVal<VAL> {}
| +++++

error[E0046]: not all trait items implemented, missing: `VAL`
--> $DIR/issue-77919.rs:11:1
--> $DIR/trait-resolution-error-with-const-generics-77919.rs:12:1
|
LL | const VAL: T;
| ------------ `VAL` from trait
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/4734
//@ run-pass
#![allow(dead_code)]
// Ensures that destructors are run for expressions of the form "e;" where
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/36116
// Unnecessary path disambiguator is ok

//@ check-pass
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/12909
//@ run-pass
#![allow(unused_variables)]

Expand Down
3 changes: 0 additions & 3 deletions tests/ui/issues/auxiliary/issue-25185-2.rs

This file was deleted.

12 changes: 0 additions & 12 deletions tests/ui/issues/issue-25185.rs

This file was deleted.

19 changes: 0 additions & 19 deletions tests/ui/issues/issue-32655.rs

This file was deleted.

25 changes: 0 additions & 25 deletions tests/ui/issues/issue-32655.stderr

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/15673
//@ run-pass
#![allow(stable_features)]

Expand Down
3 changes: 3 additions & 0 deletions tests/ui/linking/auxiliary/aux-25185-2.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
extern crate aux_25185_1;

pub use aux_25185_1::rust_dbg_extern_identity_u32;
13 changes: 13 additions & 0 deletions tests/ui/linking/rlib-to-dylib-native-deps-inclusion-25185.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// https://github.com/rust-lang/rust/issues/25185
//@ run-pass
//@ aux-build:aux-25185-1.rs
//@ aux-build:aux-25185-2.rs

extern crate aux_25185_2;

fn main() {
let x = unsafe {
aux_25185_2::rust_dbg_extern_identity_u32(1)
};
assert_eq!(x, 1);
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/26093
macro_rules! not_a_place {
($thing:expr) => {
$thing = 42;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0070]: invalid left-hand side of assignment
--> $DIR/issue-26093.rs:3:16
--> $DIR/invalid-assignment-in-macro-26093.rs:4:16
|
LL | $thing = 42;
| ^
Expand All @@ -13,7 +13,7 @@ LL | not_a_place!(99);
= note: this error originates in the macro `not_a_place` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0067]: invalid left-hand side of assignment
--> $DIR/issue-26093.rs:5:16
--> $DIR/invalid-assignment-in-macro-26093.rs:6:16
|
LL | $thing += 42;
| ^^
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

/*
#7519 ICE pattern matching unit in function argument
https://github.com/rust-lang/rust/issues/7519
*/

fn foo(():()) { }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/22434
pub trait Foo {
type A;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0191]: the value of the associated type `A` in `Foo` must be specified
--> $DIR/issue-22434.rs:5:23
--> $DIR/missing-associated-type-in-trait-object-22434.rs:6:23
|
LL | type A;
| ------ `A` defined here
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/48276
// Regression test for issue #48276 - ICE when self type does not match what is
// required by a trait and regions are involved.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0185]: method `from` has a `&self` declaration in the impl, but not in the trait
--> $DIR/issue-48276.rs:11:5
--> $DIR/incorrect-self-type-in-trait-impl-48276.rs:12:5
|
LL | fn from(a: A) -> Self;
| ---------------------- trait method declared without `&self`
Expand All @@ -8,15 +8,15 @@ LL | fn from(self: &'a Self) -> &'b str {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `&self` used in impl

error[E0185]: method `from` has a `&self` declaration in the impl, but not in the trait
--> $DIR/issue-48276.rs:20:5
--> $DIR/incorrect-self-type-in-trait-impl-48276.rs:21:5
|
LL | fn from(&self) -> B {
| ^^^^^^^^^^^^^^^^^^^ `&self` used in impl
|
= note: `from` from trait: `fn(T) -> Self`

error[E0185]: method `from` has a `&self` declaration in the impl, but not in the trait
--> $DIR/issue-48276.rs:27:5
--> $DIR/incorrect-self-type-in-trait-impl-48276.rs:28:5
|
LL | fn from(&self) -> &'static str {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `&self` used in impl
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/32995
fn main() {
{ fn f<X: ::std::marker()::Send>() {} }
//~^ ERROR parenthesized type parameters may only be used with a `Fn` trait
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
--> $DIR/issue-32995-2.rs:2:22
--> $DIR/parenthesized-type-parameters-error-329952.rs:3:22
|
LL | { fn f<X: ::std::marker()::Send>() {} }
| ^^^^^^^^ only `Fn` traits may use parentheses

error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
--> $DIR/issue-32995-2.rs:5:29
--> $DIR/parenthesized-type-parameters-error-329952.rs:6:29
|
LL | { fn f() -> impl ::std::marker()::Send { } }
| ^^^^^^^^ only `Fn` traits may use parentheses

error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
--> $DIR/issue-32995-2.rs:12:13
--> $DIR/parenthesized-type-parameters-error-329952.rs:13:13
|
LL | impl ::std::marker()::Copy for X {}
| ^^^^^^^^ only `Fn` traits may use parentheses
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// https://github.com/rust-lang/rust/issues/18685
//@ run-pass
// Test that the self param space is not used in a conflicting
// manner by unboxed closures within a default method on a trait


trait Tr {
fn foo(&self);

Expand Down
Loading