]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Auto merge of #89454 - erikdesjardins:perfattrcheck, r=nikomatsakis
authorbors <bors@rust-lang.org>
Thu, 7 Oct 2021 03:42:05 +0000 (03:42 +0000)
committerbors <bors@rust-lang.org>
Thu, 7 Oct 2021 03:42:05 +0000 (03:42 +0000)
commitd3e6770efbd76c4ad1e17468895b538a2efec4bd
tree0db3025d27155b10571b04c4b6fc65004d1c5918
parent0eabf25b90396dead0b2a1aaa275af18a1ae6008
parentbec5a91450d58a821c8a41a93dd2563fc7eb4606
Auto merge of #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 #85200) caused a small perf regression: https://github.com/rust-lang/rust/pull/88824#issuecomment-932664761

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`