Closed Bug 1513350 Opened 7 years ago Closed 7 years ago

make nsresult a real type with a real Display implementation

Categories

(Core :: XPCOM, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla68
Tracking Status
firefox68 --- fixed

People

(Reporter: myk, Assigned: nika)

Details

Attachments

(1 file)

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: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
Assignee: nobody → nika
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: