diff options
| author | Steven Fackler <sfackler@gmail.com> | 2014-11-06 00:05:53 -0800 |
|---|---|---|
| committer | Steven Fackler <sfackler@gmail.com> | 2014-11-17 07:35:51 -0800 |
| commit | 3dcd2157403163789aaf21a9ab3c4d30a7c6494d (patch) | |
| tree | 30cc4a448fe8380ae7107c6ea9b534a725adaec8 /src/libsyntax/print/pp.rs | |
| parent | 0047dbe59c41b951d34ce6324f3a8c0e15d523e9 (diff) | |
| download | rust-3dcd2157403163789aaf21a9ab3c4d30a7c6494d.tar.gz rust-3dcd2157403163789aaf21a9ab3c4d30a7c6494d.zip | |
Switch to purely namespaced enums
This breaks code that referred to variant names in the same namespace as
their enum. Reexport the variants in the old location or alter code to
refer to the new locations:
```
pub enum Foo {
A,
B
}
fn main() {
let a = A;
}
```
=>
```
pub use self::Foo::{A, B};
pub enum Foo {
A,
B
}
fn main() {
let a = A;
}
```
or
```
pub enum Foo {
A,
B
}
fn main() {
let a = Foo::A;
}
```
[breaking-change]
Diffstat (limited to 'src/libsyntax/print/pp.rs')
| -rw-r--r-- | src/libsyntax/print/pp.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libsyntax/print/pp.rs b/src/libsyntax/print/pp.rs index 5523f85aceb..7ab3d5dbcd1 100644 --- a/src/libsyntax/print/pp.rs +++ b/src/libsyntax/print/pp.rs @@ -59,6 +59,10 @@ //! line (which it can't) and so naturally place the content on its own line to //! avoid combining it with other lines and making matters even worse. +pub use self::PrintStackBreak::*; +pub use self::Breaks::*; +pub use self::Token::*; + use std::io; use std::string; |
