Skip to content

thread 'rustc' panicked at 'begin <= end (2 <= 1) when slicing r"' #70677

Closed
@dwrensha

Description

@dwrensha

On a recent commit (235938d, not yet on a nightly release), I'm seeing the following internal compiler error (found by fuzz-rustc):

$ echo -n 'r"' > main.rs
$ build/x86_64-unknown-linux-gnu/stage1/bin/rustc main.rs
thread 'rustc' panicked at 'begin <= end (2 <= 1) when slicing `r"`', /home/dwrensha/src/rust/src/libcore/str/mod.rs:1920:47
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/blob/master/CONTRIBUTING.md#bug-reports

note: rustc 1.44.0-dev running on x86_64-unknown-linux-gnu

Metadata

Metadata

Assignees

Labels

A-diagnosticsArea: Messages for errors, warnings, and lintsA-parserArea: The lexing & parsing of Rust source code to an ASTI-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️P-highHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions