diff options
| author | Yuki Okushi <jtitor@2k36.org> | 2021-07-12 04:32:05 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-12 04:32:05 +0900 |
| commit | 5fcefb1d61bd6380020a68db2b26e94192db881d (patch) | |
| tree | acff12d179cd4cfae3724599e623b07beed99310 /compiler/rustc_mir/src/transform/coverage/debug.rs | |
| parent | f3d5fde0702dbcfbb97a6a3145eda8a3c5ff4d5f (diff) | |
| parent | 9946ff227d3b1ec7ee5de9ef9b2f81ee4547df34 (diff) | |
| download | rust-5fcefb1d61bd6380020a68db2b26e94192db881d.tar.gz rust-5fcefb1d61bd6380020a68db2b26e94192db881d.zip | |
Rollup merge of #87061 - FabianWolff:issue-87051, r=oli-obk
Do not suggest adding a semicolon after `?` Fixes #87051. I have only modified `report_return_mismatched_types()`, i.e. my changes only affect suggestions to add `;` for return type mismatches, but this never makes sense after `?`, because the function cannot return `()` if `?` is used (it has to return a `Result` or an `Option`), and a semicolon won't help if the expected and actual `Err` types differ, even if the expected one is `()`.
Diffstat (limited to 'compiler/rustc_mir/src/transform/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions
