WIP: Use final to make Error::type_id un-overridable#153598
WIP: Use final to make Error::type_id un-overridable#153598mu001999 wants to merge 2 commits intorust-lang:mainfrom
final to make Error::type_id un-overridable#153598Conversation
|
r? @madsmtm rustbot has assigned @madsmtm. Use Why was this reviewer chosen?The reviewer was selected based on:
|
| #![feature(f16)] | ||
| #![feature(f128)] | ||
| #![feature(field_projections)] | ||
| #![feature(final_associated_functions)] |
There was a problem hiding this comment.
This PR uses
finalto makeError::type_idun-overridable and this should helps the stabilization ofError::type_id.
(Wouldn't that be publicly exposing unstable language surface via a stable API? Anyway, not a library reviewer)
There was a problem hiding this comment.
I don't think so, Error::type_id is not a stable API?
|
The job Click to see the possible cause of the failure (guessed by this bot) |
|
Well, current implementation of cc @joshtriplett, what do you think about this? Maybe we can make it in the vtable if it is dyn-compatible, but I think this may make the behavior of |
|
Not a library reviewer either: |
final to make Error::type_id un-overridablefinal to make Error::type_id un-overridable
Tracking: #60784
After #151783, we can declare
finalassoc functions. AndError::type_idis one motivation of RFC-3678. This PR usesfinalto makeError::type_idun-overridable and this should helps the stabilization ofError::type_id.