about summary refs log tree commit diff
path: root/src/test/debuginfo/enum-thinlto.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-09-10 16:22:20 +0000
committerbors <bors@rust-lang.org>2020-09-10 16:22:20 +0000
commit0ab75c37b6743d1d8a5ca3b42d8454c52c6eeb0f (patch)
treefdbbd56a87ff3fd54744ea5353233c3fc17ba5d9 /src/test/debuginfo/enum-thinlto.rs
parentdf6d7bfbefe4e09241fcee7060645bd01866c9d8 (diff)
parentf90b1fc0636cb50bd225caeb20d6a1309d7b966f (diff)
downloadrust-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