Auto merge of #132251 - jieyouxu:rollup-mtv9mpd, r=jieyouxu · qinheping/verify-rust-std@848fcd5 (original) (raw)
Navigation Menu
- GitHub Copilot Write better code with AI
- GitHub Models New Manage and compare prompts
- GitHub Advanced Security Find and fix vulnerabilities
- Actions Automate any workflow
- Codespaces Instant dev environments
- Issues Plan and track work
- Code Review Manage code changes
- Discussions Collaborate outside of code
- Code Search Find more, search less
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
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 |