File tree 2 files changed +9
-6
lines changed
compiler/rustc_parse/src/parser
2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -2954,10 +2954,12 @@ impl<'a> Parser<'a> {
2954
2954
err
2955
2955
}
2956
2956
2957
- /// This checks if this is a git diff marker, one of
2958
- /// >>>>>
2959
- /// =====
2960
- /// <<<<<
2957
+ /// This checks if this is a git diff marker, depending of the parameter passed.
2958
+ ///
2959
+ /// * `>>>>>`
2960
+ /// * `=====`
2961
+ /// * `<<<<<`
2962
+ ///
2961
2963
pub fn is_git_diff_marker ( & mut self , long_kind : & TokenKind , short_kind : & TokenKind ) -> bool {
2962
2964
( 0 ..3 ) . all ( |i| self . look_ahead ( i, |tok| tok == long_kind) )
2963
2965
&& self . look_ahead ( 3 , |tok| tok == short_kind)
Original file line number Diff line number Diff line change @@ -1690,8 +1690,9 @@ impl<'a> Parser<'a> {
1690
1690
}
1691
1691
1692
1692
/// This function parses the fields of record structs:
1693
- /// - struct S { ... }
1694
- /// - enum E { variant { ... } }
1693
+ ///
1694
+ /// - `struct S { ... }`
1695
+ /// - `enum E { Variant { ... } }`
1695
1696
pub ( crate ) fn parse_record_struct_body (
1696
1697
& mut self ,
1697
1698
adt_ty : & str ,
You can’t perform that action at this time.
0 commit comments