check for Deref conversions
This commit is contained in:
parent
414c0d20f7
commit
764eedd050
5 changed files with 37 additions and 15 deletions
|
|
@ -347,6 +347,10 @@ pub fn is_integer_literal(expr: &Expr, value: u64) -> bool
|
|||
false
|
||||
}
|
||||
|
||||
pub fn is_adjusted(cx: &LateContext, e: &Expr) -> bool {
|
||||
cx.tcx.tables.borrow().adjustments.get(&e.id).is_some()
|
||||
}
|
||||
|
||||
/// Produce a nested chain of if-lets and ifs from the patterns:
|
||||
///
|
||||
/// if_let_chain! {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue