about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-08-26 23:38:34 +0000
committerbors <bors@rust-lang.org>2020-08-26 23:38:34 +0000
commitdead45fd5b2fb24d2259e3955a50c51de277a5ac (patch)
treeb4fc470d1761d4c0bed9023a0642eaf7981dda98 /src/test/codegen/src-hash-algorithm
parente45c59e922c4450b8ab136eac38a37000fca9254 (diff)
parent91024f1fdee2d2c2febfc7c76127d68d2b6e629e (diff)
downloadrust-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