Add str to "expected primitive, found type" diagnostic
This commit is contained in:
parent
328b759142
commit
d37e6dfee8
@ -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,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user