Make the remaining "private" fields actually private

This commit is contained in:
Oli Scherer 2024-01-19 16:37:50 +00:00
parent 92d727796b
commit 225f0b9fef

View File

@ -12,7 +12,7 @@
use std::ops::Range; use std::ops::Range;
#[derive(Copy, Clone, Eq, PartialEq, Hash)] #[derive(Copy, Clone, Eq, PartialEq, Hash)]
pub struct Ty(pub usize); pub struct Ty(usize);
impl Debug for Ty { impl Debug for Ty {
fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
@ -138,7 +138,7 @@ pub fn eval_target_usize(&self) -> Result<u64, Error> {
} }
#[derive(Clone, Copy, Debug, PartialEq, Eq)] #[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub struct ConstId(pub usize); pub struct ConstId(usize);
type Ident = Opaque; type Ident = Opaque;