Skip to content

Commit 14f4d3e

Browse files
committed
borrow check of FRTs (have no fields & can't be dereferenced)
1 parent baf2b38 commit 14f4d3e

File tree

1 file changed

+2
-0
lines changed
  • compiler/rustc_borrowck/src

1 file changed

+2
-0
lines changed

compiler/rustc_borrowck/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1893,6 +1893,7 @@ impl<'a, 'tcx> MirBorrowckCtxt<'a, '_, 'tcx> {
18931893
}
18941894
}
18951895
ty::Bool
1896+
| ty::Field(..)
18961897
| ty::Char
18971898
| ty::Int(_)
18981899
| ty::Uint(_)
@@ -1937,6 +1938,7 @@ impl<'a, 'tcx> MirBorrowckCtxt<'a, '_, 'tcx> {
19371938
| ty::Coroutine(_, _)
19381939
| ty::Tuple(_) => (),
19391940
ty::Bool
1941+
| ty::Field(..)
19401942
| ty::Char
19411943
| ty::Int(_)
19421944
| ty::Uint(_)

0 commit comments

Comments
 (0)