1
Fork 0

Add BorrowKind::Ref

This commit is contained in:
Manish Goregaokar 2019-11-27 14:30:10 -08:00
parent 6eeac46b91
commit 341e266508
26 changed files with 53 additions and 53 deletions

View file

@ -186,7 +186,7 @@ fn is_trivial_regex(s: &regex_syntax::hir::Hir) -> Option<&'static str> {
fn check_set<'a, 'tcx>(cx: &LateContext<'a, 'tcx>, expr: &'tcx Expr, utf8: bool) {
if_chain! {
if let ExprKind::AddrOf(_, _, ref expr) = expr.kind;
if let ExprKind::AddrOf(BorrowKind::Ref, _, ref expr) = expr.kind;
if let ExprKind::Array(ref exprs) = expr.kind;
then {
for expr in exprs {