]> git.lizzy.rs Git - rust.git/blobdiff - y.rs
Don't hard-code rustc path in get_rustc_version and get_default_sysroot
[rust.git] / y.rs
diff --git a/y.rs b/y.rs
index 18528d542972990c42cf28d447e487e118b6acf9..fd825d02e355c0bfd3f58a6a8e99a33806ab33be 100755 (executable)
--- a/y.rs
+++ b/y.rs
@@ -1,9 +1,9 @@
 #!/usr/bin/env bash
-#![allow()] /*This line is ignored by bash
+#![deny(unsafe_code)] /*This line is ignored by bash
 # This block is ignored by rustc
 set -e
 echo "[BUILD] y.rs" 1>&2
-rustc $0 -o ${0/.rs/.bin} -g
+rustc $0 -o ${0/.rs/.bin} -Cdebuginfo=1 --edition 2021 -Cpanic=abort
 exec ${0/.rs/.bin} $@
 */