rust/compiler/rustc_middle/src
Ralf Jung 2c7bf41b97
Rollup merge of #84903 - hyd-dev:dead-check-in-alloc-msg, r=RalfJung
Remove `rustc_middle::mir::interpret::CheckInAllocMsg::NullPointerTest`

Removing it per https://github.com/rust-lang/rust/pull/84842#discussion_r625589674: it's a dead enum variant.

Note that `PointerArithmeticTest` also seems dead:
```
$ rg -F PointerArithmeticTest -C5
compiler/rustc_middle/src/mir/interpret/error.rs
169-
170-/// Details of why a pointer had to be in-bounds.
171-#[derive(Debug, Copy, Clone, TyEncodable, TyDecodable, HashStable)]
172-pub enum CheckInAllocMsg {
173-    MemoryAccessTest,
174:    PointerArithmeticTest,
175-    InboundsTest,
176-}
177-
178-impl fmt::Display for CheckInAllocMsg {
179-    /// When this is printed as an error the context looks like this
--
182-        write!(
183-            f,
184-            "{}",
185-            match *self {
186-                CheckInAllocMsg::MemoryAccessTest => "memory access",
187:                CheckInAllocMsg::PointerArithmeticTest => "pointer arithmetic",
188-                CheckInAllocMsg::InboundsTest => "inbounds test",
189-            }
190-        )
191-    }
192-}
```
Not sure if that is also desirable to be removed, however.
2021-05-05 17:52:28 +02:00
..
dep_graph Introduce CompileMonoItem DepNode 2021-04-12 13:58:12 +02:00
hir Introduce a hir_owner_parent query. 2021-04-29 21:36:56 +02:00
ich Fix outdated crate names in compiler docs 2021-04-08 11:12:14 -05:00
infer Add var to BoundRegion. Add query to get bound vars for applicable items. 2021-03-31 10:16:37 -04:00
middle Derived Eq no longer shows uncovered 2021-04-27 11:11:56 -07:00
mir Remove rustc_middle::mir::interpret::CheckInAllocMsg::NullPointerTest 2021-05-04 18:27:02 +08:00
query Auto merge of #83114 - cjgillot:hop, r=eddyb 2021-05-01 18:03:25 +00:00
traits Make traits with GATs not object safe 2021-04-27 14:34:23 -04:00
ty Auto merge of #84833 - Mark-Simulacrum:thread-local-consts, r=varkor 2021-05-04 03:14:32 +00:00
util Make panic/assert calls in rustc compatible with Rust 2021. 2021-02-03 22:42:53 +01:00
arena.rs Split crate_hash from index_hir. 2021-04-29 21:36:48 +02:00
lib.rs Use new thread-local const-init 2021-05-02 14:06:07 -04:00
lint.rs Cancel emitting FCW lint if it is an edition fixing lint 2021-04-14 18:56:13 +02:00
macros.rs Auto merge of #78779 - LeSeulArtichaut:ty-visitor-return, r=oli-obk 2020-11-17 12:24:34 +00:00
tests.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00