Skip to content

ICE: Found a push without a pop / Span must not be empty and have no suggestion  #104897

Closed
@matthiaskrgr

Description

@matthiaskrgr

Code

// Tests that the compiler does not try to create a span
// which points in the middle of a multibyte character.

fn f(){(print!(á

note: no newline at end of code

Meta

rustc --version --verbose:

8a75c5a9b5d9c48aa576b08faf735b926d0d9a71

Error output

error: this file contains an unclosed delimiter
 --> ./icemaker_87924.rs:4:17
  |
4 | fn f(){(print!(á
  |       --      - ^
  |       ||      |
  |       ||      unclosed delimiter
  |       |unclosed delimiter
  |       unclosed delimiter

error: format argument must be a string literal
 --> ./icemaker_87924.rs:4:16
  |
4 | fn f(){(print!(á
  |                ^
  |
help: you might be missing a string literal to format with
  |
4 | fn f(){(print!("{}", á
  |                +++++

Metadata

Metadata

Assignees

Labels

C-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.requires-debug-assertionsThis issue requires a build of rustc or tooling with debug-assertions in some way

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions