File tree Expand file tree Collapse file tree 2 files changed +27
-2
lines changed
Expand file tree Collapse file tree 2 files changed +27
-2
lines changed Original file line number Diff line number Diff line change @@ -634,8 +634,12 @@ fn indented_line_kind(
634634 return IndentedLineKind :: Code ( spaces) ;
635635 }
636636
637- let digits = line. bytes ( ) . take_while ( u8:: is_ascii_digit) . count ( ) ;
638- let spaces = line[ digits..] . bytes ( ) . take_while ( |b| * b == b' ' ) . count ( ) ;
637+ let mut spaces = line. bytes ( ) . take_while ( is_space) . count ( ) ;
638+ let digits = line[ spaces..]
639+ . bytes ( )
640+ . take_while ( u8:: is_ascii_digit)
641+ . count ( ) ;
642+ spaces += line[ spaces + digits..] . bytes ( ) . take_while ( is_space) . count ( ) ;
639643 let rest = & line[ digits + spaces..] ;
640644 if spaces > 0
641645 && ( rest == "|"
Original file line number Diff line number Diff line change 1+ test_normalize ! {
2+ INPUT ="tests/ui-testing-optout.rs"
3+ "
4+ error[E0412]: cannot find type `F` in this scope
5+ --> $DIR/ui-testing-optout.rs:92:10
6+ |
7+ 4 | type A = B;
8+ | ----------- similarly named type alias `A` defined here
9+ ...
10+ 92 | type E = F;
11+ | ^ help: a type alias with a similar name exists: `A`
12+ " "
13+ error[E0412]: cannot find type `F` in this scope
14+ --> $DIR/ui-testing-optout.rs:92:10
15+ |
16+ 4 | type A = B;
17+ | ----------- similarly named type alias `A` defined here
18+ ...
19+ 92 | type E = F;
20+ | ^ help: a type alias with a similar name exists: `A`
21+ " }
You can’t perform that action at this time.
0 commit comments