Add str to "expected primitive, found type" diagnostic

This commit is contained in:
Zachary S 2024-11-09 00:18:47 -06:00
parent 328b759142
commit d37e6dfee8

View File

@ -1933,6 +1933,7 @@ pub fn primitive_symbol(self) -> Option<Symbol> {
ty::UintTy::U64 => Some(sym::u64), ty::UintTy::U64 => Some(sym::u64),
ty::UintTy::U128 => Some(sym::u128), ty::UintTy::U128 => Some(sym::u128),
}, },
ty::Str => Some(sym::str),
_ => None, _ => None,
} }
} }