We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1bbb915 commit 073fc56Copy full SHA for 073fc56
library/core/src/fmt/mod.rs
@@ -471,7 +471,7 @@ impl<'a> Arguments<'a> {
471
#[stable(feature = "fmt_as_str", since = "1.52.0")]
472
#[rustc_const_unstable(feature = "const_arguments_as_str", issue = "103900")]
473
#[must_use]
474
- #[inline]
+ #[inline(always)]
475
pub const fn as_str(&self) -> Option<&'static str> {
476
if self.num_parts.get() == 1 {
477
// SAFETY: With num_parts == 1, the `parts` field stores just the string.
library/core/src/num/nonzero.rs
@@ -87,7 +87,7 @@ macro_rules! nonzero_integers {
87
88
/// Returns the value as a primitive type.
89
#[$stability]
90
91
#[rustc_const_stable(feature = "const_nonzero_get", since = "1.34.0")]
92
pub const fn get(self) -> $Int {
93
self.0
0 commit comments