Auto merge of #17197 - bholley:nonzero_arc, r=Manishearth

Force the NonZero optimization for servo_arc and StrongRuleNode

https://bugzilla.mozilla.org/show_bug.cgi?id=1370711

Also addressing followup feedback from https://bugzilla.mozilla.org/show_bug.cgi?id=1370107

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/17197)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2017-06-06 22:42:42 -07:00 committed by GitHub
commit ffc47e89b3
7 changed files with 142 additions and 88 deletions

View file

@ -11,7 +11,7 @@ use std::ptr;
use stylearc::Arc;
/// Indicates that a given Servo type has a corresponding Gecko FFI type.
pub unsafe trait HasFFI : Sized {
pub unsafe trait HasFFI : Sized + 'static {
/// The corresponding Gecko type that this rust type represents.
///
/// See the examples in `components/style/gecko/conversions.rs`.