diff options
| author | Ralf Jung <post@ralfj.de> | 2018-08-25 11:07:03 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2018-08-27 18:12:49 +0200 |
| commit | 89cfd08b47f38f2721a00bd0a2ba2fce6f530c79 (patch) | |
| tree | 3bbc90fd65fa15571f4b219ed433171f724c84d9 /src/librustc/mir/interpret | |
| parent | 548b3738c2fa83d8ba91384cbcd2df37b2eba45c (diff) | |
| download | rust-89cfd08b47f38f2721a00bd0a2ba2fce6f530c79.tar.gz rust-89cfd08b47f38f2721a00bd0a2ba2fce6f530c79.zip | |
validate enum discriminant whenever it is read
Diffstat (limited to 'src/librustc/mir/interpret')
| -rw-r--r-- | src/librustc/mir/interpret/error.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/mir/interpret/error.rs b/src/librustc/mir/interpret/error.rs index dc6d17d3453..c62ed841866 100644 --- a/src/librustc/mir/interpret/error.rs +++ b/src/librustc/mir/interpret/error.rs @@ -303,7 +303,7 @@ impl<'tcx, O> EvalErrorKind<'tcx, O> { InvalidBool => "invalid boolean value read", InvalidDiscriminant => - "invalid enum discriminant value read", + "invalid enum discriminant value read or written", PointerOutOfBounds { .. } => "pointer offset outside bounds of allocation", InvalidNullPointerUsage => |
