about summary refs log tree commit diff
path: root/compiler/rustc_hir/src/stable_hash_impls.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-12-23 05:17:47 +0000
committerbors <bors@rust-lang.org>2021-12-23 05:17:47 +0000
commit390bb3406d6c15894139830f6a30e16a1e92053f (patch)
treeef55f51217ce91692b2555ba53f6530be5f6e961 /compiler/rustc_hir/src/stable_hash_impls.rs
parent5aa0239b169e9f45a9b5af1e989821b9b69bc9a2 (diff)
parent22c4160c76a660e43f6a36149916c46a89aff7d3 (diff)
downloadrust-390bb3406d6c15894139830f6a30e16a1e92053f.tar.gz
rust-390bb3406d6c15894139830f6a30e16a1e92053f.zip
Auto merge of #92155 - m-ou-se:panic-fn, r=eddyb
Use panic() instead of panic!() in some places in core.

See https://github.com/rust-lang/rust/pull/92068 and https://github.com/rust-lang/rust/pull/92140.

This avoids the `panic!()` macro in a few potentially hot paths. This becomes more relevant when switching `core` to Rust 2021, as it'll avoid format_args!() and save some compilation time. (It doesn't make a huge difference, but still.) (Also the errors in const panic become slightly nicer.)
Diffstat (limited to 'compiler/rustc_hir/src/stable_hash_impls.rs')
0 files changed, 0 insertions, 0 deletions