mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Fix parsing <= in type_args
This commit is contained in:
parent
c4dfced1f8
commit
444a119220
4 changed files with 29 additions and 6 deletions
|
@ -410,6 +410,7 @@ fn try_expr(p: &mut Parser, lhs: CompletedMarker) -> CompletedMarker {
|
|||
// 82 as i32;
|
||||
// 81 as i8 + 1;
|
||||
// 79 as i16 - 1;
|
||||
// 0x36 as u8 <= 0x37;
|
||||
// }
|
||||
fn cast_expr(p: &mut Parser, lhs: CompletedMarker) -> CompletedMarker {
|
||||
assert!(p.at(AS_KW));
|
||||
|
|
|
@ -8,6 +8,7 @@ pub(super) fn opt_type_arg_list(p: &mut Parser, colon_colon_required: bool) {
|
|||
p.bump();
|
||||
p.bump();
|
||||
}
|
||||
(false, L_ANGLE, EQ) => return,
|
||||
(false, L_ANGLE, _) => {
|
||||
m = p.start();
|
||||
p.bump();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue