-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Program crashes with #[track_caller] applied to main() #75125
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
I made the false assumption that this was rustc crashing, but it's actually the binary that crashes upon running it. |
Cc @anp We probably just want to ban track caller on main (and maybe any lang item function?) |
@rustbot claim |
Same with #![feature(naked_functions)]
#[naked]
fn main() {
println!("hey");
} results in
edit: I think |
forbid `#[track_caller]` on main fixes rust-lang#75125 cc @anp
Assigning |
Uh oh!
There was an error while loading. Please reload this page.
Code
Meta
Crash occurs in both 1.46.0 beta and in current nightly.
rustc --version --verbose
:Error output
The text was updated successfully, but these errors were encountered: