-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Don't generate code for unused #[inline] function #36280
Copy link
Copy link
Closed
Labels
A-codegenArea: Code generationArea: Code generationI-compiletimeIssue: Problems and improvements with respect to compile times.Issue: Problems and improvements with respect to compile times.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-codegenArea: Code generationArea: Code generationI-compiletimeIssue: Problems and improvements with respect to compile times.Issue: Problems and improvements with respect to compile times.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
If a function or method is marked
#[inline]and it isn't actually called anywhere in that crate, then no code should be generated for it. This would save a lot of time on translation and LLVM passes for certain crates, such as winapi.@eddyb told me to open this issue. Blame him.