Add BorrowKind::Ref
This commit is contained in:
parent
6eeac46b91
commit
341e266508
26 changed files with 53 additions and 53 deletions
|
@ -186,7 +186,7 @@ fn is_trivial_regex(s: ®ex_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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue