diff options
| author | bors <bors@rust-lang.org> | 2019-03-03 16:46:12 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-03-03 16:46:12 +0000 |
| commit | 2cfd6444a7fb4bd6acef2b97ba53059adc0500a6 (patch) | |
| tree | d04772a8cd5ed241e7a8c13ddcaf7eaebaf0b0f3 /src/librustc_mir/interpret | |
| parent | c0086b9e8972fef9fd4af24bae20d45021ed06c6 (diff) | |
| parent | 19a54e80934c802109ae7175cc824c22c672caa6 (diff) | |
| download | rust-2cfd6444a7fb4bd6acef2b97ba53059adc0500a6.tar.gz rust-2cfd6444a7fb4bd6acef2b97ba53059adc0500a6.zip | |
Auto merge of #58673 - matthewjasper:typeck-ptr-coercions, r=pnkfelix
[NLL] Type check operations with pointer types It seems these were forgotten about. Moving to `Rvalue::AddressOf` simplifies the coercions from references, but I want this to be fixed as soon as possible. r? @pnkfelix
Diffstat (limited to 'src/librustc_mir/interpret')
| -rw-r--r-- | src/librustc_mir/interpret/cast.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_mir/interpret/cast.rs b/src/librustc_mir/interpret/cast.rs index ce62d79e585..73c73cc23dc 100644 --- a/src/librustc_mir/interpret/cast.rs +++ b/src/librustc_mir/interpret/cast.rs @@ -33,7 +33,7 @@ impl<'a, 'mir, 'tcx, M: Machine<'a, 'mir, 'tcx>> EvalContext<'a, 'mir, 'tcx, M> self.unsize_into(src, dest)?; } - Misc => { + Misc | MutToConstPointer => { let src = self.read_immediate(src)?; if self.type_is_fat_ptr(src.layout.ty) { |
