Add warn(unreachable_pub) to rustc_borrowck.

This commit is contained in:
Nicholas Nethercote
2024-07-06 21:53:49 +10:00
parent cb3f435699
commit 0685c97843
18 changed files with 74 additions and 68 deletions

View File

@@ -16,7 +16,7 @@ use crate::prefixes::PrefixSet;
use crate::MirBorrowckCtxt;
#[derive(Debug)]
pub enum IllegalMoveOriginKind<'tcx> {
pub(crate) enum IllegalMoveOriginKind<'tcx> {
/// Illegal move due to attempt to move from behind a reference.
BorrowedContent {
/// The place the reference refers to: if erroneous code was trying to