make nsresult a real type with a real Display implementation

RESOLVED FIXED in Firefox 68

Status

()

enhancement
RESOLVED FIXED
8 months ago
5 months ago

People

(Reporter: myk, Assigned: Nika)

Tracking

unspecified
mozilla68
Points:
---

Firefox Tracking Flags

(firefox68 fixed)

Details

Attachments

(1 attachment)

Per Nika in https://phabricator.services.mozilla.com/D6328, with recent(ish) changes to rust, it should be possible to make nsresult a real type with a real Display implementation.  And that would enable us to avoid workarounds like storing an nsCString describing an nsresult in a Rust enum of error types (which I'm doing in bug 1490496).

So we should make nsresult a real type and give it a real Display implementation.
Pushed by nlayzell@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/40425ded3bad
Add a Display impl to nsresult, r=froydnj
Status: NEW → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
You need to log in before you can comment on or make changes to this bug.