Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
58e901b6fd1163172149fd422565523b17eed5f0
rust/tests/ui/mir/issue66339.rs

14 lines
171 B
Rust
Raw Normal View History

Bump mir-opt-level from 2 to 3 in tests
2021-03-04 10:35:11 -03:00
// compile-flags: -Z mir-opt-level=3
const-prop: Restrict scalar pair propagation We now only propagate a scalar pair if the Rvalue is a tuple with two scalars. This for example avoids propagating a (u8, u8) value when Rvalue has type `((), u8, u8)` (see the regression test). While this is a correct thing to do, implementation is tricky and will be done later. Fixes #66971 Fixes #66339 Fixes #67019
2019-12-05 10:40:24 +03:00
// build-pass
// This used to ICE in const-prop
fn foo() {
let bar = |_| { };
let _ = bar("a");
}
fn main() {
foo();
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 2254ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API