Skip to content

Commit a234d6e

Browse files
committed
Revert visibility change to Lifetime property
1 parent 2cee652 commit a234d6e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

chalk-integration/src/interner.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ impl Interner for ChalkIr {
102102
fmt: &mut fmt::Formatter<'_>,
103103
) -> Option<fmt::Result> {
104104
tls::with_current_program(|prog| Some(prog?.debug_lifetime(lifetime, fmt)))
105-
.or_else(|| Some(write!(fmt, "{:?}", lifetime.interned)))
105+
.or_else(|| Some(write!(fmt, "{:?}", lifetime.interned())))
106106
}
107107

108108
fn debug_parameter(

chalk-ir/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ pub struct Fn<I: Interner> {
637637

638638
#[derive(Copy, Clone, PartialEq, Eq, Hash, PartialOrd, Ord, HasInterner)]
639639
pub struct Lifetime<I: Interner> {
640-
pub interned: I::InternedLifetime,
640+
interned: I::InternedLifetime,
641641
}
642642

643643
impl<I: Interner> Lifetime<I> {

0 commit comments

Comments
 (0)