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,6 +1,7 @@
//! Regression test for <https://github.com/rust-lang/rust/issues/17746>.
//@ check-pass
#![allow(dead_code)]
// Regression test for #17746

fn main() {}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Regression test for <https://github.com/rust-lang/rust/issues/17322>.
//@ run-pass

use std::io::{self, Write};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Auxiliary crate for <https://github.com/rust-lang/rust/issues/16643>.
#![crate_type = "lib"]

pub struct TreeBuilder<H> { pub h: H }
Expand Down
12 changes: 12 additions & 0 deletions tests/ui/cross-crate/for-loop-in-match-on-self.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//! Regression test for <https://github.com/rust-lang/rust/issues/16643>.
//! Tests that method which matches on self with for loop doesn't ICE cross-crate.
//@ run-pass
//@ aux-build:for-loop-in-match-on-self.rs


extern crate for_loop_in_match_on_self as i;

pub fn main() {
i::TreeBuilder { h: 3 }.process_token();
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//! Regression test for <https://github.com/rust-lang/rust/issues/16530>.
//! Tests that unit struct produce same constant hash instead of ICE'ing.
//@ run-pass
#![allow(deprecated)]

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//! Regression test for <https://github.com/rust-lang/rust/issues/17771>.
//! Tests that borrowing mut dyn trait field in a method doesn't cause ICE.
//@ run-pass
#![allow(dead_code)]

Expand Down
9 changes: 0 additions & 9 deletions tests/ui/issues/issue-16643.rs

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Regression test for <https://github.com/rust-lang/rust/issues/16278>.
//@ run-pass
// ignore-tidy-cr

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Regression test for <https://github.com/rust-lang/rust/issues/17033>.
fn f<'r>(p: &'r mut fn(p: &mut ())) {
(*p)(()) //~ ERROR mismatched types
//~| NOTE expected `&mut ()`, found `()`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0308]: mismatched types
--> $DIR/issue-17033.rs:2:10
--> $DIR/deref-fn-ptr-arg-type-mismatch.rs:4:10
|
LL | (*p)(())
| ---- ^^ expected `&mut ()`, found `()`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Regression test for <https://github.com/rust-lang/rust/issues/16596>.
//@ check-pass
#![allow(dead_code)]

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Regression test for <https://github.com/rust-lang/rust/issues/16562>.
trait MatrixShape {}

struct Col<D, C> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0207]: the type parameter `T` is not constrained by the impl trait, self type, or predicates
--> $DIR/issue-16562.rs:10:6
--> $DIR/unconstrained-impl-extra-parameter.rs:12:6
|
LL | impl<T, M: MatrixShape> Collection for Col<M, usize> {
| ^--
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
//! Regression test for <https://github.com/rust-lang/rust/issues/16739>.
//! Test that unboxing shim for calling rust-call ABI methods through a
//! trait box works and does not cause an ICE.

//@ run-pass
#![feature(unboxed_closures, fn_traits)]

// Test that unboxing shim for calling rust-call ABI methods through a
// trait box works and does not cause an ICE.

struct Foo { foo: u32 }

impl FnMut<()> for Foo {
Expand Down
Loading