about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
diff options
context:
space:
mode:
authorTyler Mandry <tmandry@gmail.com>2020-01-22 16:02:17 -0800
committerGitHub <noreply@github.com>2020-01-22 16:02:17 -0800
commit1077adae129f140a98901f5c7fecf15f75bd8a4c (patch)
treee39c72e6a105c238f8377c2784c16d9484ac0c74 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
parent97ac2591480cd66e8b40b34420dd275235a80bd4 (diff)
parentdb3b40c2a1fe6129a7bbc12df6260b7197731153 (diff)
downloadrust-1077adae129f140a98901f5c7fecf15f75bd8a4c.tar.gz
rust-1077adae129f140a98901f5c7fecf15f75bd8a4c.zip
Rollup merge of #68425 - phi-gamma:try-method, r=varkor
Fix try-op diagnostic in E0277 for methods

For methods the try-op diagnostic displays the empty string where
it has more descriptive strings like “a function” otherwise:

    error[E0277]: the `?` operator can only be used in  that returns `Result` or `Option` (or another type that implements `std::ops::Try`)
                                                      ^^
       | |             ^^ cannot use the `?` operator in  that returns `()`
                                                        ^^

I’m seeing this on nightly (rustc 1.42.0-nightly (b5a3341f1
2020-01-20)) and [on the playpen](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=0e7ce7792c2aceb8056941710d539124).

The changeset add strings for impl methods and trait provided
methods and test cases for the option type.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions