We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 87909b3 + 9878616 commit da3929eCopy full SHA for da3929e
compiler/rustc_resolve/src/lib.rs
@@ -781,7 +781,10 @@ impl<'ra> std::ops::Deref for Module<'ra> {
781
782
impl<'ra> fmt::Debug for Module<'ra> {
783
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
784
- write!(f, "{:?}", self.res())
+ match self.kind {
785
+ ModuleKind::Block => write!(f, "block"),
786
+ ModuleKind::Def(..) => write!(f, "{:?}", self.res()),
787
+ }
788
}
789
790
0 commit comments