Guest User

Untitled

a guest
Apr 24th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. if_chain! {
  2. if let Expr_::ExprField(ref object, ref field_name) = stmt.node;
  3. if field_name.node.as_str() == "bar"
  4. if let Expr_::ExprAddrOf(MutImmutable, ref inner) = object.node;
  5. if let Expr_::ExprPath(ref path) = inner.node;
  6. if match_qpath(path, &["a"]);
  7. then {
  8. // report your lint here
  9. }
  10. }
Add Comment
Please, Sign In to add comment