-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Formatting code is in conflict with unnamed_addr #58320
Copy link
Copy link
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.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.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.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.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
The code for passing arguments into format strings relies on equality of function pointers. This is in conflict with the fact that we set
unnamed_addron all functions.rust/src/libcore/fmt/mod.rs
Lines 295 to 301 in 618f5a0
It might be possible for a user to write a function that gets merged with
ArgumentV1::show_usize, and then cause bugs in the above code.@oli-obk @eddyb