Skip to content

ICE when missing $ in front of a fluent variable #103539

Closed
@oli-obk

Description

@oli-obk

I tried this code:

the_slug =
    foo bar {boo} beep bop

I expected to see this happen: an error telling me {boo} needs to be {$boo}

Instead, this happened:

thread 'rustc' panicked at 'identifier: "hir_analysis_const_impl_for_non_const_trait", attr: Some("suggestion"), args: FluentArgs([("trait_name", String("A"))]), errors: [ResolverError(Reference(Message { id: "trait_name", attribute: None }))]', compiler/rustc_errors/src/translation.rs:105:17

Metadata

Metadata

Assignees

Labels

A-translationArea: Translation infrastructure, and migrating existing diagnostics to SessionDiagnosticC-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions