Repository navigation
WIP: core::process::abort - #163922
WIP: core::process::abort#163922tgross35 wants to merge 4 commits into
core::process::abort#163922Conversation
Some tests may need access to the constants.
There has been discussion about possibly bringing `abort` into `core` with `abort_immediate` as a fallback. If this or other changes happen, we would want to make sure `abort` still raises SIGABRT. Since we don't seem to be asserting the exact exit behavior anywhere, add a test here.
This comment has been minimized.
This comment has been minimized.
|
The job Click to see the possible cause of the failure (guessed by this bot) |
| #[cold] | ||
| #[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces | ||
| pub fn abort() -> ! { | ||
| #[unsafe(no_mangle)] |
There was a problem hiding this comment.
| #[unsafe(no_mangle)] | |
| #[rustc_std_internal_symbol] |
all symbols defined by the standard library must be mangled to prevent conflicts when linking staticlibs produced by two versions of rustc together. Also this seems like something where an EII would make sense, though those aren't usable in the standard library yet. Also on MSVC weak linkage needs compiler assistance for linking dylibs like std.dll to not fail with an error. EII handles this already.
|
☔ The latest upstream changes (presumably #166230) made this pull request unmergeable. Please resolve the merge conflicts by rebasing. |
No description provided.