about summary refs log tree commit diff
path: root/library/std/src/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2021-02-20 20:37:00 +0100
committerGitHub <noreply@github.com>2021-02-20 20:37:00 +0100
commit2d39300e2fff5801bc3589c0ec8310f23d83962f (patch)
tree2018895b22ba541c6f4bfacb441ee24f406ca557 /library/std/src/sys/unix/stack_overflow.rs
parent39af0257411b89c93d8cdffeb26a8d58db72efa7 (diff)
parente90674574d21f8245716c0644b0c8aa2e1702b54 (diff)
downloadrust-2d39300e2fff5801bc3589c0ec8310f23d83962f.tar.gz
rust-2d39300e2fff5801bc3589c0ec8310f23d83962f.zip
Rollup merge of #82176 - RalfJung:mir-fn-ptr-pretty, r=oli-obk
fix MIR fn-ptr pretty-printing

An uninitialized function pointer would get printed as `{{uninit  fn()}` (notice the unbalanced parentheses), and a dangling fn ptr would ICE. This fixes both of that.

However, I have no idea how to add tests for this.

Also, I don't understand this MIR pretty-printing code. Somehow the print function `pretty_print_const_scalar` actually *returns* a transformed form of the const (but there is no doc comment explaining what is being returned); some match arms do `p!` while others do `self =`, and there's a wild mixture of `p!` and `write!`... all very mysterious and confusing.^^

r? ``@oli-obk``
Diffstat (limited to 'library/std/src/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions