diff options
| author | Ralf Jung <post@ralfj.de> | 2020-03-23 10:58:43 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2020-03-23 11:02:18 +0100 |
| commit | 410385dfd0532f3e8867afaaa4b89c315b0e84b1 (patch) | |
| tree | cc840208cdfb6ae47c78ed94914a0eb673df3f08 /src/librustc | |
| parent | cda81da6ea4c037ef036067d9cb98e80208ee525 (diff) | |
add macro to reduce boilerplate and keep readable messages
Diffstat (limited to 'src/librustc')
| -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 d00eb7921a0..010b73db9ac 100644 --- a/src/librustc/mir/interpret/error.rs +++ b/src/librustc/mir/interpret/error.rs @@ -577,7 +577,7 @@ impl InterpError<'_> { /// waste of resources. pub fn allocates(&self) -> bool { match self { - // Zero-sized boxes to not allocate. + // Zero-sized boxes do not allocate. InterpError::MachineStop(b) => mem::size_of_val(&**b) > 0, InterpError::Unsupported(UnsupportedOpInfo::Unsupported(_)) | InterpError::UndefinedBehavior(UndefinedBehaviorInfo::ValidationFailure(_)) |
