about summary refs log tree commit diff
path: root/library/core/src/char/methods.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-11-05 20:10:52 +0100
committerGitHub <noreply@github.com>2024-11-05 20:10:52 +0100
commitaa4fe48afe5c2e9062d702e187b7cb366b5aa33e (patch)
tree9ebd6803a69d38577d9bb173a5cd390091457db1 /library/core/src/char/methods.rs
parentbb50ebfca41c76c2f0a105dcfb25286013da7834 (diff)
parent613f53ef19c94e461428dff1df3db7fe9bed5fb9 (diff)
downloadrust-aa4fe48afe5c2e9062d702e187b7cb366b5aa33e.tar.gz
rust-aa4fe48afe5c2e9062d702e187b7cb366b5aa33e.zip
Rollup merge of #132571 - RalfJung:const_eval_select_macro, r=oli-obk
add const_eval_select macro to reduce redundancy

I played around a bit with a macro to make const_eval_select invocations look a bit nicer and avoid repeating the argument lists. Here's what I got. What do you think?

I didn't apply this everywhere yet because I wanted to gather feedback first.

The second commit moves the macros from https://github.com/rust-lang/rust/pull/132542 into a more sensible place. It didn't seem worth its own PR and would conflict with this PR if done separately.

Cc ``@oli-obk`` ``@saethlin`` ``@tgross35``

try-job: dist-aarch64-msvc
Diffstat (limited to 'library/core/src/char/methods.rs')
-rw-r--r--library/core/src/char/methods.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/char/methods.rs b/library/core/src/char/methods.rs
index 701e34b135e..3915afb49d6 100644
--- a/library/core/src/char/methods.rs
+++ b/library/core/src/char/methods.rs
@@ -1,7 +1,7 @@
 //! impl char {}
 
 use super::*;
-use crate::macros::const_panic;
+use crate::panic::const_panic;
 use crate::slice;
 use crate::str::from_utf8_unchecked_mut;
 use crate::unicode::printable::is_printable;