File tree 1 file changed +7
-6
lines changed
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -950,12 +950,6 @@ mod test {
950
950
/// *y = 2;
951
951
/// ```
952
952
///
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
- ///
959
953
/// ```text
960
954
/// A
961
955
/// +------.
@@ -968,6 +962,13 @@ mod test {
968
962
/// X4 |
969
963
/// Y4
970
964
/// ```
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.
971
972
#[ test]
972
973
fn offset_field_conflict ( ) {
973
974
let mut g = Graph :: default ( ) ;
You can’t perform that action at this time.
0 commit comments