]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #69850 - RalfJung:panic-bounds-check, r=eddyb
authorMazdak Farrokhzad <twingoow@gmail.com>
Wed, 11 Mar 2020 13:03:49 +0000 (14:03 +0100)
committerGitHub <noreply@github.com>
Wed, 11 Mar 2020 13:03:49 +0000 (14:03 +0100)
commit3853da75cbcefc7bb57a853bf3c5406818fb8c45
treecc10dbb90f7d68568e6cc4318a2f140bbac4e62d
parent080d41391d84ccf61b1b3667e731981519f9d5b7
parent0b2329da9a9a61dc70f9e607628977302f8144b4
Rollup merge of #69850 - RalfJung:panic-bounds-check, r=eddyb

panic_bounds_check: use caller_location, like PanicFnLangItem

The `PanicFnLangItem` got switched to using `#[caller_location]` at some point, but `PanicBoundsCheckFnLangItem` was kept in the old style. For consistency, switch that one over to use `#[caller_location]` as well.

This is also helpful for Miri as it means the `assert_panic` machine hook never needs to know the current `Span`.
src/librustc_codegen_ssa/mir/block.rs
src/librustc_mir/transform/const_prop.rs