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

Ice on build after weird character fix. #93247

Closed
joachimm opened this issue Jan 23, 2022 · 3 comments
Closed

Ice on build after weird character fix. #93247

joachimm opened this issue Jan 23, 2022 · 3 comments
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@joachimm
Copy link

joachimm commented Jan 23, 2022

I got the below error when building locally,

Code

I haven't been able to minimize the code, in fact I cannot repeat the error despite making a git commit of the exact code when the error was occurring. If you think the code would help with investigating I can supply it, but I would rather not in its current state.

For context:
I had a compile issue due to junk characters that I accidentally inserted (I have a "kvm" switch, for my mouse/keyboard job/home computer setup, and it sometimes makes the keyboard output weird charachters after switching).

$> cargo run
   Compiling langservice v0.1.0 (/Users/joachimm/Projects/langservice)
error: unknown start of token: \u{b4}
   --> src/main.rs:103:45
    |
103 |     use std::collections::HashMap;ƒ         ´Ω
    |                                             ^
    |
help: Unicode character '´' (Acute Accent) looks like ''' (Single Quote), but it is not
    |
103 |     use std::collections::HashMap;ƒ         'Ω
    |                                             ~

error: expected one of `!` or `::`, found `Ω`
   --> src/main.rs:103:46
    |
103 |     use std::collections::HashMap;ƒ         ´Ω
    |                                              ^ expected one of `!` or `::`

error: could not compile `langservice` due to 2 previous errors

Meta

rustc --version --verbose:

rustc 1.57.0 (f1edd0429 2021-11-29)
binary: rustc
commit-hash: f1edd0429582dd29cccacaf50fd134b05593bd9c
commit-date: 2021-11-29
host: x86_64-apple-darwin
release: 1.57.0
LLVM version: 13.0.0```

### Error output

thread 'rustc' panicked at 'called Option::unwrap() on a None value', /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/compiler/rustc_hir/src/definitions.rs:452:14
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md

note: rustc 1.57.0 (f1edd04 2021-11-29) running on x86_64-apple-darwin

note: compiler flags: -C embed-bitcode=no -C split-debuginfo=unpacked -C debuginfo=2 -C incremental --crate-type bin

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
#0 [evaluate_obligation] evaluating trait selection obligation warp::filter::or::Or<impl warp::filter::Filter+core::clone::Clone, impl warp::filter::Filter+core::clone::Clone>: warp::filter::Filter
#1 [typeck] type-checking filters::routes
end of query stack



@joachimm joachimm added C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jan 23, 2022
@joachimm joachimm changed the title Ice on build if weird character fix. Ice on build after weird character fix. Jan 23, 2022
@canndrew
Copy link
Contributor

I just ran into this. Seems like a dupe of (at least) #93125, #93096, #93020 and #93013.

@Aaron1011
Copy link
Member

This should be fixed on the latest nightly

@workingjubilee
Copy link
Member

This is almost certainly a duplicate of this issue and was probably resolved in this PR:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

4 participants