Skip to content
Merged
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,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/7092
enum Whatever {
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0308]: mismatched types
--> $DIR/issue-7092.rs:6:9
--> $DIR/method-call-nonsensical-pattern-binding-7092.rs:7:9
|
LL | match x {
| - this expression has type `Whatever`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/54094
//@ check-pass
trait Zoo {
type X;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/54462
//@ run-pass
//
//@ compile-flags: -Ccodegen-units=1 -O
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
warning: method `dummy` is never used
--> $DIR/mut-trait-coercion-8248.rs:5:8
--> $DIR/coerce-mut-trait-object-8248.rs:5:8
|
LL | trait A {
| - method in this trait
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/54477
//@ run-pass
// rust-lang/rust#54477: runtime bug in the VecDeque library that was
// exposed by this test case, derived from test suite of crates.io
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// https://github.com/rust-lang/rust/issues/7178
//@ run-pass
//@ aux-build:aux-7178.rs

extern crate aux_7178 as cross_crate_self;

pub fn main() {
let _ = cross_crate_self::Foo::new(&1);
}
10 changes: 10 additions & 0 deletions tests/ui/cross-crate/tuple-struct-cross-crate-7899.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// https://github.com/rust-lang/rust/issues/7899
//@ run-pass
#![allow(unused_variables)]
//@ aux-build:aux-7899.rs

extern crate aux_7899 as testcrate;

fn main() {
let f = testcrate::V2(1.0f32, 2.0f32);
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/54696
//@ run-pass

#![allow(unpredictable_function_pointer_comparisons)]
Expand Down
8 changes: 0 additions & 8 deletions tests/ui/issues/issue-54410.rs

This file was deleted.

12 changes: 0 additions & 12 deletions tests/ui/issues/issue-54410.stderr

This file was deleted.

9 changes: 0 additions & 9 deletions tests/ui/issues/issue-7178.rs

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/53419
//@ check-pass

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

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0308]: mismatched types
--> $DIR/mismatched-types-in-match-pattern-7867.rs:10:9
--> $DIR/mismatched-types-in-match-7867.rs:10:9
|
LL | enum A { B, C }
| - unit variant defined here
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
warning: trait `Foo` is never used
--> $DIR/trait-method-self-param-error-7575.rs:4:7
--> $DIR/trait-method-resolution-7575.rs:4:7
|
LL | trait Foo {
| ^^^
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/55376
//@ run-pass
// Tests that paths in `pub(...)` don't fail HIR verification.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/53728
//@ run-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/7044
static X: isize = 0;
struct X; //~ ERROR the name `X` is defined multiple times

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0428]: the name `X` is defined multiple times
--> $DIR/issue-7044.rs:2:1
--> $DIR/unit-like-struct-masks-constant-7044.rs:3:1
|
LL | static X: isize = 0;
| -------------------- previous definition of the value `X` here
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/55380
//@ run-pass
#![feature(specialization)]
//~^ WARN the feature `specialization` is incomplete
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
--> $DIR/issue-55380.rs:2:12
--> $DIR/trait-specialization-default-methods-55380.rs:3:12
|
LL | #![feature(specialization)]
| ^^^^^^^^^^^^^^
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/7364
use std::cell::RefCell;

// Regression test for issue 7364
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0277]: `RefCell<isize>` cannot be shared between threads safely
--> $DIR/issue-7364.rs:4:15
--> $DIR/global-variable-promotion-error-7364.rs:5:15
|
LL | static boxed: Box<RefCell<isize>> = Box::new(RefCell::new(0));
| ^^^^^^^^^^^^^^^^^^^ `RefCell<isize>` cannot be shared between threads safely
Expand All @@ -12,7 +12,7 @@ note: required because it appears within the type `Box<RefCell<isize>>`
= note: shared static variables must have a type that implements `Sync`

error[E0015]: cannot call non-const associated function `Box::<RefCell<isize>>::new` in statics
--> $DIR/issue-7364.rs:4:37
--> $DIR/global-variable-promotion-error-7364.rs:5:37
|
LL | static boxed: Box<RefCell<isize>> = Box::new(RefCell::new(0));
| ^^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/53568
// Regression test for an NLL-related ICE (#53568) -- we failed to
// resolve inference variables in "custom type-ops".
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/7344
//@ run-pass
#![allow(unused_must_use)]

Expand Down
Loading