mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Add back an assertion
This commit is contained in:
parent
63fd643d72
commit
dfd2cef0d0
2 changed files with 3 additions and 2 deletions
|
@ -192,7 +192,9 @@ fn convert_tokens<C: TokenConvertor>(conv: &mut C) -> tt::Subtree {
|
|||
continue;
|
||||
}
|
||||
let tt = if kind.is_punct() && kind != UNDERSCORE {
|
||||
// assert_eq!(range.len(), TextSize::of('.'));
|
||||
if synth_id.is_none() {
|
||||
assert_eq!(range.len(), TextSize::of('.'));
|
||||
}
|
||||
|
||||
if let Some(delim) = subtree.delimiter {
|
||||
let expected = match delim.kind {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue