-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Program crashes with #[track_caller] applied to main() #75125
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 |
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: