@@ -19,7 +19,7 @@ pub struct Placeholder {
19
19
}
20
20
21
21
impl Placeholder {
22
- #[ inline( always ) ]
22
+ #[ inline]
23
23
pub const fn new (
24
24
position : usize ,
25
25
fill : char ,
@@ -95,7 +95,7 @@ pub struct Argument<'a> {
95
95
96
96
#[ rustc_diagnostic_item = "ArgumentMethods" ]
97
97
impl Argument < ' _ > {
98
- #[ inline( always ) ]
98
+ #[ inline]
99
99
fn new < ' a , T > ( x : & ' a T , f : fn ( & T , & mut Formatter < ' _ > ) -> Result ) -> Argument < ' a > {
100
100
Argument {
101
101
// INVARIANT: this creates an `ArgumentType<'a>` from a `&'a T` and
@@ -109,47 +109,47 @@ impl Argument<'_> {
109
109
}
110
110
}
111
111
112
- #[ inline( always ) ]
112
+ #[ inline]
113
113
pub fn new_display < T : Display > ( x : & T ) -> Argument < ' _ > {
114
114
Self :: new ( x, Display :: fmt)
115
115
}
116
- #[ inline( always ) ]
116
+ #[ inline]
117
117
pub fn new_debug < T : Debug > ( x : & T ) -> Argument < ' _ > {
118
118
Self :: new ( x, Debug :: fmt)
119
119
}
120
- #[ inline( always ) ]
120
+ #[ inline]
121
121
pub fn new_debug_noop < T : Debug > ( x : & T ) -> Argument < ' _ > {
122
122
Self :: new ( x, |_, _| Ok ( ( ) ) )
123
123
}
124
- #[ inline( always ) ]
124
+ #[ inline]
125
125
pub fn new_octal < T : Octal > ( x : & T ) -> Argument < ' _ > {
126
126
Self :: new ( x, Octal :: fmt)
127
127
}
128
- #[ inline( always ) ]
128
+ #[ inline]
129
129
pub fn new_lower_hex < T : LowerHex > ( x : & T ) -> Argument < ' _ > {
130
130
Self :: new ( x, LowerHex :: fmt)
131
131
}
132
- #[ inline( always ) ]
132
+ #[ inline]
133
133
pub fn new_upper_hex < T : UpperHex > ( x : & T ) -> Argument < ' _ > {
134
134
Self :: new ( x, UpperHex :: fmt)
135
135
}
136
- #[ inline( always ) ]
136
+ #[ inline]
137
137
pub fn new_pointer < T : Pointer > ( x : & T ) -> Argument < ' _ > {
138
138
Self :: new ( x, Pointer :: fmt)
139
139
}
140
- #[ inline( always ) ]
140
+ #[ inline]
141
141
pub fn new_binary < T : Binary > ( x : & T ) -> Argument < ' _ > {
142
142
Self :: new ( x, Binary :: fmt)
143
143
}
144
- #[ inline( always ) ]
144
+ #[ inline]
145
145
pub fn new_lower_exp < T : LowerExp > ( x : & T ) -> Argument < ' _ > {
146
146
Self :: new ( x, LowerExp :: fmt)
147
147
}
148
- #[ inline( always ) ]
148
+ #[ inline]
149
149
pub fn new_upper_exp < T : UpperExp > ( x : & T ) -> Argument < ' _ > {
150
150
Self :: new ( x, UpperExp :: fmt)
151
151
}
152
- #[ inline( always ) ]
152
+ #[ inline]
153
153
pub fn from_usize ( x : & usize ) -> Argument < ' _ > {
154
154
Argument { ty : ArgumentType :: Count ( * x) }
155
155
}
@@ -164,7 +164,7 @@ impl Argument<'_> {
164
164
// it here is an explicit CFI violation.
165
165
#[ allow( inline_no_sanitize) ]
166
166
#[ no_sanitize( cfi, kcfi) ]
167
- #[ inline( always ) ]
167
+ #[ inline]
168
168
pub ( super ) unsafe fn fmt ( & self , f : & mut Formatter < ' _ > ) -> Result {
169
169
match self . ty {
170
170
// SAFETY:
@@ -180,7 +180,7 @@ impl Argument<'_> {
180
180
}
181
181
}
182
182
183
- #[ inline( always ) ]
183
+ #[ inline]
184
184
pub ( super ) fn as_usize ( & self ) -> Option < usize > {
185
185
match self . ty {
186
186
ArgumentType :: Count ( count) => Some ( count) ,
@@ -198,7 +198,7 @@ impl Argument<'_> {
198
198
/// let f = format_args!("{}", "a");
199
199
/// println!("{f}");
200
200
/// ```
201
- #[ inline( always ) ]
201
+ #[ inline]
202
202
pub fn none ( ) -> [ Self ; 0 ] {
203
203
[ ]
204
204
}
@@ -215,7 +215,7 @@ pub struct UnsafeArg {
215
215
impl UnsafeArg {
216
216
/// See documentation where `UnsafeArg` is required to know when it is safe to
217
217
/// create and use `UnsafeArg`.
218
- #[ inline( always ) ]
218
+ #[ inline]
219
219
pub unsafe fn new ( ) -> Self {
220
220
Self { _private : ( ) }
221
221
}
0 commit comments