Skip to content

assertion failure while compiling code with multibytes characters #11178

Closed
@youknowone

Description

@youknowone

by @klutzy, this is related to #4780

test code:

I used 2 files

a.rs

a아b희c방d맣e희f

b.rs

mod a;

error

$ rustc b.rs 
task 'rustc' failed at 'assertion failed: bpos == mbc.pos || bpos.to_uint() >= mbc.pos.to_uint() + mbc.bytes', /Users/youknowone/Projects/rust/src/libsyntax/codemap.rs:479
task '<main>' failed at 'explicit failure', /Users/youknowone/Projects/rust/src/librustc/lib.rs:441

rustc version is d2a4a10

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsI-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