Skip to content

Commit b1252df

Browse files
authored
Unrolled build for rust-lang#120135
Rollup merge of rust-lang#120135 - oli-obk:smir_private, r=celinval SMIR: Make the remaining "private" fields actually private Turns out we have already created a trait that allows us to make the fields private: https://doc.rust-lang.org/nightly/nightly-rustc/stable_mir/ty/trait.IndexedVal.html fixes rust-lang/project-stable-mir#56 r? `@celinval`
2 parents 5378c1c + 225f0b9 commit b1252df

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)