From 8d654fc41d0c69eaaa78409e8d42318a478b7c83 Mon Sep 17 00:00:00 2001 From: OGINO Masanori Date: Sat, 27 Jul 2013 10:47:10 +0900 Subject: [PATCH] Remove unnecessary #[path = "***/mod.rs"] lines. Fixes #7922. Signed-off-by: OGINO Masanori --- src/librustc/middle/borrowck/mod.rs | 1 - src/librustc/middle/typeck/infer/mod.rs | 1 - src/librustc/middle/typeck/mod.rs | 2 -- src/librustc/rustc.rs | 6 ------ src/libstd/rt/mod.rs | 2 -- src/libstd/std.rs | 3 --- src/libsyntax/syntax.rs | 3 --- 7 files changed, 18 deletions(-) diff --git a/src/librustc/middle/borrowck/mod.rs b/src/librustc/middle/borrowck/mod.rs index bf9b4fcaedf..de06f267e1e 100644 --- a/src/librustc/middle/borrowck/mod.rs +++ b/src/librustc/middle/borrowck/mod.rs @@ -43,7 +43,6 @@ pub mod doc; pub mod check_loans; -#[path="gather_loans/mod.rs"] pub mod gather_loans; pub mod move_data; diff --git a/src/librustc/middle/typeck/infer/mod.rs b/src/librustc/middle/typeck/infer/mod.rs index eb32f4e59f0..f619135d82b 100644 --- a/src/librustc/middle/typeck/infer/mod.rs +++ b/src/librustc/middle/typeck/infer/mod.rs @@ -52,7 +52,6 @@ pub mod combine; pub mod glb; pub mod lattice; pub mod lub; -#[path = "region_inference/mod.rs"] pub mod region_inference; pub mod resolve; pub mod sub; diff --git a/src/librustc/middle/typeck/mod.rs b/src/librustc/middle/typeck/mod.rs index 0ea00e15863..996ed8cb1af 100644 --- a/src/librustc/middle/typeck/mod.rs +++ b/src/librustc/middle/typeck/mod.rs @@ -66,11 +66,9 @@ use syntax::print::pprust::*; use syntax::{ast, ast_map, abi}; use syntax::opt_vec; -#[path = "check/mod.rs"] pub mod check; pub mod rscope; pub mod astconv; -#[path = "infer/mod.rs"] pub mod infer; pub mod collect; pub mod coherence; diff --git a/src/librustc/rustc.rs b/src/librustc/rustc.rs index 39fbdb92a2f..6604a8bc74b 100644 --- a/src/librustc/rustc.rs +++ b/src/librustc/rustc.rs @@ -41,18 +41,15 @@ use syntax::codemap; use syntax::diagnostic; pub mod middle { - #[path = "trans/mod.rs"] pub mod trans; pub mod ty; pub mod subst; pub mod resolve; - #[path = "typeck/mod.rs"] pub mod typeck; pub mod check_loop; pub mod check_match; pub mod check_const; pub mod lint; - #[path = "borrowck/mod.rs"] pub mod borrowck; pub mod dataflow; pub mod mem_categorization; @@ -70,7 +67,6 @@ pub mod middle { pub mod effect; pub mod reachable; pub mod graph; - #[path = "cfg/mod.rs"] pub mod cfg; } @@ -93,10 +89,8 @@ pub mod back { pub mod passes; } -#[path = "metadata/mod.rs"] pub mod metadata; -#[path = "driver/mod.rs"] pub mod driver; pub mod util { diff --git a/src/libstd/rt/mod.rs b/src/libstd/rt/mod.rs index ef6155b1fb7..44bba4b8006 100644 --- a/src/libstd/rt/mod.rs +++ b/src/libstd/rt/mod.rs @@ -90,14 +90,12 @@ mod kill; mod sched; /// Synchronous I/O. -#[path = "io/mod.rs"] pub mod io; /// The EventLoop and internal synchronous I/O interface. mod rtio; /// libuv and default rtio implementation. -#[path = "uv/mod.rs"] pub mod uv; /// The Local trait for types that are accessible via thread-local diff --git a/src/libstd/std.rs b/src/libstd/std.rs index bbbc1702c62..76d65192e01 100644 --- a/src/libstd/std.rs +++ b/src/libstd/std.rs @@ -162,7 +162,6 @@ pub mod trie; /* Tasks and communication */ -#[path = "task/mod.rs"] pub mod task; pub mod comm; pub mod pipes; @@ -190,7 +189,6 @@ pub mod util; /* Unsupported interfaces */ // Private APIs -#[path = "unstable/mod.rs"] pub mod unstable; /* For internal use, not exported */ @@ -202,7 +200,6 @@ mod stackwalk; // XXX: This shouldn't be pub, and it should be reexported under 'unstable' // but name resolution doesn't work without it being pub. -#[path = "rt/mod.rs"] pub mod rt; // A curious inner-module that's not exported that contains the binding diff --git a/src/libsyntax/syntax.rs b/src/libsyntax/syntax.rs index 3384dabeab7..ae2aa6ae738 100644 --- a/src/libsyntax/syntax.rs +++ b/src/libsyntax/syntax.rs @@ -45,7 +45,6 @@ pub mod visit; pub mod fold; -#[path = "parse/mod.rs"] pub mod parse; pub mod print { @@ -60,7 +59,6 @@ pub mod ext { pub mod quote; - #[path = "deriving/mod.rs"] pub mod deriving; pub mod build; @@ -80,7 +78,6 @@ pub mod ext { pub mod auto_encode; pub mod source_util; - #[path = "pipes/mod.rs"] pub mod pipes; pub mod trace_macros;