diff options
| author | Yuki Okushi <jtitor@2k36.org> | 2022-10-18 21:21:30 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-18 21:21:30 +0900 |
| commit | 472a8742a69962ba3c8cbe6cf1277dfb9936f643 (patch) | |
| tree | 2e4c27bf481249edf61ec2e6fc5378b35e22207e /compiler/rustc_errors/src/snippet.rs | |
| parent | 56e412382ebea38100c4ee97b174bf3cce2dd60b (diff) | |
| parent | 684df4d24ec605a07f1a5789c1d0027d4887103c (diff) | |
| download | rust-472a8742a69962ba3c8cbe6cf1277dfb9936f643.tar.gz rust-472a8742a69962ba3c8cbe6cf1277dfb9936f643.zip | |
Rollup merge of #103142 - fmease:fix-103052, r=oli-obk
Make diagnostic for unsatisfied `Termination` bounds more precise Don't blindly emit a diagnostic claiming that “*`main` has an invalid return type*” if we encounter a type that should but doesn't implement `std::process::Termination` and isn't actually the return type of the program entry `main`. Fixes #103052. ``@rustbot`` label A-diagnostics T-compiler T-libs r? diagnostics
Diffstat (limited to 'compiler/rustc_errors/src/snippet.rs')
0 files changed, 0 insertions, 0 deletions
