about summary refs log tree commit diff
path: root/compiler/rustc_borrowck/src/def_use.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-07-06 21:53:49 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2024-08-16 08:46:57 +1000
commit0685c978434b21c18ae2575cbbd72b6234b7701e (patch)
treedf09f198857dc2678b9f5ecfbcb37ff146bad52e /compiler/rustc_borrowck/src/def_use.rs
parentcb3f43569933111c99222e1d8d87d529117f0bd6 (diff)
downloadrust-0685c978434b21c18ae2575cbbd72b6234b7701e.tar.gz
rust-0685c978434b21c18ae2575cbbd72b6234b7701e.zip
Add `warn(unreachable_pub)` to `rustc_borrowck`.
Diffstat (limited to 'compiler/rustc_borrowck/src/def_use.rs')
-rw-r--r--compiler/rustc_borrowck/src/def_use.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_borrowck/src/def_use.rs b/compiler/rustc_borrowck/src/def_use.rs
index 1f0b0981c8f..7eb9e689afe 100644
--- a/compiler/rustc_borrowck/src/def_use.rs
+++ b/compiler/rustc_borrowck/src/def_use.rs
@@ -4,13 +4,13 @@ use rustc_middle::mir::visit::{
 };
 
 #[derive(Eq, PartialEq, Clone)]
-pub enum DefUse {
+pub(crate) enum DefUse {
     Def,
     Use,
     Drop,
 }
 
-pub fn categorize(context: PlaceContext) -> Option<DefUse> {
+pub(crate) fn categorize(context: PlaceContext) -> Option<DefUse> {
     match context {
         ///////////////////////////////////////////////////////////////////////////
         // DEFS