File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -604,8 +604,8 @@ impl Command {
604
604
605
605
fn install ( features : Vec < String > , flags : Vec < String > ) -> Result < ( ) > {
606
606
let e = MiriEnv :: new ( ) ?;
607
- e. install_to_sysroot ( e . miri_dir . clone ( ) , & features, & flags) ?;
608
- e. install_to_sysroot ( path ! ( e . miri_dir / "cargo-miri" ) , & [ ] , & flags) ?;
607
+ e. install_to_sysroot ( "." , & features, & flags) ?;
608
+ e. install_to_sysroot ( "cargo-miri" , & [ ] , & flags) ?;
609
609
Ok ( ( ) )
610
610
}
611
611
Original file line number Diff line number Diff line change @@ -139,16 +139,16 @@ impl MiriEnv {
139
139
)
140
140
}
141
141
142
- /// Make sure the `features` you pass here exist for the specified `path `. For example, the
142
+ /// Make sure the `features` you pass here exist for the specified `crate_dir `. For example, the
143
143
/// "--features" parameter of [crate::Command]s is intended only for the "miri" root crate.
144
144
pub fn install_to_sysroot (
145
145
& self ,
146
- path : impl AsRef < OsStr > ,
146
+ crate_dir : impl AsRef < OsStr > ,
147
147
features : & [ String ] ,
148
148
args : impl IntoIterator < Item = impl AsRef < OsStr > > ,
149
149
) -> Result < ( ) > {
150
150
let MiriEnv { sysroot, toolchain, cargo_extra_flags, .. } = self ;
151
- let path = path ! ( self . miri_dir / path . as_ref( ) ) ;
151
+ let path = path ! ( self . miri_dir / crate_dir . as_ref( ) ) ;
152
152
let features = features_to_args ( features) ;
153
153
// Install binaries to the miri toolchain's `sysroot` so they do not interact with other toolchains.
154
154
// (Not using `cargo_cmd` as `install` is special and doesn't use `--manifest-path`.)
You can’t perform that action at this time.
0 commit comments