Skip to content

Commit

Permalink
All ref operators
Browse files Browse the repository at this point in the history
  • Loading branch information
compiler-errors committed Aug 27, 2024
1 parent c7a9908 commit afc58fe
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions compiler/rustc_hir_typeck/src/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,10 +299,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
}

match self.tcx.parent_hir_node(expr.hir_id) {
hir::Node::Expr(hir::Expr {
kind: hir::ExprKind::AddrOf(hir::BorrowKind::Raw, ..),
..
}) => false,
hir::Node::Expr(hir::Expr { kind: hir::ExprKind::AddrOf(..), .. }) => false,
hir::Node::Expr(hir::Expr {
kind: hir::ExprKind::Assign(target, _, _) | hir::ExprKind::Field(target, _),
..
Expand Down

0 comments on commit afc58fe

Please sign in to comment.