Skip to content

Commit c766042

Browse files
author
Jon Gjengset
committed
More windows debugging
1 parent b872e2e commit c766042

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/toolchain.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,13 @@ impl<'a> Toolchain<'a> {
8787

8888
// Perform minimal validation; there should at least be a `bin/` that might
8989
// contain things for us to run.
90-
if !path.join("bin").is_dir() {
90+
if !dbg!(path.join("bin")).is_dir() {
9191
return Err(ErrorKind::InvalidToolchainPath(path.into()).into());
9292
}
9393

9494
Ok(Toolchain {
9595
cfg,
96-
name: path
97-
.as_os_str()
98-
.to_str()
96+
name: dbg!(path.to_str())
9997
.ok_or_else(|| ErrorKind::InvalidToolchainPath(path.clone().into()))?
10098
.to_owned(),
10199
path,

tests/cli-rustup.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1562,11 +1562,14 @@ fn file_override_path_relative() {
15621562
for p in p1 {
15631563
relative_path.push(p);
15641564
}
1565-
assert!(relative_path.is_relative());
1565+
assert!(dbg!(&relative_path).is_relative());
15661566

15671567
raw::write_file(
15681568
&toolchain_file,
1569-
&format!("[toolchain]\npath='{}'", relative_path.to_str().unwrap()),
1569+
dbg!(&format!(
1570+
"[toolchain]\npath='{}'",
1571+
relative_path.to_str().unwrap()
1572+
)),
15701573
)
15711574
.unwrap();
15721575

0 commit comments

Comments
 (0)