diff options
| author | Saleem Jaffer <ssaleem1992@gmail.com> | 2019-07-30 15:46:02 +0530 |
|---|---|---|
| committer | Saleem Jaffer <ssaleem1992@gmail.com> | 2019-07-30 15:46:02 +0530 |
| commit | b60a336e86dece15a277139ba76117ed4f17eb3c (patch) | |
| tree | f30db9efef34ff74db7fb5a448183f05fe485c90 /src/librustc_mir/interpret | |
| parent | 69daf844daac2f8c75ae0db662c584f05dd9838e (diff) | |
| download | rust-b60a336e86dece15a277139ba76117ed4f17eb3c.tar.gz rust-b60a336e86dece15a277139ba76117ed4f17eb3c.zip | |
tidy fixes
Diffstat (limited to 'src/librustc_mir/interpret')
| -rw-r--r-- | src/librustc_mir/interpret/intern.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/librustc_mir/interpret/intern.rs b/src/librustc_mir/interpret/intern.rs index f362ea812f5..a47cea9a70a 100644 --- a/src/librustc_mir/interpret/intern.rs +++ b/src/librustc_mir/interpret/intern.rs @@ -328,7 +328,9 @@ pub fn intern_const_alloc_recursive( } } else if ecx.memory().dead_alloc_map.contains_key(&alloc_id) { // dangling pointer - return throw_err!(ValidationFailure("encountered dangling pointer in final constant".into())) + return throw_err!( + ValidationFailure("encountered dangling pointer in final constant".into()) + ) } } Ok(()) |
