review comments: reword comment
This commit is contained in:
parent
5384d5584f
commit
7604eed2a9
1 changed files with 4 additions and 4 deletions
|
|
@ -967,10 +967,10 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
|
|||
let self_ty = trait_ref.self_ty();
|
||||
match self_ty.sty {
|
||||
ty::FnDef(def_id, _) => {
|
||||
// We tried to apply the bound to an `fn`. Check wether calling it
|
||||
// would evaluate to a type that *would* satisfy the trait binding.
|
||||
// If it would, suggest calling it: `bar(foo)` -> `bar(foo)`. This
|
||||
// case is *very* to hit if `foo` is `async`.
|
||||
// We tried to apply the bound to an `fn`. Check whether calling it would evaluate
|
||||
// to a type that *would* satisfy the trait binding. If it would, suggest calling
|
||||
// it: `bar(foo)` -> `bar(foo)`. This case is *very* likely to be hit if `foo` is
|
||||
// `async`.
|
||||
let output_ty = self_ty.fn_sig(self.tcx).output();
|
||||
let new_trait_ref = ty::TraitRef {
|
||||
def_id: trait_ref.def_id(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue