diff options
| author | bors <bors@rust-lang.org> | 2020-09-10 16:22:20 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-09-10 16:22:20 +0000 |
| commit | 0ab75c37b6743d1d8a5ca3b42d8454c52c6eeb0f (patch) | |
| tree | fdbbd56a87ff3fd54744ea5353233c3fc17ba5d9 /src/test/debuginfo/enum-thinlto.rs | |
| parent | df6d7bfbefe4e09241fcee7060645bd01866c9d8 (diff) | |
| parent | f90b1fc0636cb50bd225caeb20d6a1309d7b966f (diff) | |
| download | rust-0ab75c37b6743d1d8a5ca3b42d8454c52c6eeb0f.tar.gz rust-0ab75c37b6743d1d8a5ca3b42d8454c52c6eeb0f.zip | |
Auto merge of #5977 - xvschneider:AddLintPanicInResult, r=matthiaskrgr
Add lint panic in result ### Change Adding a new "restriction" lint that will emit a warning when using "panic", "unimplemented" or "unreachable" in a function of type option/result. ### Motivation Some codebases must avoid crashes at all costs, and hence functions of type option/result must return an error instead of crashing. ### Test plan Running: TESTNAME=panic_in_result cargo uitest --- changelog: none
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions
