Skip to content

Commit b170669

Browse files
committed
Make a field only as public as it needs to be
1 parent 02cbc01 commit b170669

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_middle/src/ty/consts.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub use valtree::*;
1717
/// Use this rather than `ConstData, whenever possible.
1818
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, HashStable)]
1919
#[rustc_pass_by_value]
20-
pub struct Const<'tcx>(pub Interned<'tcx, ConstData<'tcx>>);
20+
pub struct Const<'tcx>(pub(super) Interned<'tcx, ConstData<'tcx>>);
2121

2222
impl<'tcx> fmt::Debug for Const<'tcx> {
2323
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {

0 commit comments

Comments
 (0)