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-31 22:41:50 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
871ee18086
rust
/
tests
/
ui
/
inlined-main.rs
5 lines
44 B
Rust
Raw
Normal View
History
Unescape
Escape
tests: Add missing run-pass annotations
2019-07-26 21:54:25 +00:00
// run-pass
Ensure main() always has external linkage This ensures that the entry function is never elided due to inlining, even with `inline(always)`. Fixes #47783. There were a couple of possible ways of addressing this issue; I simply picked the one that seemed most direct. A warning could be appropriate, but considering using inlining hints in other places it doesn't apply also throws no warnings, and it seems like an edge case anyway, I haven't added one for now.
2018-02-25 23:05:06 +00:00
#[
inline(always)
]
fn
main
(
)
{
}
Reference in New Issue
Copy Permalink