Skip to content

Disable automatic inlining of resource dtors and other things #2177

Closed
@nikomatsakis

Description

@nikomatsakis

Right now, resource destructors seem to always be inlined. This recently led to #2170 because the reachability map was incorrect. I fixed this the wrong way: by marking all resource bodies as reachable. The right fix seems to me to be not inlining resource bodies by default, but that change seemed a bit more involved. In particular, I wanted to check with @marijnh whether resources are being inlined intentionally? If so, is there a deep reason for that?

In general I'd like to be able to say that "no user-specified code is inlined unless either generic or marked #[inline]".

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-codegenArea: Code generationA-linkageArea: linking into static, shared libraries and binaries

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions