diff options
| author | Felix S. Klock II <pnkfelix@pnkfx.org> | 2015-06-03 14:34:24 +0200 |
|---|---|---|
| committer | Felix S. Klock II <pnkfelix@pnkfx.org> | 2015-06-03 14:34:24 +0200 |
| commit | 01ddbe9f33f409a5274d36cd7f0609263eab4764 (patch) | |
| tree | e84764f94446c39e50c1c69c056d8819a7f980f6 | |
| parent | a5979be9fefe671fa81ec70720234602f8112bec (diff) | |
| download | rust-01ddbe9f33f409a5274d36cd7f0609263eab4764.tar.gz rust-01ddbe9f33f409a5274d36cd7f0609263eab4764.zip | |
Fix the dropck doc formatting to avoid hitting four-space indent.
This was causing `rustdoc` to interpret the part starting with `(A.) ...` as a code block based on its four-space indentation, which then was treated by `rustdoc` as a *Rust* code snippet, and thus was attempting (and failing) to parse my english as Rust code. Thus causing the compiler-docs build to fail. Independently, we should probably change `rustdoc` to not interpret four-space indents as code that needs to be tested; it seems too perilous to me at least. (But the formatting here needed to be changed either way.) cc Issue #25699.
| -rw-r--r-- | src/librustc_typeck/check/dropck.rs | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/librustc_typeck/check/dropck.rs b/src/librustc_typeck/check/dropck.rs index fd90d662bd1..28e48cb6f25 100644 --- a/src/librustc_typeck/check/dropck.rs +++ b/src/librustc_typeck/check/dropck.rs @@ -238,14 +238,12 @@ fn ensure_drop_predicates_are_implied_by_item_defn<'tcx>( /// Let `v` be some value (either temporary or named) and 'a be some /// lifetime (scope). If the type of `v` owns data of type `D`, where /// -/// (1.) `D` has a lifetime- or type-parametric Drop implementation, and -/// (2.) the structure of `D` can reach a reference of type `&'a _`, and -/// (3.) either: -/// -/// (A.) the Drop impl for `D` instantiates `D` at 'a directly, +/// * (1.) `D` has a lifetime- or type-parametric Drop implementation, and +/// * (2.) the structure of `D` can reach a reference of type `&'a _`, and +/// * (3.) either: +/// * (A.) the Drop impl for `D` instantiates `D` at 'a directly, /// i.e. `D<'a>`, or, -/// -/// (B.) the Drop impl for `D` has some type parameter with a +/// * (B.) the Drop impl for `D` has some type parameter with a /// trait bound `T` where `T` is a trait that has at least /// one method, /// |
