File tree 2 files changed +9
-2
lines changed
components/script/dom/bindings/codegen
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -2278,7 +2278,14 @@ def define(self):
2278
2278
return """\
2279
2279
static INTERFACE_OBJECT_CLASS: NonCallbackInterfaceObjectClass =
2280
2280
NonCallbackInterfaceObjectClass::new(
2281
- &%(constructorBehavior)s,
2281
+ {
2282
+ // Intermediate `const` because as of nightly-2018-10-05,
2283
+ // rustc is conservative in promotion to `'static` of the return values of `const fn`s:
2284
+ // https://github.com/rust-lang/rust/issues/54846
2285
+ // https://github.com/rust-lang/rust/pull/53851
2286
+ const BEHAVIOR: InterfaceConstructorBehavior = %(constructorBehavior)s;
2287
+ &BEHAVIOR
2288
+ },
2282
2289
%(representation)s,
2283
2290
PrototypeList::ID::%(id)s,
2284
2291
%(depth)s);
Original file line number Diff line number Diff line change 1
- nightly-2018-08-29
1
+ nightly-2018-10-05
You can’t perform that action at this time.
0 commit comments