diff options
| author | Philipp Gesang <phg@phi-gamma.net> | 2020-01-21 21:49:23 +0100 |
|---|---|---|
| committer | Philipp Gesang <phg@phi-gamma.net> | 2020-01-21 18:49:18 +0100 |
| commit | 5dee7dddf24a022184a743b714b5062e83516a87 (patch) | |
| tree | 7377458b2ecf27c42df7a4ba210ca37b839bea8b /src/test/codegen/src-hash-algorithm | |
| parent | ce361fb24f0896bf7d983549117cbe1f70f32dcf (diff) | |
| download | rust-5dee7dddf24a022184a743b714b5062e83516a87.tar.gz rust-5dee7dddf24a022184a743b714b5062e83516a87.zip | |
Handle methods in try diagnostic
The diagnostic for diagnostic for methods and trait provided
methods would only show the empty string:
error[E0277]: the `?` operator can only be used in that returns `Result` or `Option` (or another type that implements `std::ops::Try`)
Handle the missing cases so it reads ``a method'' / ``an async
method'' / ``a trait method'' respectively.
Signed-off-by: Philipp Gesang <phg@phi-gamma.net>
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions
