about summary refs log tree commit diff
path: root/src/rustc
diff options
context:
space:
mode:
authorMark Simulacrum <mark.simulacrum@gmail.com>2017-07-22 20:01:58 -0600
committerMark Simulacrum <mark.simulacrum@gmail.com>2017-07-27 05:51:22 -0600
commite2e9b40e9aff842928c65606e47d9203a848a4e9 (patch)
treee66fc893468c1041a1abfb8ee00021f995d70379 /src/rustc
parentfe0eca0d3f028affeccbc4c422d54c80b5837157 (diff)
Build rustdoc on-demand.
Rustdoc is no longer compiled in every stage, alongside rustc, instead
it is only compiled when requested, and generally only for the last
stage.
Diffstat (limited to 'src/rustc')
-rw-r--r--src/rustc/Cargo.toml5
-rw-r--r--src/rustc/rustdoc.rs15
2 files changed, 0 insertions, 20 deletions
diff --git a/src/rustc/Cargo.toml b/src/rustc/Cargo.toml
index dce1a0a8ec8..4452f4a2f44 100644
--- a/src/rustc/Cargo.toml
+++ b/src/rustc/Cargo.toml
@@ -7,16 +7,11 @@ version = "0.0.0"
 name = "rustc"
 path = "rustc.rs"
 
-[[bin]]
-name = "rustdoc"
-path = "rustdoc.rs"
-
 # All optional dependencies so the features passed to this Cargo.toml select
 # what should actually be built.
 [dependencies]
 rustc_back = { path = "../librustc_back" }
 rustc_driver = { path = "../librustc_driver" }
-rustdoc = { path = "../librustdoc" }
 
 [features]
 jemalloc = ["rustc_back/jemalloc"]
diff --git a/src/rustc/rustdoc.rs b/src/rustc/rustdoc.rs
deleted file mode 100644
index a4f43c42623..00000000000
--- a/src/rustc/rustdoc.rs
+++ /dev/null
@@ -1,15 +0,0 @@
-// Copyright 2015 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.
-
-#![feature(rustc_private)]
-
-extern crate rustdoc;
-
-fn main() { rustdoc::main() }