Skip to content

Commit 6c2cfe2

Browse files
committed
Slightly more descriptive name
1 parent 317c2b4 commit 6c2cfe2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

compiler-core/src/exhaustiveness/printer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl<'a> Printer<'a> {
6464
let is_defined_in_current_module = *module == self.current_module;
6565
let is_internal = variable
6666
.type_
67-
.publicity()
67+
.named_type_publicity()
6868
.unwrap_or(Publicity::Public)
6969
.is_internal();
7070

compiler-core/src/type_.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ impl Type {
531531

532532
/// If the type is named, return its publicity.
533533
///
534-
pub fn publicity(&self) -> Option<Publicity> {
534+
pub fn named_type_publicity(&self) -> Option<Publicity> {
535535
match self {
536536
Type::Named { publicity, .. } => Some(*publicity),
537537
Type::Fn { .. } | Type::Var { .. } | Type::Tuple { .. } => None,

0 commit comments

Comments
 (0)