Commit d3e6770
committed
Auto merge of rust-lang#89454 - erikdesjardins:perfattrcheck, r=nikomatsakis
perf: only check for `rustc_trivial_field_reads` attribute on traits, not items, impls, etc.
The checks that are removed in this PR (originally added in rust-lang#85200) caused a small perf regression: rust-lang#88824 (comment)
Since the attribute is currently only applied to traits, I don't think it's worth keeping the additional checks for now.
If/when we decide to apply the attribute somewhere else, we can (partially) revert this and reevaluate the perf impact.
r? `@nikomatsakis` cc `@FabianWolff`1 file changed
+4
-38
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | 246 | | |
262 | | - | |
263 | | - | |
| 247 | + | |
| 248 | + | |
264 | 249 | | |
265 | 250 | | |
266 | 251 | | |
267 | | - | |
| 252 | + | |
268 | 253 | | |
269 | 254 | | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | 255 | | |
287 | 256 | | |
288 | 257 | | |
| |||
291 | 260 | | |
292 | 261 | | |
293 | 262 | | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
| 263 | + | |
298 | 264 | | |
299 | 265 | | |
300 | 266 | | |
| |||
0 commit comments