Closed Bug 1691287 Opened 3 years ago Closed 3 years ago

Remove needs_context=False from mako templates.

Categories

(Core :: CSS Parsing and Computation, task)

task

Tracking

()

RESOLVED FIXED
87 Branch
Tracking Status
firefox87 --- fixed

People

(Reporter: emilio, Assigned: emilio)

Details

Attachments

(1 file)

I was chatting with the assignee to bug 1688695, and they found a compile error which was fixed by removing needs_context=False from inherited_table.mako.rs.

This is needed to be able to call Foo::parse(input), where Foo is a keyword, in which case it generates impl Foo { pub fn parse(input) ... }.

But we can always call the Parse trait / two-argument version of it, so as to avoid the footgun in the first place.

It's only used to disambiguate between the one-argument and the trait
version of Keyword::parse. Instead, just explicitly use the trait
version, so that we don't need to specify it.

Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/786ed9df69ff
Remove the need for needs_context in the mako glue. r=boris
Attachment #9201669 - Attachment description: Bug 1691287 - Remove the need for needs_context in the mako glue. r=#style,#layout-reviewers → Bug 1691287 - Remove the need for needs_context in the mako glue. r=boris
Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9a5bcecbdf3f
Remove the need for needs_context in the mako glue. r=boris
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: