Commit eb4ba58
committed
perf: only check for rustc_trivial_field_reads attribute on traits
The checks removed here 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 evaluate if the perf impact is acceptable.1 parent c02371c commit eb4ba58
1 file changed
+1
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | 257 | | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | 258 | | |
267 | 259 | | |
268 | 260 | | |
269 | 261 | | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | 262 | | |
283 | 263 | | |
284 | 264 | | |
| |||
291 | 271 | | |
292 | 272 | | |
293 | 273 | | |
294 | | - | |
295 | | - | |
296 | | - | |
| 274 | + | |
297 | 275 | | |
298 | 276 | | |
299 | 277 | | |
| |||
0 commit comments