diff options
| author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2021-02-12 00:00:00 +0000 |
|---|---|---|
| committer | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2021-02-15 17:36:29 +0100 |
| commit | dc3304c341ff4f5551cc0f7960f4e56521effd3d (patch) | |
| tree | e31168ca012cb157f759890e57a17f8d5d228a2f /compiler/rustc_mir/src/transform/coverage/graph.rs | |
| parent | 9503ea19edbf01b9435e80e17d60ce1b88390116 (diff) | |
| download | rust-dc3304c341ff4f5551cc0f7960f4e56521effd3d.tar.gz rust-dc3304c341ff4f5551cc0f7960f4e56521effd3d.zip | |
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
