about summary refs log tree commit diff
path: root/src/libsyntax/syntax.rs
diff options
context:
space:
mode:
authorChris Morgan <me@chrismorgan.info>2013-10-29 17:22:49 +1100
committerChris Morgan <me@chrismorgan.info>2013-11-03 23:49:01 +1100
commit0369a41f0e668eda5622055253b91dbb5254f0b4 (patch)
tree1cff913f7020f89a9441a0eb19d9e573329bba92 /src/libsyntax/syntax.rs
parent318e1da4a79533cf8040ef41dc1b1a2ef861906b (diff)
downloadrust-0369a41f0e668eda5622055253b91dbb5254f0b4.tar.gz
rust-0369a41f0e668eda5622055253b91dbb5254f0b4.zip
Rename files to match current recommendations.
New standards have arisen in recent months, mostly for the use of
rustpkg, but the main Rust codebase has not been altered to match these
new specifications. This changeset rectifies most of these issues.

- Renamed the crate source files `src/libX/X.rs` to `lib.rs`, for
  consistency with current styles; this affects extra, rustc, rustdoc,
  rustpkg, rustuv, std, syntax.

- Renamed `X/X.rs` to `X/mod.rs,` as is now recommended style, for
  `std::num` and `std::terminfo`.

- Shifted `src/libstd/str/ascii.rs` out of the otherwise unused `str`
  directory, to be consistent with its import path of `std::ascii`;
  libstd is flat at present so it's more appropriate thus.

While this removes some `#[path = "..."]` directives, it does not remove
all of them, and leaves certain other inconsistencies, such as `std::u8`
et al. which are actually stored in `src/libstd/num/` (one subdirectory
down). No quorum has been reached on this issue, so I felt it best to
leave them all alone at present. #9208 deals with the possibility of
making libstd more hierarchical (such as changing the crate to match the
current filesystem structure, which would make the module path
`std::num::u8`).

There is one thing remaining in which this repository is not
rustpkg-compliant: rustpkg would have `src/std/` et al. rather than
`src/libstd/` et al. I have not endeavoured to change that at this point
as it would guarantee prompt bitrot and confusion. A change of that
magnitude needs to be discussed first.
Diffstat (limited to 'src/libsyntax/syntax.rs')
-rw-r--r--src/libsyntax/syntax.rs87
1 files changed, 0 insertions, 87 deletions
diff --git a/src/libsyntax/syntax.rs b/src/libsyntax/syntax.rs
deleted file mode 100644
index cf2c01e92b4..00000000000
--- a/src/libsyntax/syntax.rs
+++ /dev/null
@@ -1,87 +0,0 @@
-// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution and at
-// http://rust-lang.org/COPYRIGHT.
-//
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-
-/*! This module contains the Rust parser. It maps source text
- *  to token trees and to ASTs. It contains code for expanding
- *  macros.
- */
-
-#[link(name = "syntax",
-       vers = "0.9-pre",
-       uuid = "9311401b-d6ea-4cd9-a1d9-61f89499c645")];
-
-#[license = "MIT/ASL2"];
-#[crate_type = "lib"];
-
-#[feature(macro_rules, globs, managed_boxes)];
-
-extern mod extra;
-
-pub mod util {
-    pub mod interner;
-    #[cfg(test)]
-    pub mod parser_testing;
-}
-
-pub mod syntax {
-    pub use ext;
-    pub use parse;
-}
-
-pub mod opt_vec;
-pub mod attr;
-pub mod diagnostic;
-pub mod codemap;
-pub mod abi;
-pub mod ast;
-pub mod ast_util;
-pub mod ast_map;
-pub mod visit;
-pub mod fold;
-
-
-pub mod parse;
-
-pub mod print {
-    pub mod pp;
-    pub mod pprust;
-}
-
-pub mod ext {
-    pub mod asm;
-    pub mod base;
-    pub mod expand;
-
-    pub mod quote;
-
-    pub mod deriving;
-
-    pub mod build;
-
-    pub mod tt {
-        pub mod transcribe;
-        pub mod macro_parser;
-        pub mod macro_rules;
-    }
-
-
-    pub mod cfg;
-    pub mod fmt;
-    pub mod format;
-    pub mod env;
-    pub mod bytes;
-    pub mod concat;
-    pub mod concat_idents;
-    pub mod log_syntax;
-    pub mod auto_encode;
-    pub mod source_util;
-
-    pub mod trace_macros;
-}