You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've merged PR rust-lang#1040, so we can remove the TODO and update the link
to point to the specific section.
We replace some commas with semicolons where that's the right thing to
do grammatically.
Where we have "an X is... they are...", we replace that with "an X
is... Xs are..." for reasons of avoiding a mismatch between the
plurality of the pronoun and its referent.
We replace "implementing type" and "defining type" with "type being
implemented" and "type being defined", since there is in general a
difference (e.g. "the driving force" vs "the force being driven"), and
these seem more like the latter than the former.
There's a place where we had said, "glob imports are allowed to import
conflicting names into the same *namespaces*" (emphasis added). It
makes sense what this is trying to say by using the plural there. But
it just reads better to use the singular, and if it's true for the
singular, it's clearly also true to the plural, so we make that
change.
Copy file name to clipboardexpand all lines: src/items/use-declarations.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -320,7 +320,7 @@ m!(use std as _;);
320
320
The following are restrictions for valid `use` declarations.
321
321
322
322
*`use crate;` must use `as` to define the name to bind the crate root to.
323
-
*`use {self};` is an error, there must be a leading segment when using `self`.
323
+
*`use {self};` is an error; there must be a leading segment when using `self`.
324
324
* As with any item definition, `use` imports cannot create duplicate bindings of the same name in the same namespace in a module or block.
325
325
*`use` paths with `$crate` are not allowed in a [`macro_rules`] expansion.
326
326
*`use` paths cannot refer to enum variants through a [type alias]. Example:
@@ -338,9 +338,9 @@ The following are restrictions for valid `use` declarations.
338
338
339
339
> **Note**: This section is incomplete.
340
340
341
-
Some situations are an error when there is an ambiguity as to which name a `use` declaration refers to, when there are two name candidates that do not resolve to the same entity.
341
+
Some situations are an error when there is an ambiguity as to which name a `use` declaration refers. This happens when there are two name candidates that do not resolve to the same entity.
342
342
343
-
Glob imports are allowed to import conflicting names in the same namespaces as long as the name is not used or shadowed.
343
+
Glob imports are allowed to import conflicting names in the same namespace as long as the name is not used or shadowed.
0 commit comments