about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/path.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-06-03 15:47:46 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2024-06-06 08:26:54 +1000
commit95b4c07ef897974a8978b4a43d0d98103a824f58 (patch)
tree24eb3fdb92c908d68ec14619e958be18b7dc9e6c /compiler/rustc_parse/src/parser/path.rs
parent7ebd2bdbf6d798e6e711a0100981b0ff029abf5f (diff)
downloadrust-95b4c07ef897974a8978b4a43d0d98103a824f58.tar.gz
rust-95b4c07ef897974a8978b4a43d0d98103a824f58.zip
Reduce `pub` exposure.
Diffstat (limited to 'compiler/rustc_parse/src/parser/path.rs')
-rw-r--r--compiler/rustc_parse/src/parser/path.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/path.rs b/compiler/rustc_parse/src/parser/path.rs
index fcedc1a4af3..9beecd9849f 100644
--- a/compiler/rustc_parse/src/parser/path.rs
+++ b/compiler/rustc_parse/src/parser/path.rs
@@ -20,7 +20,7 @@ use tracing::debug;
 
 /// Specifies how to parse a path.
 #[derive(Copy, Clone, PartialEq)]
-pub enum PathStyle {
+pub(super) enum PathStyle {
     /// In some contexts, notably in expressions, paths with generic arguments are ambiguous
     /// with something else. For example, in expressions `segment < ....` can be interpreted
     /// as a comparison and `segment ( ....` can be interpreted as a function call.