Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Panic with unmatched diagnostic pointing at unicode #250

Closed
Alexendoo opened this issue Jul 24, 2024 · 1 comment · Fixed by #251
Closed

Panic with unmatched diagnostic pointing at unicode #250

Alexendoo opened this issue Jul 24, 2024 · 1 comment · Fixed by #251

Comments

@Alexendoo
Copy link
Contributor

Add the following to tests/integrations/basic/tests/actual_tests:

#![deny(non_ascii_idents)]

fn main() {
    let 电脑 = 1;
}

It hits a panic

error: actual output differed from expected
Execute `cargo test` to update `tests/integrations/basic/Cargo.stderr` to the actual output
--- tests/integrations/basic/Cargo.stderr
+++ <stderr output>
+thread 'main' panicked at /home/gh-Alexendoo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/annotate-snippets-0.11.2/src/renderer/display_list.rs:LL:CC:
+byte index 10 is not a char boundary; it is inside '电' (bytes 8..11) of `    let 电脑 = 1;`
@oli-obk
Copy link
Owner

oli-obk commented Jul 24, 2024

Yea already created a fix for that yesterday, but it needs cleaning up 😆

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants