Closed Bug 1503031 Opened Last year Closed Last year

IDL parser doesn't convert IDL nsresult to Rust ::nserror:nsresult consistently

Categories

(Core :: XPCOM, enhancement)

enhancement
Not set

Tracking

()

RESOLVED FIXED
mozilla65
Tracking Status
firefox65 --- fixed

People

(Reporter: myk, Assigned: myk)

References

Details

Attachments

(1 file)

After bug 1496622, the IDL parser converts some references to `nsresult` in IDL files to `::nserror::nsresult` in IDL-generated Rust files.  But it doesn't convert others.  It should convert them all consistently.
After bug 1496622, the IDL parser converts some references to `nsresult` in IDL files to `::nserror::nsresult` in IDL-generated Rust files.  But it doesn't convert others.  It should convert them all consistently, and this patch makes it do so by adding conversion of the return type of attribute getters/setters and references generated by the IDL parser's Typedef class.

MozReview-Commit-ID: 838K8XGjvTx
Pushed by myk@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d3cb2102af01
use ::nserror::nsresult everywhere in IDL-generated Rust files r=froydnj
https://hg.mozilla.org/mozilla-central/rev/d3cb2102af01
Status: ASSIGNED → RESOLVED
Closed: Last year
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
You need to log in before you can comment on or make changes to this bug.