File tree Expand file tree Collapse file tree 2 files changed +43
-0
lines changed Expand file tree Collapse file tree 2 files changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ // Copyright 2018 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+ // ignore-test Not a test. Used by issue-48508.rs
12+
13+ pub fn other ( ) -> f64 {
14+ let µ = 1.0 ;
15+ µ
16+ }
Original file line number Diff line number Diff line change 1+ // Copyright 2018 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+ // Regression test for issue #48508:
12+ //
13+ // Confusion between global and local file offsets caused incorrect handling of multibyte character
14+ // spans when compiling multiple files. One visible effect was an ICE generating debug information
15+ // when a multibyte character is at the end of a scope. The problematic code is actually in
16+ // issue-48508-aux.rs
17+
18+ // compile-flags:-g
19+
20+ #![ feature( non_ascii_idents) ]
21+
22+ #[ path = "issue-48508-aux.rs" ]
23+ mod other_file;
24+
25+ fn main ( ) {
26+ other_file:: other ( ) ;
27+ }
You can’t perform that action at this time.
0 commit comments