my rust fork
https://www.rust-lang.org
See issue 1426 for details. Now, the semantics of "export t;" where t is a tag are
to export all of t's variants as well. "export t{};" exports t but not its
variants, while "export t{a, b, c};" exports only variants a, b, c of t.
To do:
- documentation
- there's currently no checking that a, b, c are actually variants of t in the
above example
- there's also no checking that t is an enum type, in the second two examples above
- change the modules listed in issue 1426 that should have the old export
semantics to use the t{} syntax
I deleted the test export-no-tag-variants since we're doing the opposite now,
and other tests cover the same behavior.
|
||
|---|---|---|
| doc | ||
| man | ||
| mk | ||
| src | ||
| .gitignore | ||
| .gitmodules | ||
| AUTHORS.txt | ||
| configure | ||
| INSTALL.txt | ||
| LICENSE.txt | ||
| Makefile.in | ||
| README.txt | ||
| RELEASES.txt | ||
This is a compiler and suite of associated libraries and documentation for the Rust programming language. See LICENSE.txt for terms of copyright and redistribution. See http://www.rust-lang.org for more information.