This website requires JavaScript.
Explore
Help
Sign In
nordic-dev.net
/
rust
Watch
2
Star
0
Fork
0
You've already forked rust
mirror of
https://github.com/rust-lang/rust.git
synced
2024-10-30 22:12:15 +00:00
Code
Issues
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 18:07:33 +00: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 22:54:44 +00:00
pub
fn
main
(
)
{
run rustfmt on test/run-fail folder
2016-05-27 02:39:36 +00: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 22:54:44 +00:00
}
Reference in New Issue
Copy Permalink