We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37dc4b9 commit 00afdb1Copy full SHA for 00afdb1
1 file changed
crates/wit-parser/src/ast/resolve.rs
@@ -1186,9 +1186,17 @@ impl<'a> Resolver<'a> {
1186
let value_ty = self.resolve_type(&map.value, stability)?;
1187
1188
match key_ty {
1189
- Type::Bool | Type::U8 | Type::U16 | Type::U32 | Type::U64 |
1190
- Type::S8 | Type::S16 | Type::S32 | Type::S64 |
1191
- Type::Char | Type::String => {}
+ Type::Bool
+ | Type::U8
+ | Type::U16
1192
+ | Type::U32
1193
+ | Type::U64
1194
+ | Type::S8
1195
+ | Type::S16
1196
+ | Type::S32
1197
+ | Type::S64
1198
+ | Type::Char
1199
+ | Type::String => {}
1200
_ => {
1201
bail!(Error::new(
1202
map.span,
0 commit comments