Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
update compile-fail tests; remove now redundant issue-39122.rs
It is subsumed by ui/param-bounds-ignored.rs.
  • Loading branch information
RalfJung committed Feb 27, 2018
1 parent 86821f7 commit 30b5be0
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 19 deletions.
3 changes: 1 addition & 2 deletions src/test/compile-fail/dst-bad-assign-3.rs
Expand Up @@ -12,8 +12,7 @@

#![feature(unsized_tuple_coercion)]

type Fat<T: ?Sized> = (isize, &'static str, T);
//~^ WARNING bounds are ignored
type Fat<T> = (isize, &'static str, T);

#[derive(PartialEq,Eq)]
struct Bar;
Expand Down
2 changes: 1 addition & 1 deletion src/test/compile-fail/issue-17994.rs
Expand Up @@ -10,5 +10,5 @@

trait Tr {}
type Huh<T> where T: Tr = isize; //~ ERROR type parameter `T` is unused
//~| WARNING E0122
//~| WARNING where clauses are ignored in type aliases
fn main() {}
2 changes: 2 additions & 0 deletions src/test/compile-fail/issue-23046.rs
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#![allow(ignored_generic_bounds)]

pub enum Expr<'var, VAR> {
Let(Box<Expr<'var, VAR>>,
Box<for<'v: 'var> Fn(Expr<'v, VAR>) -> Expr<'v, VAR> + 'var>)
Expand Down
13 changes: 0 additions & 13 deletions src/test/compile-fail/issue-39122.rs

This file was deleted.

4 changes: 2 additions & 2 deletions src/test/compile-fail/private-in-public-warn.rs
Expand Up @@ -58,7 +58,7 @@ mod traits {
pub trait PubTr {}

pub type Alias<T: PrivTr> = T; //~ ERROR private trait `traits::PrivTr` in public interface
//~^ WARN bounds are ignored in type aliases
//~^ WARNING bounds on generic type parameters are ignored
//~| WARNING hard error
pub trait Tr1: PrivTr {} //~ ERROR private trait `traits::PrivTr` in public interface
//~^ WARNING hard error
Expand All @@ -85,7 +85,7 @@ mod traits_where {
pub type Alias<T> where T: PrivTr = T;
//~^ ERROR private trait `traits_where::PrivTr` in public interface
//~| WARNING hard error
//~| WARNING E0122
//~| WARNING where clauses are ignored in type aliases
pub trait Tr2<T> where T: PrivTr {}
//~^ ERROR private trait `traits_where::PrivTr` in public interface
//~| WARNING hard error
Expand Down
2 changes: 1 addition & 1 deletion src/test/compile-fail/rfc1623.rs
Expand Up @@ -22,7 +22,7 @@ static NON_ELIDABLE_FN: &fn(&u8, &u8) -> &u8 =
struct SomeStruct<'x, 'y, 'z: 'x> {
foo: &'x Foo<'z>,
bar: &'x Bar<'z>,
f: &'y for<'a, 'b: 'a> Fn(&'a Foo<'b>) -> &'a Bar<'b>,
f: &'y for<'a, 'b> Fn(&'a Foo<'b>) -> &'a Bar<'b>,
}

fn id<T>(t: T) -> T {
Expand Down

0 comments on commit 30b5be0

Please sign in to comment.