Skip to content

Unexpected Regression in Rust 1.47 for Custom Derives #77718

Closed
@mitsuhiko

Description

@mitsuhiko

This is a meta issue that the scroll crate changed behavior in 1.47 which broke the minidump crate. There is a pull request to the scroll crate to fix the issue here: m4b/scroll#75

There is also a repo with a repro case: https://github.com/mitsuhiko/rustc-147-macro-regression

I was surprised to see that a stable update to Rust would do this. Apparently macro expansion of array types in struct fields creates invisible type groups which were previously not emitted.

I'm not sure if this issue is valid but I figured I might surface it.

Meta

rustc --version --verbose:

rustc 1.47.0 (18bf6b4f0 2020-10-07)
binary: rustc
commit-hash: 18bf6b4f01a6feaf7259ba7cdae58031af1b7b39
commit-date: 2020-10-07
host: x86_64-apple-darwin
release: 1.47.0
LLVM version: 11.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-proc-macrosArea: Procedural macrosC-bugCategory: This is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions