Page MenuHomePhabricator

Bug 1501116 - Part 1: Add a special list for cbindgen types to avoid generating redundant rust types.
ClosedPublic

Authored by boris on Oct 30 2018, 9:44 PM.

Details

Summary

We will blacklist this type and add a module raw line to map the gecko
type to its rust type (as an alias).

Diff Detail

Repository
rMOZILLACENTRAL mozilla-central
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

boris created this revision.Oct 30 2018, 9:44 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 30 2018, 9:44 PM
phab-bot changed the visibility from "Custom Policy" to "Public (No Login Required)".Oct 30 2018, 9:44 PM
phab-bot changed the edit policy from "Custom Policy" to "Restricted Project (Project)".
phab-bot removed a project: Restricted Project.
boris requested review of this revision.Oct 30 2018, 9:44 PM
emilio accepted this revision.Oct 30 2018, 9:54 PM
emilio added inline comments.
servo/components/style/build_gecko.rs
398

Given you're only using the rightmost part of the name, you may want to just use gecko = "StyleComputedTimingFunction" instead of prefixing all of them with mozilla::. That can also be a followup patch if you want instead of rewriting all your patches separately. rs=me on that one.

This revision is now accepted and ready to land.Oct 30 2018, 9:54 PM
boris updated this revision to Diff 29832.Oct 30 2018, 9:56 PM

Revision updated.

boris marked an inline comment as done.Oct 30 2018, 9:58 PM
boris added inline comments.
servo/components/style/build_gecko.rs
398

OK. I will add one extra patch for this.

boris updated this revision to Diff 29934.Oct 31 2018, 6:19 AM
boris marked an inline comment as done.

Revision updated.

This revision was automatically updated to reflect the committed changes.