Skip to content

ICE when using deriving_eq with newtype and tuple structs #4624

Closed
@brendanzab

Description

@brendanzab
#[deriving_eq]
struct Foo(int);

fn main() {}
deriving_eq.rs:1:0: 2:6 error: internal compiler error: unimplemented unnamed fields with `deriving_eq`
deriving_eq.rs:1 #[deriving_eq]
deriving_eq.rs:2 struct Foo(int);

#[deriving_eq]
struct Foo<T>(T);

fn main() {}
deriving_eq.rs:1:0: 2:6 error: internal compiler error: unimplemented unnamed fields with `deriving_eq`
deriving_eq.rs:1 #[deriving_eq]
deriving_eq.rs:2 struct Foo<T>(T);

#[deriving_eq]
struct Foo(int,int);

fn main() {}
deriving_eq.rs:1:0: 2:6 error: internal compiler error: unimplemented unnamed fields with `deriving_eq`
deriving_eq.rs:1 #[deriving_eq]
deriving_eq.rs:2 struct Foo(int,int);

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frontendArea: Compiler frontend (errors, parsing and HIR)A-syntaxextArea: Syntax extensionsI-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions