This commit is contained in:
Jeroen Vannevel 2022-02-15 14:47:23 +00:00
parent 73e49493bd
commit c450d0ce41
No known key found for this signature in database
GPG key ID: 78EF5F52F38C49BD
7 changed files with 7 additions and 18 deletions

View file

@ -239,7 +239,6 @@ where
T: HirDisplay,
{
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
println!("formatting..");
match self.t.hir_fmt(&mut HirFormatter {
db: self.db,
fmt: f,
@ -341,10 +340,7 @@ impl HirDisplay for Ty {
if f.should_truncate() {
return write!(f, "{}", TYPE_HINT_TRUNCATION);
}
let interner_kind = self.kind(Interner);
println!("interner kind: {interner_kind:?}");
match self.kind(Interner) {
TyKind::Never => write!(f, "!")?,
TyKind::Str => write!(f, "str")?,