diff options
| author | Santiago Pastorino <spastorino@gmail.com> | 2023-06-21 18:56:34 -0300 |
|---|---|---|
| committer | Santiago Pastorino <spastorino@gmail.com> | 2023-06-21 19:34:21 -0300 |
| commit | 3ef510ca807452cb82cbcf7d2417fc9a5ce35b41 (patch) | |
| tree | af06221827d691db184217896b38a0b22bcfc520 /compiler | |
| parent | 006a26c0b546abc0fbef59a773639582b641e500 (diff) | |
| download | rust-3ef510ca807452cb82cbcf7d2417fc9a5ce35b41.tar.gz rust-3ef510ca807452cb82cbcf7d2417fc9a5ce35b41.zip | |
Print def_id on EarlyBoundRegion debug
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_middle/src/ty/sty.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/ty/sty.rs b/compiler/rustc_middle/src/ty/sty.rs index 3b63b08de5b..c0627ab5c01 100644 --- a/compiler/rustc_middle/src/ty/sty.rs +++ b/compiler/rustc_middle/src/ty/sty.rs @@ -1584,7 +1584,7 @@ pub struct EarlyBoundRegion { impl fmt::Debug for EarlyBoundRegion { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - write!(f, "{}, {}", self.index, self.name) + write!(f, "{:?}, {}, {}", self.def_id, self.index, self.name) } } |
