Skip to content

Commit

Permalink
fix paths to local debug assertions toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiaskrgr committed Jan 12, 2024
1 parent 3aa63b4 commit adba944
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 19 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ https://github.com/langston-barrett/tree-splicer code mutator which icemaker can

Trophy case (840+):

https://github.com/rust-lang/rust/issues/119890
https://github.com/rust-lang/rust/issues/119867
https://github.com/rust-lang/rust/issues/119857
https://github.com/rust-lang/rust/issues/119847
Expand Down
26 changes: 7 additions & 19 deletions src/ice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -470,9 +470,7 @@ impl Executable {
match self {
Executable::Rustc => {
if *LOCAL_DEBUG_ASSERTIONS {
String::from(
"/home/matthias/.rustup/toolchains/local-debug-assertions/bin/rustc",
)
String::from("~/.rustup/toolchains/local-debug-assertions/bin/rustc")
} else {
let mut p = home::rustup_home().unwrap();
p.push("toolchains");
Expand All @@ -484,9 +482,7 @@ impl Executable {
}
Executable::Clippy => {
if *LOCAL_DEBUG_ASSERTIONS {
String::from(
"/home/matthias/.rustup/toolchains/local-debug-assertions/bin/clippy-driver",
)
String::from("~/.rustup/toolchains/local-debug-assertions/bin/clippy-driver")
} else {
let mut p = home::rustup_home().unwrap();
p.push("toolchains");
Expand All @@ -498,9 +494,7 @@ impl Executable {
}
Executable::ClippyFix => {
if *LOCAL_DEBUG_ASSERTIONS {
String::from(
"/home/matthias/.rustup/toolchains/local-debug-assertions/bin/clippy-driver",
)
String::from("~/.rustup/toolchains/local-debug-assertions/bin/clippy-driver")
} else {
let mut p = home::rustup_home().unwrap();
p.push("toolchains");
Expand All @@ -513,9 +507,7 @@ impl Executable {

Executable::RustFix => {
if *LOCAL_DEBUG_ASSERTIONS {
String::from(
"/home/matthias/.rustup/toolchains/local-debug-assertions/bin/rustc",
)
String::from("~/.rustup/toolchains/local-debug-assertions/bin/rustc")
} else {
let mut p = home::rustup_home().unwrap();
p.push("toolchains");
Expand All @@ -527,9 +519,7 @@ impl Executable {
}
Executable::Rustdoc => {
if *LOCAL_DEBUG_ASSERTIONS {
String::from(
"/home/matthias/.rustup/toolchains/local-debug-assertions/bin/rustdoc",
)
String::from("~/.rustup/toolchains/local-debug-assertions/bin/rustdoc")
} else {
let mut p = home::rustup_home().unwrap();
p.push("toolchains");
Expand All @@ -549,9 +539,7 @@ impl Executable {
}
Executable::Rustfmt => {
if *LOCAL_DEBUG_ASSERTIONS {
String::from(
"/home/matthias/.rustup/toolchains/local-debug-assertions/bin/rustfmt",
)
String::from("~/.rustup/toolchains/local-debug-assertions/bin/rustfmt")
} else {
let mut p = home::rustup_home().unwrap();
p.push("toolchains");
Expand All @@ -572,7 +560,7 @@ impl Executable {
}

Executable::Cranelift => {
String::from("/home/matthias/.rustup/toolchains/local-debug-assertions/bin/rustc")
String::from("~/.rustup/toolchains/local-debug-assertions/bin/rustc")
}
Executable::Kani => "kani".into(),
// env vars + -Zcodegen-backend= to the rest of the stuff, similar to cranelift
Expand Down

0 comments on commit adba944

Please sign in to comment.