Skip to content
Permalink
Browse files

Auto merge of #24690 - federicomenaquintero:master, r=jdm

derive_common: Fix example in documentation

<!-- Please describe your changes on the following line: -->

The docstring for `propagate_clauses_to_output_type` has an indented chunk which is getting picked up as a doc-test.  It's not meant to compile, so just mark it as ignored.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [ ] `./mach build -d` does not report any errors
- [ ] `./mach test-tidy` does not report any errors
- [ ] These changes fix #___ (GitHub issue number if applicable)

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because ___

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
  • Loading branch information...
bors-servo committed Nov 8, 2019
2 parents 970f716 + a03bdc6 commit dfc4f0f061c2d0f877c851f1d820c613e28c3351
Showing with 2 additions and 0 deletions.
  1. +2 −0 components/derive_common/cg.rs
@@ -26,7 +26,9 @@ use synstructure::{self, BindStyle, BindingInfo, VariantAst, VariantInfo};
///
/// For example:
///
/// ```ignore
/// <T as ToComputedValue>::ComputedValue: Zero,
/// ```
///
/// This needs to run before adding other bounds to the type parameters.
pub fn propagate_clauses_to_output_type(

0 comments on commit dfc4f0f

Please sign in to comment.
You can’t perform that action at this time.