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
/
issue-12920.rs
7 lines
88 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:explicit panic
Add tests for a few A-needstest issues Closes #7813. Closes #10902. Closes #11374. Closes #11714. Closes #12920. Closes #13202. Closes #13624. Closes #14039. Closes #15730. Closes #15783.
2014-09-11 17:54:44 -05:00
pub
fn
main
(
)
{
run rustfmt on test/run-fail folder
2016-05-26 21:39:36 -05:00
panic!
(
)
;
println!
(
"
{}
"
,
1
)
;
Add tests for a few A-needstest issues Closes #7813. Closes #10902. Closes #11374. Closes #11714. Closes #12920. Closes #13202. Closes #13624. Closes #14039. Closes #15730. Closes #15783.
2014-09-11 17:54:44 -05:00
}
Reference in New Issue
Copy Permalink