Skip to content

Commit 09b1327

Browse files
committed
Remove trait CtxMethods - work towards #11474
1 parent 01794cc commit 09b1327

File tree

4 files changed

+476
-481
lines changed

4 files changed

+476
-481
lines changed

src/librustpkg/api.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
use CtxMethods;
1211
use context::*;
1312
use crate::*;
1413
use crate_id::*;
14+
use install;
1515
use package_source::*;
1616
use path_util::{platform_library_name, target_build_dir};
1717
use target::*;
@@ -134,7 +134,7 @@ pub fn install_pkg(cx: &BuildContext,
134134
// For now, these inputs are assumed to be inputs to each of the crates
135135
more_inputs: ~[(~str, Path)]) { // pairs of Kind and Path
136136
let crateid = CrateId{ version: version, ..CrateId::new(name)};
137-
cx.install(PkgSrc::new(workspace.clone(), workspace, false, crateid),
137+
install(cx, PkgSrc::new(workspace.clone(), workspace, false, crateid),
138138
&WhatToBuild{ build_type: Inferred,
139139
inputs_to_discover: more_inputs,
140140
sources: Everything });

0 commit comments

Comments
 (0)