File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -86,16 +86,14 @@ glances from people new to Rust.
86864 . Removal of ambiguity between primitive types and their identically-named modules. Currently
8787if you import an integer module and access constants in the module and methods on the type,
8888one has no apparent indication as to what comes from where:
89-
9089``` rust
9190use std :: u32 ;
9291assert_eq! (u32 :: MAX , u32 :: max_value ());
9392```
94-
9593The fact that this sort of shadowing of primitive types works in the first place is surprising
96- even to experience Rust programmers; the fact that such a pattern is seemingly encouraged by
94+ even to experienced Rust programmers; the fact that such a pattern is seemingly encouraged by
9795the standard library is even more of a surprise. By making this change we would be able to
98- remove all modules in the standard library whose names shadow primitive types.
96+ remove all modules in the standard library whose names shadow integral types.
9997
10098# Guide-level explanation
10199[ guide-level-explanation ] : #guide-level-explanation
You can’t perform that action at this time.
0 commit comments