rust/src/libcore/fmt
Mark Rousskov f6bfdc9544 Move the show_usize marker function to a static
Currently, function items are always tagged unnamed_addr, which means that
casting a function to a function pointer is not guaranteed to produce a
deterministic address. However, once a function pointer is created, we do expect
that to remain stable. So, this changes the show_usize function to a static
containing a function pointer and uses that for comparisons.

Notably, a *static* may have 'unstable' address, but the function pointer within
it must be constant.

Resolves issue 58320.
2020-02-17 09:18:33 -05:00
..
rt Drop cfg(bootstrap) code 2020-01-31 12:31:09 -05:00
builders.rs stabilize the debug_map_key_value feature 2020-01-28 11:15:22 +10:00
float.rs Drop unused argument to float functions 2020-02-17 09:18:33 -05:00
mod.rs Move the show_usize marker function to a static 2020-02-17 09:18:33 -05:00
num.rs Formatter::sign is &'static str 2020-02-15 18:17:51 -05:00