y21
|
0671d78283
|
check for try blocks in LintPass methods
|
2024-02-27 23:49:07 +01:00 |
|
Oli Scherer
|
3d88fae050
|
Update ui test crate
|
2023-08-11 14:02:28 +00:00 |
|
Catherine Flores
|
4d49065a6c
|
Suppress question_mark if question_mark_used is not allowed
|
2023-08-02 14:13:16 -05:00 |
|
y21
|
70610c0018
|
lint in nested bodies if try is in outer body
|
2023-06-28 12:41:18 +02:00 |
|
y21
|
716305d4b6
|
[question_mark ]: don't lint inside of try block
|
2023-06-21 16:39:46 +02:00 |
|
Oli Scherer
|
def1705a27
|
Update to a compiletest-rs version that requires //@ for commands
|
2023-04-20 14:44:03 +00:00 |
|
Elliot Bobrow
|
98250af4a3
|
question_mark don't lint on if let Err with else
|
2022-10-25 21:16:28 -07:00 |
|
kraktus
|
3ca6b9d031
|
Silence [question_mark ] in const context
|
2022-09-16 22:02:09 +02:00 |
|
Lukas Lueg
|
e87a5a1cc5
|
Dont lint on match pattern-binding
Fixes #9347
Technically it is possible to have a blank match-pattern that does
nothing, and we fail to lint. But its easier to be safe than sorry here.
|
2022-08-18 19:30:56 +02:00 |
|
bors
|
d0b8f7508c
|
Simplify if let statements
fixes: #8288
---
changelog: Allowing [`qustion_mark`] lint to check `if let` expressions that immediatly return unwrapped value
|
2022-07-08 16:12:00 +00:00 |
|
dswij
|
01ca66cbd7
|
Fix FP on question_mark if returned object is not local
|
2021-12-06 17:51:00 +08:00 |
|
dswij
|
2fd168285a
|
Update question_mark test to behave better
|
2021-10-26 21:21:46 +08:00 |
|
dswij
|
d4196d0293
|
Add #7859 FP test case for question_mark
|
2021-10-26 21:21:46 +08:00 |
|
dswij
|
3fc99b6a33
|
Update test for question_mark to cover Result
|
2021-10-19 18:50:49 +08:00 |
|
Hirochika Matsumoto
|
c7445d7f2c
|
Pluralize lint name
|
2020-11-18 01:28:37 +09:00 |
|
Hirochika Matsumoto
|
30632fb8e6
|
Allow this lint on lint tests
|
2020-11-18 01:28:37 +09:00 |
|
Shotaro Yamada
|
f58bb5b234
|
question_mark: don't add as_ref() for a call expression
|
2020-04-17 13:09:02 +09:00 |
|
Shotaro Yamada
|
246709f89e
|
run-rustfix
|
2020-03-04 17:37:01 +09:00 |
|
Shotaro Yamada
|
45f61ead2c
|
Lint if let Some in question_mark lint
|
2020-03-04 17:24:12 +09:00 |
|
Shotaro Yamada
|
555f5a49a2
|
Test fixes
|
2019-10-03 08:10:29 +09:00 |
|
Philipp Hansch
|
38d4ac7cea
|
Remove all copyright license headers
Discussion previously happened in https://github.com/rust-lang/rust/pull/43498
|
2019-01-08 21:46:39 +01:00 |
|
Peter Fürstenau
|
8be7050b74
|
Fix formatting
|
2018-12-28 20:52:46 +01:00 |
|
Peter Fürstenau
|
18584698ee
|
Add failing test
|
2018-12-19 20:50:18 +01:00 |
|
Peter Fürstenau
|
ee0856cbeb
|
Recomend .as_ref()? in certain situations
|
2018-12-18 13:57:38 +01:00 |
|
Shotaro Yamada
|
eba44e1c67
|
question_mark: Suggest Some(opt?) for if-else
|
2018-12-12 18:13:21 +09:00 |
|
Matthias Krüger
|
435299be30
|
rustfmt tests
|
2018-12-09 23:26:16 +01:00 |
|
Manish Goregaokar
|
e9c025ea70
|
Add license header to Rust files
|
2018-10-06 09:43:08 -07:00 |
|
Guillem Nieto
|
74ae9b15b5
|
Add question mark operator
|
2018-01-31 00:10:35 +01:00 |
|