diff options
| author | bors <bors@rust-lang.org> | 2020-08-26 23:38:34 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-08-26 23:38:34 +0000 |
| commit | dead45fd5b2fb24d2259e3955a50c51de277a5ac (patch) | |
| tree | b4fc470d1761d4c0bed9023a0642eaf7981dda98 /src/test/codegen/src-hash-algorithm | |
| parent | e45c59e922c4450b8ab136eac38a37000fca9254 (diff) | |
| parent | 91024f1fdee2d2c2febfc7c76127d68d2b6e629e (diff) | |
| download | rust-dead45fd5b2fb24d2259e3955a50c51de277a5ac.tar.gz rust-dead45fd5b2fb24d2259e3955a50c51de277a5ac.zip | |
Auto merge of #5957 - xvschneider:AddUnwrapInsideResultLint, r=yaahc
Adding new lint to prevent usage of 'unwrap' inside functions that re… ### Change Adding a new lint that will emit a warning when using "unwrap" or "expect" inside a function that returns result. ### Motivation These functions promote recoverable errors to non-recoverable errors which may be undesirable in code bases which wish to avoid panics. ### Test plan Running: `TESTNAME=unwrap_in_result cargo uitest `--- changelog: none
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions
