Skip to content

Remove vicious hack for runtime-calculated state-ness in derived type descriptors. #136

Closed
@froystig

Description

@froystig

See rust_crate_cache::get_type_desc, in particular the line

td->is_stateful |= descs[i]->is_stateful;

This is clearly not the correct way to decide whether the derived type is itself stateful.

It isn't clear whether this ought to be fixed as is or should remain open pending unsettled deliberations about the mutability system.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-runtimeArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflowsA-type-systemArea: Type system

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions