This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
43271a39ad
rust
/
src
/
test
/
run-fail
/
unique-panic.rs
6 lines
63 B
Rust
Raw
Normal View
History
Unescape
Escape
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 13:07:33 -05:00
// error-pattern: panic
fallout: run-fail tests that use box. (many/all could be ported to `Box::new` instead.)
2015-01-07 19:37:58 -06:00
run rustfmt on test/run-fail folder
2016-05-26 21:39:36 -05:00
fn
main
(
)
{
Box
::
new
(
panic!
(
)
)
;
}
Reference in New Issue
Copy Permalink