Fix no_module build.

This commit is contained in:
Stephen Chung
2022-10-14 15:23:58 +08:00
parent 38e47c909d
commit 71e475be13
3 changed files with 11 additions and 12 deletions

View File

@@ -493,6 +493,7 @@ impl fmt::Debug for Expr {
}
}
f.write_str(&x.3)?;
#[cfg(not(feature = "no_module"))]
if let Some(n) = x.1.index() {
write!(f, " #{}", n)?;
}