rust/clippy_lints/src/utils
bors 3d7e3fdffd Auto merge of #5857 - tmiasko:try-err-poll, r=matthiaskrgr
try_err: Consider Try impl for Poll when generating suggestions

There are two different implementation of `Try` trait for `Poll` type:
`Poll<Result<T, E>>` and `Poll<Option<Result<T, E>>>`. Take them into
account when generating suggestions.

For example, for `Err(e)?` suggest either `return Poll::Ready(Err(e))` or
`return Poll::Ready(Some(Err(e)))` as appropriate.

Fixes #5855

changelog: try_err: Consider Try impl for Poll when generating suggestions
2020-08-05 08:43:37 +00:00
..
ast_utils.rs chmod 644 clippy_lints/src/utils/ast_utils.rs 2020-07-27 22:27:54 +09:00
attrs.rs Merge commit '2ca58e7dda' into clippyup 2020-07-14 14:59:59 +02:00
author.rs Use 'tcx for references to AccessLevels wherever possible. 2020-07-03 00:04:48 +03:00
camel_case.rs new lints around #[must_use] fns 2019-10-14 12:09:04 +02:00
comparisons.rs Rustup to rust-lang/rust#67886 2020-01-07 01:46:33 +09:00
conf.rs rustc_ast: (Nested)MetaItem::check_name -> has_name 2020-08-04 00:34:11 +03:00
constants.rs Remove all copyright license headers 2019-01-08 21:46:39 +01:00
diagnostics.rs Use 'tcx for references to AccessLevels wherever possible. 2020-07-03 00:04:48 +03:00
higher.rs Rename TypeckTables to TypeckResults. 2020-07-17 08:47:04 +00:00
hir_utils.rs Rename TypeckTables to TypeckResults. 2020-07-17 08:47:04 +00:00
inspector.rs Rename TypeckTables to TypeckResults. 2020-07-17 08:47:04 +00:00
internal_lints.rs Rename TypeckTables to TypeckResults. 2020-07-17 08:47:04 +00:00
mod.rs Rollup merge of #5856 - phansch:remove-symbol-reexport, r=flip1995 2020-08-04 12:06:43 +02:00
numeric_literal.rs Merge commit 'da5a6fb1b6' into clippyup 2020-07-26 21:07:07 +02:00
paths.rs try_err: Consider Try impl for Poll when generating suggestions 2020-08-03 20:48:18 +02:00
ptr.rs Use 'tcx for references to AccessLevels wherever possible. 2020-07-03 00:04:48 +03:00
sugg.rs Merge commit '2ca58e7dda' into clippyup 2020-07-14 14:59:59 +02:00
sym.rs Rustup to https://github.com/rust-lang/rust/pull/67853 2020-01-04 11:30:03 +01:00
usage.rs Rename TypeckTables to TypeckResults. 2020-07-17 08:47:04 +00:00