Skip to content

Remove unnecessary #[path = "***/mod.rs"] lines. #8076

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/librustc/middle/borrowck/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ pub mod doc;

pub mod check_loans;

#[path="gather_loans/mod.rs"]
pub mod gather_loans;

pub mod move_data;
Expand Down
1 change: 0 additions & 1 deletion src/librustc/middle/typeck/infer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions src/librustc/middle/typeck/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 0 additions & 6 deletions src/librustc/rustc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -70,7 +67,6 @@ pub mod middle {
pub mod effect;
pub mod reachable;
pub mod graph;
#[path = "cfg/mod.rs"]
pub mod cfg;
}

Expand All @@ -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 {
Expand Down
2 changes: 0 additions & 2 deletions src/libstd/rt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions src/libstd/std.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ pub mod trie;

/* Tasks and communication */

#[path = "task/mod.rs"]
pub mod task;
pub mod comm;
pub mod pipes;
Expand Down Expand Up @@ -190,7 +189,6 @@ pub mod util;
/* Unsupported interfaces */

// Private APIs
#[path = "unstable/mod.rs"]
pub mod unstable;

/* For internal use, not exported */
Expand All @@ -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
Expand Down
3 changes: 0 additions & 3 deletions src/libsyntax/syntax.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ pub mod visit;
pub mod fold;


#[path = "parse/mod.rs"]
pub mod parse;

pub mod print {
Expand All @@ -60,7 +59,6 @@ pub mod ext {

pub mod quote;

#[path = "deriving/mod.rs"]
pub mod deriving;

pub mod build;
Expand All @@ -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;
Expand Down