forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
7 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -786,7 +786,7 @@ impl<'cx, 'gcx, 'tcx> SelectionContext<'cx, 'gcx, 'tcx> { | |
// This suffices to allow chains like `FnMut` implemented in | ||
// terms of `Fn` etc, but we could probably make this more | ||
// precise still. | ||
let unbound_input_types = stack.fresh_trait_ref.input_types().any(|ty| ty.is_fresh()); | ||
let unbound_input_types = stack.fresh_trait_ref.skip_binder().input_types().any(|ty| ty.is_fresh()); | ||
This comment has been minimized.
Sorry, something went wrong.
nikomatsakis
|
||
// this check was an imperfect workaround for a bug n the old | ||
// intercrate mode, it should be removed when that goes away. | ||
if unbound_input_types && | ||
|
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 use is OK but convoluted. If you look a few lines below, you will see that this
substs
result is actually placed back inside a binder. It would be better to write this usingmap_bound
, something like: