mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-08 09:38:26 +03:00
Add str to "expected primitive, found type" diagnostic
This commit is contained in:
@@ -1933,6 +1933,7 @@ pub fn primitive_symbol(self) -> Option<Symbol> {
|
||||
ty::UintTy::U64 => Some(sym::u64),
|
||||
ty::UintTy::U128 => Some(sym::u128),
|
||||
},
|
||||
ty::Str => Some(sym::str),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user