about summary refs log tree commit diff
path: root/src/rt/rust_kernel.cpp
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2012-01-22 21:09:43 -0800
committerTim Chevalier <chevalier@alum.wellesley.edu>2012-01-23 15:48:08 -0800
commit9dc59e15061827122dc0f08d3f66acd17ba329dc (patch)
treed98b61d751f5db6d33c844d3706a9c6a4f399524 /src/rt/rust_kernel.cpp
parente51599932478db1d841912a6e0a10cbc20335e1f (diff)
downloadrust-9dc59e15061827122dc0f08d3f66acd17ba329dc.tar.gz
rust-9dc59e15061827122dc0f08d3f66acd17ba329dc.zip
Export all enum variants by default; new syntax for selectively exporting variants
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.
Diffstat (limited to 'src/rt/rust_kernel.cpp')
0 files changed, 0 insertions, 0 deletions