@@ -183,23 +183,23 @@ macro_rules! template {
183
183
}
184
184
185
185
macro_rules! ungated {
186
- ( $attr: ident, $typ: expr, $tpl: expr, $duplicates: expr, $encode_cross_crate: expr $( , ) ?) => {
186
+ ( unsafe $attr: ident, $typ: expr, $tpl: expr, $duplicates: expr, $encode_cross_crate: expr $( , ) ?) => {
187
187
BuiltinAttribute {
188
188
name: sym:: $attr,
189
189
encode_cross_crate: $encode_cross_crate,
190
190
type_: $typ,
191
- safety: AttributeSafety :: Normal ,
191
+ safety: AttributeSafety :: Unsafe ,
192
192
template: $tpl,
193
193
gate: Ungated ,
194
194
duplicates: $duplicates,
195
195
}
196
196
} ;
197
- ( unsafe $attr: ident, $typ: expr, $tpl: expr, $duplicates: expr, $encode_cross_crate: expr $( , ) ?) => {
197
+ ( $attr: ident, $typ: expr, $tpl: expr, $duplicates: expr, $encode_cross_crate: expr $( , ) ?) => {
198
198
BuiltinAttribute {
199
199
name: sym:: $attr,
200
200
encode_cross_crate: $encode_cross_crate,
201
201
type_: $typ,
202
- safety: AttributeSafety :: Unsafe ,
202
+ safety: AttributeSafety :: Normal ,
203
203
template: $tpl,
204
204
gate: Ungated ,
205
205
duplicates: $duplicates,
@@ -208,45 +208,45 @@ macro_rules! ungated {
208
208
}
209
209
210
210
macro_rules! gated {
211
- ( $attr: ident, $typ: expr, $tpl: expr, $duplicates: expr, $encode_cross_crate: expr, $gate: ident, $msg: expr $( , ) ?) => {
211
+ ( unsafe $attr: ident, $typ: expr, $tpl: expr, $duplicates: expr, $encode_cross_crate: expr, $gate: ident, $msg: expr $( , ) ?) => {
212
212
BuiltinAttribute {
213
213
name: sym:: $attr,
214
214
encode_cross_crate: $encode_cross_crate,
215
215
type_: $typ,
216
- safety: AttributeSafety :: Normal ,
216
+ safety: AttributeSafety :: Unsafe ,
217
217
template: $tpl,
218
218
duplicates: $duplicates,
219
219
gate: Gated ( Stability :: Unstable , sym:: $gate, $msg, cfg_fn!( $gate) ) ,
220
220
}
221
221
} ;
222
- ( $attr: ident, $typ: expr, $tpl: expr, $duplicates: expr, $encode_cross_crate: expr, $msg: expr $( , ) ?) => {
222
+ ( unsafe $attr: ident, $typ: expr, $tpl: expr, $duplicates: expr, $encode_cross_crate: expr, $msg: expr $( , ) ?) => {
223
223
BuiltinAttribute {
224
224
name: sym:: $attr,
225
225
encode_cross_crate: $encode_cross_crate,
226
226
type_: $typ,
227
- safety: AttributeSafety :: Normal ,
227
+ safety: AttributeSafety :: Unsafe ,
228
228
template: $tpl,
229
229
duplicates: $duplicates,
230
230
gate: Gated ( Stability :: Unstable , sym:: $attr, $msg, cfg_fn!( $attr) ) ,
231
231
}
232
232
} ;
233
- ( unsafe $attr: ident, $typ: expr, $tpl: expr, $duplicates: expr, $encode_cross_crate: expr, $gate: ident, $msg: expr $( , ) ?) => {
233
+ ( $attr: ident, $typ: expr, $tpl: expr, $duplicates: expr, $encode_cross_crate: expr, $gate: ident, $msg: expr $( , ) ?) => {
234
234
BuiltinAttribute {
235
235
name: sym:: $attr,
236
236
encode_cross_crate: $encode_cross_crate,
237
237
type_: $typ,
238
- safety: AttributeSafety :: Unsafe ,
238
+ safety: AttributeSafety :: Normal ,
239
239
template: $tpl,
240
240
duplicates: $duplicates,
241
241
gate: Gated ( Stability :: Unstable , sym:: $gate, $msg, cfg_fn!( $gate) ) ,
242
242
}
243
243
} ;
244
- ( unsafe $attr: ident, $typ: expr, $tpl: expr, $duplicates: expr, $encode_cross_crate: expr, $msg: expr $( , ) ?) => {
244
+ ( $attr: ident, $typ: expr, $tpl: expr, $duplicates: expr, $encode_cross_crate: expr, $msg: expr $( , ) ?) => {
245
245
BuiltinAttribute {
246
246
name: sym:: $attr,
247
247
encode_cross_crate: $encode_cross_crate,
248
248
type_: $typ,
249
- safety: AttributeSafety :: Unsafe ,
249
+ safety: AttributeSafety :: Normal ,
250
250
template: $tpl,
251
251
duplicates: $duplicates,
252
252
gate: Gated ( Stability :: Unstable , sym:: $attr, $msg, cfg_fn!( $attr) ) ,
0 commit comments