diff options
| author | Celina G. Val <celinval@amazon.com> | 2024-03-20 18:02:11 -0700 |
|---|---|---|
| committer | Celina G. Val <celinval@amazon.com> | 2024-03-20 18:02:11 -0700 |
| commit | ebacf7acd30d5fe9e7b889ac47a238c495737346 (patch) | |
| tree | 28adf8483d27844db08257bf27df2046c734b87e | |
| parent | 5f6257429dffd5bf4b733f043d45179352278d61 (diff) | |
| download | rust-ebacf7acd30d5fe9e7b889ac47a238c495737346.tar.gz rust-ebacf7acd30d5fe9e7b889ac47a238c495737346.zip | |
s/place_debug/place_pretty in SMIR
| -rw-r--r-- | compiler/rustc_smir/src/rustc_smir/context.rs | 2 | ||||
| -rw-r--r-- | compiler/stable_mir/src/compiler_interface.rs | 2 | ||||
| -rw-r--r-- | compiler/stable_mir/src/mir/pretty.rs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_smir/src/rustc_smir/context.rs b/compiler/rustc_smir/src/rustc_smir/context.rs index 66917c73aa5..d39a3788d4c 100644 --- a/compiler/rustc_smir/src/rustc_smir/context.rs +++ b/compiler/rustc_smir/src/rustc_smir/context.rs @@ -660,7 +660,7 @@ impl<'tcx> Context for TablesWrapper<'tcx> { id.internal(&mut *tables, tcx).0.stable(&mut *tables) } - fn place_debug(&self, place: &Place) -> String { + fn place_pretty(&self, place: &Place) -> String { let mut tables = self.0.borrow_mut(); let tcx = tables.tcx; format!("{:?}", place.internal(&mut *tables, tcx)) diff --git a/compiler/stable_mir/src/compiler_interface.rs b/compiler/stable_mir/src/compiler_interface.rs index 68f078892ef..8ed34fab54d 100644 --- a/compiler/stable_mir/src/compiler_interface.rs +++ b/compiler/stable_mir/src/compiler_interface.rs @@ -210,7 +210,7 @@ pub trait Context { fn layout_shape(&self, id: Layout) -> LayoutShape; /// Get a debug string representation of a place. - fn place_debug(&self, place: &Place) -> String; + fn place_pretty(&self, place: &Place) -> String; } // A thread local variable that stores a pointer to the tables mapping between TyCtxt diff --git a/compiler/stable_mir/src/mir/pretty.rs b/compiler/stable_mir/src/mir/pretty.rs index 8c3ebb56fb0..4ac4833add7 100644 --- a/compiler/stable_mir/src/mir/pretty.rs +++ b/compiler/stable_mir/src/mir/pretty.rs @@ -18,7 +18,7 @@ impl Display for Ty { impl Debug for Place { fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { - with(|ctx| write!(f, "{}", ctx.place_debug(self))) + with(|ctx| write!(f, "{}", ctx.place_pretty(self))) } } |
