Skip to content

Commit 01ddbe9

Browse files
committed
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 rust-lang#25699.
1 parent a5979be commit 01ddbe9

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/librustc_typeck/check/dropck.rs

+5-7
Original file line numberDiff line numberDiff line change
@@ -238,14 +238,12 @@ fn ensure_drop_predicates_are_implied_by_item_defn<'tcx>(
238238
/// Let `v` be some value (either temporary or named) and 'a be some
239239
/// lifetime (scope). If the type of `v` owns data of type `D`, where
240240
///
241-
/// (1.) `D` has a lifetime- or type-parametric Drop implementation, and
242-
/// (2.) the structure of `D` can reach a reference of type `&'a _`, and
243-
/// (3.) either:
244-
///
245-
/// (A.) the Drop impl for `D` instantiates `D` at 'a directly,
241+
/// * (1.) `D` has a lifetime- or type-parametric Drop implementation, and
242+
/// * (2.) the structure of `D` can reach a reference of type `&'a _`, and
243+
/// * (3.) either:
244+
/// * (A.) the Drop impl for `D` instantiates `D` at 'a directly,
246245
/// i.e. `D<'a>`, or,
247-
///
248-
/// (B.) the Drop impl for `D` has some type parameter with a
246+
/// * (B.) the Drop impl for `D` has some type parameter with a
249247
/// trait bound `T` where `T` is a trait that has at least
250248
/// one method,
251249
///

0 commit comments

Comments
 (0)