rust/compiler/rustc_middle
Matthias Krüger b66e123677
Rollup merge of #105234 - JakobDegen:unneeded-field, r=oli-obk
Remove unneeded field from `SwitchTargets`

This had a fixme already. The only change in behavior is that the mir dumps now no longer contains labels for the types of the integers on the edges of a switchint:

Before:
![image](https://user-images.githubusercontent.com/51179609/205467622-34401a68-dca6-43eb-915e-b9fda1988860.png)

After:
![image](https://user-images.githubusercontent.com/51179609/205467634-b5b2a259-9cb4-4843-845c-592c500f0f9c.png)

I don't think that's a problem though. The information is still available to a user that really cares by checking the type of `_2`, so it honestly feels like a bit of an improvement to me.

r? mir
2022-12-10 15:01:43 +01:00
..
src Rollup merge of #105234 - JakobDegen:unneeded-field, r=oli-obk 2022-12-10 15:01:43 +01:00
Cargo.toml Make tcx.mk_const more permissive wrt kind argument 2022-11-28 17:27:20 +00:00
README.md

For more information about how rustc works, see the rustc dev guide.