File tree 5 files changed +55
-1
lines changed
5 files changed +55
-1
lines changed Original file line number Diff line number Diff line change @@ -311,7 +311,9 @@ impl EmitterWriter {
311
311
if line. annotations . len ( ) == 1 {
312
312
if let Some ( ref ann) = line. annotations . get ( 0 ) {
313
313
if let AnnotationType :: MultilineStart ( depth) = ann. annotation_type {
314
- if source_string[ 0 ..ann. start_col ] . trim ( ) == "" {
314
+ if source_string. chars ( )
315
+ . take ( ann. start_col )
316
+ . all ( |c| c. is_whitespace ( ) ) {
315
317
let style = if ann. is_primary {
316
318
Style :: UnderlinePrimary
317
319
} else {
Original file line number Diff line number Diff line change
1
+ // Copyright 2017 The Rust Project Developers. See the COPYRIGHT
2
+ // file at the top-level directory of this distribution and at
3
+ // http://rust-lang.org/COPYRIGHT.
4
+ //
5
+ // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6
+ // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7
+ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8
+ // option. This file may not be copied, modified, or distributed
9
+ // except according to those terms.
10
+
11
+ #![ feature( non_ascii_idents) ]
12
+
13
+ pub fn main ( ) { }
14
+
15
+ fn საჭმელად_გემრიელი_სადილი ( ) -> isize {
16
+ }
Original file line number Diff line number Diff line change
1
+ error[E0308]: mismatched types
2
+ --> $DIR/issue-44023.rs:15:42
3
+ |
4
+ 15 | fn საჭმელად_გემრიელი_სადილი ( ) -> isize {
5
+ | __________________________________________^
6
+ 16 | | }
7
+ | |_^ expected isize, found ()
8
+ |
9
+ = note: expected type `isize`
10
+ found type `()`
11
+
12
+ error: aborting due to previous error
13
+
Original file line number Diff line number Diff line change
1
+ // Copyright 2017 The Rust Project Developers. See the COPYRIGHT
2
+ // file at the top-level directory of this distribution and at
3
+ // http://rust-lang.org/COPYRIGHT.
4
+ //
5
+ // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6
+ // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7
+ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8
+ // option. This file may not be copied, modified, or distributed
9
+ // except according to those terms.
10
+
11
+ fn main ( ) {
12
+ "😊" ";
13
+ }
Original file line number Diff line number Diff line change
1
+ error: unterminated double quote string
2
+ --> $DIR/issue-44078.rs:12:8
3
+ |
4
+ 12 | "😊"";
5
+ | ________^
6
+ 13 | | }
7
+ | |__^
8
+
9
+ error: aborting due to previous error
10
+
You can’t perform that action at this time.
0 commit comments