mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
Remove unused code
This commit is contained in:
parent
70f38213da
commit
d29ac156f2
@ -206,6 +206,7 @@ impl<'a, 'cfg> Context<'a, 'cfg> {
|
||||
|
||||
// If the unit has a build script, add `OUT_DIR` to the
|
||||
// environment variables.
|
||||
if unit.target.is_lib() {
|
||||
for dep in &self.bcx.unit_graph[unit] {
|
||||
if dep.unit.mode.is_run_custom_build() {
|
||||
let out_dir = self
|
||||
@ -221,6 +222,7 @@ impl<'a, 'cfg> Context<'a, 'cfg> {
|
||||
.push(("OUT_DIR".to_string(), out_dir));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Collect information for `rustdoc --test`.
|
||||
if unit.mode.is_doc_test() {
|
||||
|
@ -12,7 +12,7 @@ mod job;
|
||||
mod job_queue;
|
||||
mod layout;
|
||||
mod links;
|
||||
pub mod lto;
|
||||
mod lto;
|
||||
mod output_depinfo;
|
||||
pub mod rustdoc;
|
||||
pub mod standard_lib;
|
||||
|
@ -25,13 +25,10 @@
|
||||
use std::collections::{BTreeSet, HashMap, HashSet};
|
||||
use std::ffi::OsString;
|
||||
use std::hash::{Hash, Hasher};
|
||||
use std::iter;
|
||||
use std::sync::Arc;
|
||||
|
||||
use crate::core::compiler::lto;
|
||||
use crate::core::compiler::unit_dependencies::build_unit_dependencies;
|
||||
use crate::core::compiler::unit_graph::{self, UnitDep, UnitGraph};
|
||||
use crate::core::compiler::Layout;
|
||||
use crate::core::compiler::{standard_lib, TargetInfo};
|
||||
use crate::core::compiler::{BuildConfig, BuildContext, Compilation, Context};
|
||||
use crate::core::compiler::{CompileKind, CompileMode, CompileTarget, RustcTargetData, Unit};
|
||||
|
Loading…
x
Reference in New Issue
Block a user