diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2024-01-19 16:37:50 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2024-01-19 16:37:50 +0000 |
| commit | 225f0b9fef38bd7b841bff9911e0ced586dce812 (patch) | |
| tree | c55e1e89adbc1365ebc6acd9535e48a5897f33e9 | |
| parent | 92d727796be7c882d2efbc06e08bbf4743cf29dc (diff) | |
Make the remaining "private" fields actually private
| -rw-r--r-- | compiler/stable_mir/src/ty.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/stable_mir/src/ty.rs b/compiler/stable_mir/src/ty.rs index eba2ac57012..b0a08cd9b79 100644 --- a/compiler/stable_mir/src/ty.rs +++ b/compiler/stable_mir/src/ty.rs @@ -12,7 +12,7 @@ use std::fmt::{self, Debug, Display, Formatter}; use std::ops::Range; #[derive(Copy, Clone, Eq, PartialEq, Hash)] -pub struct Ty(pub usize); +pub struct Ty(usize); impl Debug for Ty { fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { @@ -138,7 +138,7 @@ impl Const { } #[derive(Clone, Copy, Debug, PartialEq, Eq)] -pub struct ConstId(pub usize); +pub struct ConstId(usize); type Ident = Opaque; |
