-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Closed
Labels
A-codegenArea: Code generationArea: Code generationA-linkageArea: linking into static, shared libraries and binariesArea: linking into static, shared libraries and binaries
Description
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
Labels
A-codegenArea: Code generationArea: Code generationA-linkageArea: linking into static, shared libraries and binariesArea: linking into static, shared libraries and binaries