You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
panic_implementation: Error message talks about the panic_impl lang item when missing #51341
error: language item required, but not found: `panic_impl`
Instead it should probably mention that a panic_implementation function is missing.
Edit: Seems like I didn't read it carefully enough. The error message doesn't mention the old panic_fmt language item, but a new panic_impl language item. Either way, a error message mentioning the panic_implementation attribute would be better.
changed the title [-]panic_implementation: Error message still talks about the panic_fmt lang item when missing[/-][+]panic_implementation: Error message talks about the panic_impl lang item when missing[/+]on Jun 4, 2018
Under the hood we have replaced the old panic_fmt with a new panic_impl lang item but this is an implementation detail of #[panic_implementation]. I think we can special case the error message for missing panic_impl to, instead, mention #[panic_implementation] but, off the top of my head, I don't know where that would be in the code base.
Activity
[-]panic_implementation: Error message still talks about the panic_fmt lang item when missing[/-][+]panic_implementation: Error message talks about the panic_impl lang item when missing[/+]japaric commentedon Jun 4, 2018
Under the hood we have replaced the old
panic_fmtwith a newpanic_impllang item but this is an implementation detail of#[panic_implementation]. I think we can special case the error message for missingpanic_implto, instead, mention#[panic_implementation]but, off the top of my head, I don't know where that would be in the code base.improve the error message when `#[panic_implementation]` is missing
Rollup merge of rust-lang#51921 - japaric:panic-impl-error, r=nagisa
Rollup merge of rust-lang#51921 - japaric:panic-impl-error, r=nagisa
Rollup merge of rust-lang#51921 - japaric:panic-impl-error, r=nagisa