diff options
| author | Zalathar <Zalathar@users.noreply.github.com> | 2024-04-21 18:11:57 +1000 |
|---|---|---|
| committer | Zalathar <Zalathar@users.noreply.github.com> | 2024-05-14 13:57:23 +1000 |
| commit | a68bb5e176ff7f250c0af00467a6793952be7489 (patch) | |
| tree | e7cccbd01af6c1ec8f276f13c2ab7a8ef12c0794 /compiler/rustc_middle/src | |
| parent | 1a3a54c513a9032582a092f20315031f8a485aaf (diff) | |
| download | rust-a68bb5e176ff7f250c0af00467a6793952be7489.tar.gz rust-a68bb5e176ff7f250c0af00467a6793952be7489.zip | |
coverage: Memoize newly-created counter expressions
This currently has no effect, but is expected to be useful when expanding support for branch coverage and MC/DC coverage.
Diffstat (limited to 'compiler/rustc_middle/src')
| -rw-r--r-- | compiler/rustc_middle/src/mir/coverage.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_middle/src/mir/coverage.rs b/compiler/rustc_middle/src/mir/coverage.rs index 477303e2434..8d754f76ae8 100644 --- a/compiler/rustc_middle/src/mir/coverage.rs +++ b/compiler/rustc_middle/src/mir/coverage.rs @@ -187,8 +187,8 @@ impl Debug for CodeRegion { } } -#[derive(Copy, Clone, Debug, PartialEq, TyEncodable, TyDecodable, Hash, HashStable)] -#[derive(TypeFoldable, TypeVisitable)] +#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash, HashStable)] +#[derive(TyEncodable, TyDecodable, TypeFoldable, TypeVisitable)] pub enum Op { Subtract, Add, |
