about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-09-14 19:56:47 +0000
committerbors <bors@rust-lang.org>2020-09-14 19:56:47 +0000
commitf82e84c8943e70300ad1f4de46d8d7bd889c6bde (patch)
tree5b377fca586ae2fd583457e3a7ffb3c3cb382072 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
parent231444d989db23ab53001e29af53fa844e0b08a1 (diff)
parentd719b485434eac557e65bf55cca79e63f7b83d5b (diff)
downloadrust-f82e84c8943e70300ad1f4de46d8d7bd889c6bde.tar.gz
rust-f82e84c8943e70300ad1f4de46d8d7bd889c6bde.zip
Auto merge of #5998 - deg4uss3r:master, r=yaahc
Add map_err_ignore lint

In a large code base a lot of times errors are ignored by using something like:

```rust
foo.map_err(|_| Some::Enum)?;
```

This drops the original error in favor of a enum that will not have the original error's context. This lint helps catch throwing away the original error in favor of an enum without its context.

---

*Please keep the line below*
changelog: Added map_err_ignore lint
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs')
0 files changed, 0 insertions, 0 deletions