From 67deb2e65e150a1b9b2fcd457da47e3e13b2c4f7 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Mon, 18 Aug 2014 08:29:44 -0700 Subject: libsyntax: Remove the `use foo = bar` syntax from the language in favor of `use bar as foo`. Change all uses of `use foo = bar` to `use bar as foo`. Implements RFC #47. Closes #16461. [breaking-change] --- src/libstd/path/mod.rs | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'src/libstd/path') diff --git a/src/libstd/path/mod.rs b/src/libstd/path/mod.rs index d24c2e2266d..38d04324fe4 100644 --- a/src/libstd/path/mod.rs +++ b/src/libstd/path/mod.rs @@ -80,59 +80,59 @@ use vec::Vec; /// Typedef for POSIX file paths. /// See `posix::Path` for more info. -pub use PosixPath = self::posix::Path; +pub use self::posix::Path as PosixPath; /// Typedef for Windows file paths. /// See `windows::Path` for more info. -pub use WindowsPath = self::windows::Path; +pub use self::windows::Path as WindowsPath; /// Typedef for the platform-native path type #[cfg(unix)] -pub use Path = self::posix::Path; +pub use self::posix::Path as Path; /// Typedef for the platform-native path type #[cfg(windows)] -pub use Path = self::windows::Path; +pub use self::windows::Path as Path; /// Typedef for the platform-native component iterator #[cfg(unix)] -pub use Components = self::posix::Components; +pub use self::posix::Components as Components; /// Typedef for the platform-native component iterator #[cfg(windows)] -pub use Components = self::windows::Components; +pub use self::windows::Components as Components; /// Typedef for the platform-native str component iterator #[cfg(unix)] -pub use StrComponents = self::posix::StrComponents; +pub use self::posix::StrComponents as StrComponents; /// Typedef for the platform-native str component iterator #[cfg(windows)] -pub use StrComponents = self::windows::StrComponents; +pub use self::windows::StrComponents as StrComponents; /// Alias for the platform-native separator character. #[cfg(unix)] -pub use SEP = self::posix::SEP; +pub use self::posix::SEP as SEP; /// Alias for the platform-native separator character. #[cfg(windows)] -pub use SEP = self::windows::SEP; +pub use self::windows::SEP as SEP; /// Alias for the platform-native separator byte. #[cfg(unix)] -pub use SEP_BYTE = self::posix::SEP_BYTE; +pub use self::posix::SEP_BYTE as SEP_BYTE; /// Alias for the platform-native separator byte. #[cfg(windows)] -pub use SEP_BYTE = self::windows::SEP_BYTE; +pub use self::windows::SEP_BYTE as SEP_BYTE; /// Typedef for the platform-native separator char func #[cfg(unix)] -pub use is_sep = self::posix::is_sep; +pub use self::posix::is_sep as is_sep; /// Typedef for the platform-native separator char func #[cfg(windows)] -pub use is_sep = self::windows::is_sep; +pub use self::windows::is_sep as is_sep; /// Typedef for the platform-native separator byte func #[cfg(unix)] -pub use is_sep_byte = self::posix::is_sep_byte; +pub use self::posix::is_sep_byte as is_sep_byte; /// Typedef for the platform-native separator byte func #[cfg(windows)] -pub use is_sep_byte = self::windows::is_sep_byte; +pub use self::windows::is_sep_byte as is_sep_byte; pub mod posix; pub mod windows; -- cgit 1.4.1-3-g733a5