Skip to content

Commit ebacf7a

Browse files
committed
s/place_debug/place_pretty in SMIR
1 parent 5f62574 commit ebacf7a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

compiler/rustc_smir/src/rustc_smir/context.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ impl<'tcx> Context for TablesWrapper<'tcx> {
660660
id.internal(&mut *tables, tcx).0.stable(&mut *tables)
661661
}
662662

663-
fn place_debug(&self, place: &Place) -> String {
663+
fn place_pretty(&self, place: &Place) -> String {
664664
let mut tables = self.0.borrow_mut();
665665
let tcx = tables.tcx;
666666
format!("{:?}", place.internal(&mut *tables, tcx))

compiler/stable_mir/src/compiler_interface.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ pub trait Context {
210210
fn layout_shape(&self, id: Layout) -> LayoutShape;
211211

212212
/// Get a debug string representation of a place.
213-
fn place_debug(&self, place: &Place) -> String;
213+
fn place_pretty(&self, place: &Place) -> String;
214214
}
215215

216216
// A thread local variable that stores a pointer to the tables mapping between TyCtxt

compiler/stable_mir/src/mir/pretty.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ impl Display for Ty {
1818

1919
impl Debug for Place {
2020
fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
21-
with(|ctx| write!(f, "{}", ctx.place_debug(self)))
21+
with(|ctx| write!(f, "{}", ctx.place_pretty(self)))
2222
}
2323
}
2424

0 commit comments

Comments
 (0)