Skip to content

Commit d37e6df

Browse files
committed
Add str to "expected primitive, found type" diagnostic
1 parent 328b759 commit d37e6df

File tree

1 file changed

+1
-0
lines changed
  • compiler/rustc_middle/src/ty

1 file changed

+1
-0
lines changed

compiler/rustc_middle/src/ty/sty.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1933,6 +1933,7 @@ impl<'tcx> Ty<'tcx> {
19331933
ty::UintTy::U64 => Some(sym::u64),
19341934
ty::UintTy::U128 => Some(sym::u128),
19351935
},
1936+
ty::Str => Some(sym::str),
19361937
_ => None,
19371938
}
19381939
}

0 commit comments

Comments
 (0)