check for Deref conversions

This commit is contained in:
wartman4404 2015-11-03 21:11:40 -06:00
parent 414c0d20f7
commit 764eedd050
5 changed files with 37 additions and 15 deletions

View file

@ -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! {