Skip to content

Commit 9bb136b

Browse files
All ref operators
1 parent 1ee0400 commit 9bb136b

File tree

1 file changed

+1
-4
lines changed
  • compiler/rustc_hir_typeck/src

1 file changed

+1
-4
lines changed

compiler/rustc_hir_typeck/src/expr.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -299,10 +299,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
299299
}
300300

301301
match self.tcx.parent_hir_node(expr.hir_id) {
302-
hir::Node::Expr(hir::Expr {
303-
kind: hir::ExprKind::AddrOf(hir::BorrowKind::Raw, ..),
304-
..
305-
}) => false,
302+
hir::Node::Expr(hir::Expr { kind: hir::ExprKind::AddrOf(..), .. }) => false,
306303
hir::Node::Expr(hir::Expr {
307304
kind: hir::ExprKind::Assign(target, _, _) | hir::ExprKind::Field(target, _),
308305
..

0 commit comments

Comments
 (0)