rust/compiler/rustc_middle
Matthias Krüger 092f4600bb
Rollup merge of #99966 - RalfJung:try-dont-panic, r=lcnr
avoid assertion failures in try_to_scalar_int

Given that this is called `try_to_scalar_int`, we probably shouldn't `assert_int` here. Similarly `try_to_bits` also doesn't `assert!` that the size is correct.

Also add some `track_caller` for debugging, while we are at it.

r? ```@oli-obk```
2022-08-18 05:10:42 +02:00
..
benches
src Rollup merge of #99966 - RalfJung:try-dont-panic, r=lcnr 2022-08-18 05:10:42 +02:00
Cargo.toml
README.md

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