You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #7131 it becomes useful to have access to a raw buffer which is the platform's representation of the path for passing to system APIs. I propose a with_platform_buffer() method which returns the appropriate raw buffer. On Windows this would be UTF-16, elsewhere it'd just be bytes.
This could avoid doing allocations in lowlevel APIs which directly pass paths to the system.
The text was updated successfully, but these errors were encountered:
Remove powi, "square can be computed more efficiently"
powi(2) produces exactly the same native code as x * x
powi was part of the [`suboptimal_flops`] lint
fixesrust-lang#7058
changelog: Remove powi [`suboptimal_flops`], "square can be computed more efficiently"
In #7131 it becomes useful to have access to a raw buffer which is the platform's representation of the path for passing to system APIs. I propose a with_platform_buffer() method which returns the appropriate raw buffer. On Windows this would be UTF-16, elsewhere it'd just be bytes.
This could avoid doing allocations in lowlevel APIs which directly pass paths to the system.
The text was updated successfully, but these errors were encountered: