Skip to content

Commit 225f0b9

Browse files
committed
Make the remaining "private" fields actually private
1 parent 92d7277 commit 225f0b9

File tree

1 file changed

+2
-2
lines changed
  • compiler/stable_mir/src

1 file changed

+2
-2
lines changed

compiler/stable_mir/src/ty.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use std::fmt::{self, Debug, Display, Formatter};
1212
use std::ops::Range;
1313

1414
#[derive(Copy, Clone, Eq, PartialEq, Hash)]
15-
pub struct Ty(pub usize);
15+
pub struct Ty(usize);
1616

1717
impl Debug for Ty {
1818
fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
@@ -138,7 +138,7 @@ impl Const {
138138
}
139139

140140
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
141-
pub struct ConstId(pub usize);
141+
pub struct ConstId(usize);
142142

143143
type Ident = Opaque;
144144

0 commit comments

Comments
 (0)