File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
collector/benchmarks/script-servo/components/script/dom/bindings Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -2158,7 +2158,14 @@ def define(self):
2158
2158
return """\
2159
2159
static INTERFACE_OBJECT_CLASS: NonCallbackInterfaceObjectClass =
2160
2160
NonCallbackInterfaceObjectClass::new(
2161
- &%(constructorBehavior)s,
2161
+ {
2162
+ // Intermediate `const` because as of nightly-2018-10-05,
2163
+ // rustc is conservative in promotion to `'static` of the return values of `const fn`s:
2164
+ // https://github.com/rust-lang/rust/issues/54846
2165
+ // https://github.com/rust-lang/rust/pull/53851
2166
+ const BEHAVIOR: InterfaceConstructorBehavior = %(constructorBehavior)s;
2167
+ &BEHAVIOR
2168
+ },
2162
2169
%(representation)s,
2163
2170
PrototypeList::ID::%(id)s,
2164
2171
%(depth)s);
Original file line number Diff line number Diff line change @@ -432,13 +432,6 @@ unsafe impl<A, B> JSTraceable for fn(A) -> B {
432
432
}
433
433
}
434
434
435
- unsafe impl < ' a , A , B > JSTraceable for fn ( & A ) -> B {
436
- #[ inline]
437
- unsafe fn trace ( & self , _: * mut JSTracer ) {
438
- // Do nothing
439
- }
440
- }
441
-
442
435
unsafe impl < T > JSTraceable for IpcSender < T > where T : for < ' de > Deserialize < ' de > + Serialize {
443
436
#[ inline]
444
437
unsafe fn trace ( & self , _: * mut JSTracer ) {
You can’t perform that action at this time.
0 commit comments