Skip to content

Commit

Permalink
update compile-fail tests: fewer warnings because this is now a HIR lint
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Mar 19, 2018
1 parent 37ff473 commit c05d234
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/test/compile-fail/issue-17994.rs
Expand Up @@ -10,5 +10,4 @@

trait Tr {}
type Huh<T> where T: Tr = isize; //~ ERROR type parameter `T` is unused
//~| WARNING where clauses are not enforced in type aliases
fn main() {}
2 changes: 0 additions & 2 deletions src/test/compile-fail/private-in-public-warn.rs
Expand Up @@ -58,7 +58,6 @@ mod traits {
pub trait PubTr {}

pub type Alias<T: PrivTr> = T; //~ ERROR private trait `traits::PrivTr` in public interface
//~^ WARNING bounds on generic parameters are not enforced in type aliases
//~| WARNING hard error
pub trait Tr1: PrivTr {} //~ ERROR private trait `traits::PrivTr` in public interface
//~^ WARNING hard error
Expand All @@ -85,7 +84,6 @@ mod traits_where {
pub type Alias<T> where T: PrivTr = T;
//~^ ERROR private trait `traits_where::PrivTr` in public interface
//~| WARNING hard error
//~| WARNING where clauses are not enforced in type aliases
pub trait Tr2<T> where T: PrivTr {}
//~^ ERROR private trait `traits_where::PrivTr` in public interface
//~| WARNING hard error
Expand Down

0 comments on commit c05d234

Please sign in to comment.