]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #89785 - nbdd0121:master, r=Mark-Simulacrum
authorMatthias Krüger <matthias.krueger@famsik.de>
Mon, 11 Oct 2021 21:45:53 +0000 (23:45 +0200)
committerGitHub <noreply@github.com>
Mon, 11 Oct 2021 21:45:53 +0000 (23:45 +0200)
Fix ICE when compiling nightly std/rustc on beta compiler

Fix #89775

#89479 renames a lot of diagnostic items, but it happens that the beta compiler assumes that there must be DefId with `rustc_diagnostic_item = "send_trait"`, causing an ICE when compiling stage 0 std or stage 1 compiler. So gate it with `cfg(bootstrap)`.

The unwrap is also removed, so that existence of the diagnostic item is not required. I ripgreped the code base and this seems the only place where `unwrap` is called on the return value of `get_diagnostic_item`.


Trivial merge