mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-05 03:24:06 +03:00
Added optional pub to use_decl EBNF.
This commit is contained in:
+1
-1
@@ -798,7 +798,7 @@ extern mod ruststd (name = "std"); // linking to 'std' under another name
|
||||
##### Use declarations
|
||||
|
||||
~~~~~~~~ {.ebnf .gram}
|
||||
use_decl : "use" ident [ '=' path
|
||||
use_decl : "pub"? "use" ident [ '=' path
|
||||
| "::" path_glob ] ;
|
||||
|
||||
path_glob : ident [ "::" path_glob ] ?
|
||||
|
||||
Reference in New Issue
Block a user