diff --git a/fixed/78442.sh b/ices/78442.sh similarity index 82% rename from fixed/78442.sh rename to ices/78442.sh index 4eae1462..a6b66d58 100644 --- a/fixed/78442.sh +++ b/ices/78442.sh @@ -1,6 +1,6 @@ #!/bin/bash -rustc -Z mir-opt-level=3 - << EOF +rustc -Z inline-mir - << EOF #![crate_type = "lib"] // Error won't happen if "bar" is not generic @@ -9,7 +9,7 @@ pub fn bar

(_baz: P) { } // Error won't happen if "iterate" hasn't impl Trait or has generics -fn hide_foo() -> impl Fn() { +fn hide_foo() -> impl Fn() { foo } diff --git a/ices/82470.rs b/ices/82470.rs new file mode 100644 index 00000000..3593caa2 --- /dev/null +++ b/ices/82470.rs @@ -0,0 +1,7 @@ +trait MyTraitAsync { + async fn async_fn() { + || {}; + } +} + +fn main() {} diff --git a/ices/83117.sh b/ices/83117.sh new file mode 100644 index 00000000..025e801d --- /dev/null +++ b/ices/83117.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +rustc --crate-type=lib --crate-name=ice_test_lib - <<'EOF' +#![no_std] +#![feature(lang_items)] + +#[lang = "start"] fn start(_: *const u8, _: isize, _: *const *const u8) -> isize { + 0 +} +EOF + +rustc -L. - <<'EOF' +#![no_std] +#![feature(lang_items)] + +extern crate ice_test_lib; + +use core::panic::PanicInfo; + +fn main() {} + +#[panic_handler] +fn panic_handler(_: &PanicInfo) -> ! { + loop {} +} + +#[lang = "eh_personality"] fn eh_personality() {} +EOF diff --git a/ices/83120.rs b/ices/83120.rs new file mode 100644 index 00000000..17622f6a --- /dev/null +++ b/ices/83120.rs @@ -0,0 +1,4 @@ +fn main() { + struct S; + S as *const (); +} diff --git a/ices/83176.rs b/ices/83176.rs new file mode 100644 index 00000000..977b0714 --- /dev/null +++ b/ices/83176.rs @@ -0,0 +1,7 @@ +#![warn(disjoint_capture_drop_reorder)] + +fn main() { + if let a = "" { + drop(|_: ()| drop(a)); + } +} diff --git a/ices/83182.rs b/ices/83182.rs new file mode 100644 index 00000000..ebb2af29 --- /dev/null +++ b/ices/83182.rs @@ -0,0 +1,5 @@ +use std::mem; +struct MyStr(str); +const MYSTR_NO_INIT: &MyStr = unsafe { mem::transmute::<&[_], _>(&[&()]) }; + +fn main() {}