This website requires JavaScript.
Explore
Help
Sign in
bjoernager
/
rust
Watch
1
Fork
You've already forked rust
0
Code
Activity
82cb88b777
rust
/
src
/
test
/
ui
/
fn
/
expr-fn-panic.rs
11 lines
98 B
Rust
Raw
Normal View
History
Unescape
Escape
Move tests from `test/run-fail` to UI
2020-04-16 15:50:32 +09:00
// run-fail
Update infrastructure for fail -> panic This includes updating the language items and marking what needs to change after a snapshot. If you do not use the standard library, the language items you need to implement have changed. For example: ```rust #[lang = "fail_fmt"] fn fail_fmt() -> ! { loop {} } ``` is now ```rust #[lang = "panic_fmt"] fn panic_fmt() -> ! { loop {} } ``` Related, lesser-implemented language items `fail` and `fail_bounds_check` have become `panic` and `panic_bounds_check`, as well. These are implemented by `libcore`, so it is unlikely (though possible!) that these two renamings will affect you. [breaking-change] Fix test suite
2014-10-28 14:07:33 -04:00
// error-pattern:explicit panic
rustc: Teach rustc to use block results as fn return values. Closes #372
2011-05-31 15:24:18 -04:00
run rustfmt on test/run-fail folder
2016-05-27 08:09:36 +05:30
fn
f
(
)
->
!
{
panic!
(
)
}
rustc: Teach rustc to use block results as fn return values. Closes #372
2011-05-31 15:24:18 -04:00
run rustfmt on test/run-fail folder
2016-05-27 08:09:36 +05:30
fn
main
(
)
{
f
(
)
;
}
Copy permalink