Skip to content

Commit 8f5106b

Browse files
committed
Last adjustments for the PR
1 parent 60e1fa4 commit 8f5106b

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

cargo-marker/src/driver.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,16 @@ fn build_driver(toolchain: &str, version: &str, verbose: bool, dev_build: bool)
9999
if dev_build {
100100
cmd.args(["build", "--bin", "marker_driver_rustc"]);
101101
} else {
102-
// TODO Set output path to the local branch thingy
102+
// FIXME: This currently installs the binary in Cargo's default location.
103+
// Ideally this should install the driver in the toolchain folder for the
104+
// installed nightly version. This would allow the user to have multiple
105+
// drivers depending on the project toolchain.
106+
//
107+
// We can just reuse rustup to select the correct driver for a defined
108+
// toolchain. This would also simulate how the driver would be delivered
109+
// in a perfect world.
110+
//
111+
// See #60
103112
cmd.args(["install", "marker_rustc_driver", "--version", version]);
104113
}
105114

cargo-marker/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ fn print_env(env: Vec<(OsString, OsString)>) -> io::Result<()> {
164164
writeln!(lock)?;
165165
}
166166

167-
return Ok(());
167+
Ok(())
168168
}
169169

170170
#[cfg(target_os = "windows")]
@@ -177,6 +177,6 @@ fn print_env(env: Vec<(OsString, OsString)>) -> io::Result<()> {
177177
}
178178
}
179179

180-
return Ok(());
180+
Ok(())
181181
}
182182
}

0 commit comments

Comments
 (0)