Skip to content

#102750 regresses layout size of Cow<> #105371

Closed
@emilio

Description

@emilio
    assert_eq!(std::mem::size_of::<std::borrow::Cow<'static, str>>(), 24);

Passes on stable and beta but not on Nightly.

I bisected it, results below which point to #102750:

searched nightlies: from nightly-2022-10-20 to nightly-2022-12-06
regressed nightly: nightly-2022-11-24
searched commit range: ff8c8df...70f8737
regressed commit: 4e0d0d7

bisected with cargo-bisect-rustc v0.6.5

Host triple: x86_64-unknown-linux-gnu
Reproduce with:

cargo bisect-rustc --start 2022-10-20 

@rustbot modify labels: +regression-from-stable-to-nightly -regression-untriaged

cc: @nnethercote @the8472 @wesleywiser

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.P-mediumMedium priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions