Skip to content

Commit 05a6043

Browse files
committed
Edited and re-arranged the new doc comment for #[test] fn offset_field_conflict.
1 parent f8d8095 commit 05a6043

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

pdg/src/info.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -950,12 +950,6 @@ mod test {
950950
/// *y = 2;
951951
/// ```
952952
///
953-
/// Note that this code is accepted by rustc, but we'd like to reject it because some of the
954-
/// transformations we plan to do will convert it to a form that rustc will reject.
955-
/// Specifically, if `p` were a function argument and we changed it from `&mut [_]` to
956-
/// something like `&mut Vec<_>` or a custom smart pointer type, rustc would reject the
957-
/// modified code.
958-
///
959953
/// ```text
960954
/// A
961955
/// +------.
@@ -968,6 +962,13 @@ mod test {
968962
/// X4 |
969963
/// Y4
970964
/// ```
965+
///
966+
/// Note that this code is accepted by `rustc`,
967+
/// but we'd like to reject it because some of the transformations we plan to do
968+
/// will convert it to a form that `rustc` will reject.
969+
/// Specifically, if `p` were a function argument and we changed it
970+
/// from `&mut [_]` to something like `&mut Vec<_>` or a custom smart pointer type,
971+
/// `rustc` would reject the modified code.
971972
#[test]
972973
fn offset_field_conflict() {
973974
let mut g = Graph::default();

0 commit comments

Comments
 (0)