about summary refs log tree commit diff
path: root/compiler/rustc_mir/src/transform/coverage/graph.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-03-02 16:08:32 +0000
committerbors <bors@rust-lang.org>2021-03-02 16:08:32 +0000
commit795a934b51cb481ea3cb1cc8c3835a043a9e0102 (patch)
tree1d7577797c57c55bd3ce5e592de267e50e51ec91 /compiler/rustc_mir/src/transform/coverage/graph.rs
parent67342b830ebeca05ebafc09d8c7ed71b2ad821e1 (diff)
parentdc3304c341ff4f5551cc0f7960f4e56521effd3d (diff)
downloadrust-795a934b51cb481ea3cb1cc8c3835a043a9e0102.tar.gz
rust-795a934b51cb481ea3cb1cc8c3835a043a9e0102.zip
Auto merge of #82043 - tmiasko:may-have-side-effect, r=kennytm
Turn may_have_side_effect into an associated constant

The `may_have_side_effect` is an implementation detail of `TrustedRandomAccess`
trait. It describes if obtaining an iterator element may have side effects. It
is currently implemented as an associated function.

Turn `may_have_side_effect` into an associated constant. This makes the
value immediately available to the optimizer.
Diffstat (limited to 'compiler/rustc_mir/src/transform/coverage/graph.rs')
0 files changed, 0 insertions, 0 deletions