Auto merge of #19613 - emilio:slotted-list, r=jdm

style: Workaround a likely valgrind false-positive.

<!-- 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/19613)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2017-12-20 17:08:30 -06:00 committed by GitHub
commit fd6847fd76

View file

@ -433,7 +433,13 @@ fn specific_bucket_for<'a>(
//
// So inserting `span` in the rule hash makes sense since we want to
// match the slotted <span>.
Component::Slotted(ref selector) => find_bucket(selector.iter()),
//
// FIXME(emilio, bug 1426516): The line below causes valgrind failures
// and it's probably a false positive, we should uncomment whenever
// jseward is back to confirm / whitelist it.
//
// Meanwhile taking the code path below is slower, but still correct.
// Component::Slotted(ref selector) => find_bucket(selector.iter()),
_ => Bucket::Universal
}
}