Auto merge of #132251 - jieyouxu:rollup-mtv9mpd, r=jieyouxu · qinheping/verify-rust-std@848fcd5 (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit 848fcd5

File tree

1 file changed

lines changed

1 file changed

lines changed

Lines changed: 2 additions & 1 deletion

Original file line number Diff line number Diff line change
@@ -320,8 +320,9 @@ impl char {
320 320 /// '1'.is_digit(37);
321 321 /// ```
322 322 #[stable(feature = "rust1", since = "1.0.0")]
323 +#[rustc_const_unstable(feature = "const_char_is_digit", issue = "132241")]
323 324 #[inline]
324 -pub fn is_digit(self, radix: u32) -> bool {
325 +pub const fn is_digit(self, radix: u32) -> bool {
325 326 self.to_digit(radix).is_some()
326 327 }
327 328