]> git.lizzy.rs Git - rust.git/commit - src/tools/clippy
Rollup merge of #67909 - varkor:obsolete-const-print, r=davidtwco
authorYuki Okushi <huyuumi.dev@gmail.com>
Tue, 7 Jan 2020 04:46:08 +0000 (13:46 +0900)
committerGitHub <noreply@github.com>
Tue, 7 Jan 2020 04:46:08 +0000 (13:46 +0900)
commit318d6c259dd2a610ca70b89ca5a3ea073518a884
tree8445f11af1e9497bf9ed47f52a70a10fdf2cb16d
parentc07204b1d1eb9144c8be560a8f5d7f9aed0a5b79
parent8f94d9bb0828a2dfcc1dd3258de7775b9bae2cc8
Rollup merge of #67909 - varkor:obsolete-const-print, r=davidtwco

Fix ICE in const pretty printing and resolve FIXME

Consts now have a `fmt::Display` impl, so we can just use that to pretty-print.

This resolves an ICE in https://github.com/rust-lang/rust/issues/61936, though it hits more ICEs afterwards. I couldn't find a test case that was resolved by this that didn't hit errors later on.
src/librustc/ty/print/obsolete.rs