diff options
| author | Ben Kimock <kimockb@gmail.com> | 2025-09-18 10:48:18 -0400 |
|---|---|---|
| committer | Ben Kimock <kimockb@gmail.com> | 2025-09-21 13:12:20 -0400 |
| commit | df58fd8cf7710f7516c541769a141f0235978dab (patch) | |
| tree | 01fb95a4eb0082b53f0e0f833d8a2fd507b54385 /library/core/src/str/mod.rs | |
| parent | 888679013d1f424adef06267f3630069b4cabd40 (diff) | |
| download | rust-df58fd8cf7710f7516c541769a141f0235978dab.tar.gz rust-df58fd8cf7710f7516c541769a141f0235978dab.zip | |
Change the cfg to a dash
Diffstat (limited to 'library/core/src/str/mod.rs')
| -rw-r--r-- | library/core/src/str/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/str/mod.rs b/library/core/src/str/mod.rs index 910ea2948ee..2e473d348b0 100644 --- a/library/core/src/str/mod.rs +++ b/library/core/src/str/mod.rs @@ -64,12 +64,12 @@ pub use validations::{next_code_point, utf8_char_width}; #[cold] #[track_caller] #[rustc_allow_const_fn_unstable(const_eval_select)] -#[cfg(not(panic = "immediate_abort"))] +#[cfg(not(panic = "immediate-abort"))] const fn slice_error_fail(s: &str, begin: usize, end: usize) -> ! { crate::intrinsics::const_eval_select((s, begin, end), slice_error_fail_ct, slice_error_fail_rt) } -#[cfg(panic = "immediate_abort")] +#[cfg(panic = "immediate-abort")] const fn slice_error_fail(s: &str, begin: usize, end: usize) -> ! { slice_error_fail_ct(s, begin, end) } |
