Skip to content

No error handling of binary/hexadecimal floating literals #4804

Closed
@lifthrasiir

Description

@lifthrasiir

Due to the lack of checking (i.e. right before libsyntax/parse/lexer.rs:434), the current lexer parses 0x12.3 as a synonym to 12.3 (!). Moreover 0xAA.5 triggers an assertion failure from APFloat. Tangentially related to issue #1433.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-parserArea: The lexing & parsing of Rust source code to an AST

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions