Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove snapshot calls from "match" operations during select
Motivation: - we want to use leak-check sparingly, first off - these calls were essentially the same as doing the check during subtyping
- Loading branch information
1 parent
1e00e1b
commit 70cf33f
Showing
16 changed files
with
138 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
error[E0277]: the trait bound `for<'a, 'b> SomeStruct: Foo<(&'a isize, &'b isize)>` is not satisfied | ||
--> $DIR/hrtb-conflate-regions.rs:27:22 | ||
error: implementation of `Foo` is not general enough | ||
--> $DIR/hrtb-conflate-regions.rs:27:10 | ||
| | ||
LL | fn want_foo2<T>() | ||
| --------- required by a bound in this | ||
LL | where T : for<'a,'b> Foo<(&'a isize, &'b isize)> | ||
| -------------------------------------- required by this bound in `want_foo2` | ||
LL | / trait Foo<X> { | ||
LL | | fn foo(&self, x: X) { } | ||
LL | | } | ||
| |_- trait `Foo` defined here | ||
... | ||
LL | fn b() { want_foo2::<SomeStruct>(); } | ||
| ^^^^^^^^^^ the trait `for<'a, 'b> Foo<(&'a isize, &'b isize)>` is not implemented for `SomeStruct` | ||
LL | fn b() { want_foo2::<SomeStruct>(); } | ||
| ^^^^^^^^^^^^^^^^^^^^^^^ implementation of `Foo` is not general enough | ||
| | ||
= help: the following implementations were found: | ||
<SomeStruct as Foo<(&'a isize, &'a isize)>> | ||
= note: `SomeStruct` must implement `Foo<(&'0 isize, &'1 isize)>`, for any two lifetimes `'0` and `'1`... | ||
= note: ...but `SomeStruct` actually implements `Foo<(&'2 isize, &'2 isize)>`, for some specific lifetime `'2` | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0277`. |
Oops, something went wrong.