We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0d40f8 commit 041a612Copy full SHA for 041a612
src/librustc_resolve/lib.rs
@@ -1726,6 +1726,14 @@ impl<'a> Resolver<'a> {
1726
}
1727
1728
1729
+ if ns == TypeNS {
1730
+ if let Some(prim_ty) = self.primitive_type_table.primitive_types.get(&ident.name) {
1731
+ let binding = (Res::PrimTy(*prim_ty), ty::Visibility::Public,
1732
+ DUMMY_SP, ExpnId::root()).to_name_binding(self.arenas);
1733
+ return Some(LexicalScopeBinding::Item(binding));
1734
+ }
1735
1736
+
1737
None
1738
1739
0 commit comments