Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 2 Packages Projects Releases Wiki Activity
Files
51b51b51d7931da85280382a81c4dd80c73ca754
rust/tests/ui/panics/panic-arg.rs

12 lines
136 B
Rust
Raw Normal View History

[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
2024-02-16 20:02:50 +00:00
//@ run-fail
//@ error-pattern:woe
tests: use `needs-subprocess` instead of `ignore-{wasm32,emscripten,sgx}`
2025-01-23 16:36:54 +08:00
//@ needs-subprocess
Move tests from `test/run-fail` to UI
2020-04-16 15:50:32 +09:00
run rustfmt on test/run-fail folder
2016-05-27 08:09:36 +05:30
fn f(a: isize) {
println!("{}", a);
}
Generate code properly for calls with _|_ - typed arguments The code for translating a fail (for example) would call Unreachable(), which terminates the block; if a fail appeared as an argument, this would cause an LLVM assertion failure. Changed trans_call to handle this situation correctly.
2011-07-02 21:55:38 -07:00
run rustfmt on test/run-fail folder
2016-05-27 08:09:36 +05:30
fn main() {
f(panic!("woe"));
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 4968ms 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