Skip to content

Commit

Permalink
Update existing tests for trivial bounds changes
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewjasper committed May 15, 2018
1 parent 9b0dfe1 commit dc8ce4c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 3 additions & 4 deletions src/test/compile-fail/cross-fn-cache-hole.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@
// Check that when there are vacuous predicates in the environment
// (which make a fn uncallable) we don't erroneously cache those and
// then consider them satisfied elsewhere. The current technique for
// doing this is just to filter "global" predicates out of the
// environment, which means that we wind up with an error in the
// function `vacuous`, because even though `i32: Bar<u32>` is implied
// by its where clause, that where clause never holds.
// doing this is to not use global caches when there is a chance that
// the environment contains such a predicate.
// We still error for `i32: Bar<u32>` pending #48214

trait Foo<X,Y>: Bar<X> {
}
Expand Down
2 changes: 1 addition & 1 deletion src/test/compile-fail/issue-42796.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ impl<T, Smoke> Mirror<Smoke> for T {
}

pub fn poison<S>(victim: String) where <String as Mirror<S>>::Image: Copy {
loop { drop(victim); } //~ ERROR use of moved value
loop { drop(victim); }
}

fn main() {
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/issue-48728.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ LL | #[derive(Clone)] //~ ERROR conflicting implementations of trait `std::clone
...
LL | impl<T: Clone + ?Sized> Clone for Node<[T]> {
| ------------------------------------------- first implementation here
|
= note: upstream crates may add new impl of trait `std::clone::Clone` for type `[_]` in future versions

error: aborting due to previous error

Expand Down

0 comments on commit dc8ce4c

Please sign in to comment.