diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2019-08-25 11:27:04 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2019-08-31 00:14:23 -0700 |
| commit | 7604eed2a9bf5cf67f9bcf742f030148afb8fe2a (patch) | |
| tree | 3fbf7e4ff2c98a137a5469d52ba6cc5556648cfc | |
| parent | 5384d5584f6fd596df3a86e2cd4e0281b27d10db (diff) | |
| download | rust-7604eed2a9bf5cf67f9bcf742f030148afb8fe2a.tar.gz rust-7604eed2a9bf5cf67f9bcf742f030148afb8fe2a.zip | |
review comments: reword comment
| -rw-r--r-- | src/librustc/traits/error_reporting.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/librustc/traits/error_reporting.rs b/src/librustc/traits/error_reporting.rs index 07083f155d6..ff3626ffb85 100644 --- a/src/librustc/traits/error_reporting.rs +++ b/src/librustc/traits/error_reporting.rs @@ -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(), |
