Uh oh!
There was an error while loading. Please reload this page.
use require_lang_item over unwrap. - #72170
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
RalfJung
commented
May 13, 2020
Could you also cover the one that the issue was reported about? rust/src/librustc_typeck/check/demand.rs Line 637 in 3fe4dd2 |
lcnr
commented
May 13, 2020
done |
RalfJung
left a comment
There was a problem hiding this comment.
This LGTM. However, this is code that I am not familiar with, so I'd prefer if someone else also took a look. Cc @oli-obk@matthewjasper
oli-obk
commented
May 14, 2020
Oh, that's a very good idea. I wonder if we can make But we can address this in future work. For now: @bors r+ |
bors
commented
May 14, 2020
📌 Commit 9001a64 has been approved by |
jonas-schievink
commented
May 14, 2020
This looks like a good |
lcnr
commented
May 14, 2020
@jonas-schievink Opened #72195 for this, not |
Rollup of 8 pull requests Successful merges: - rust-lang#71910 (Fix unused_parens false positive when using binary operations) - rust-lang#72087 (Fix hang in lexical_region_resolve) - rust-lang#72126 (Change `WorkProduct::saved_files` to an `Option`.) - rust-lang#72127 (add long error explanation for E0228) - rust-lang#72141 (Warn against thread::sleep in async fn) - rust-lang#72170 (use `require_lang_item` over `unwrap`.) - rust-lang#72191 (Clean up E0589 explanation) - rust-lang#72194 (Don't ICE on missing `Unsize` impl) Failed merges: r? @ghost
Remove `lang_items\(\).*\.unwrap\(\)` Follows up rust-lang#72170 to remove the remaining uses of `lang_items\(\).*\.unwrap\(\)` (avoids a bunch of potential ICEs when working in `#![no_core]`). Resolvesrust-lang#72195
Remove `lang_items\(\).*\.unwrap\(\)` Follows up rust-lang#72170 to remove the remaining uses of `lang_items\(\).*\.unwrap\(\)` (avoids a bunch of potential ICEs when working in `#![no_core]`). Resolvesrust-lang#72195
Remove `lang_items\(\).*\.unwrap\(\)` Follows up rust-lang#72170 to remove the remaining uses of `lang_items\(\).*\.unwrap\(\)` (avoids a bunch of potential ICEs when working in `#![no_core]`). Resolvesrust-lang#72195
Remove `lang_items\(\).*\.unwrap\(\)` Follows up rust-lang#72170 to remove the remaining uses of `lang_items\(\).*\.unwrap\(\)` (avoids a bunch of potential ICEs when working in `#![no_core]`). Resolvesrust-lang#72195
Remove `lang_items\(\).*\.unwrap\(\)` Follows up rust-lang#72170 to remove the remaining uses of `lang_items\(\).*\.unwrap\(\)` (avoids a bunch of potential ICEs when working in `#![no_core]`). Resolvesrust-lang#72195
Does not yet replace all uses of
lang_items\(\)\.*\.unwrap\(\), as there are morethan I expected 😅
Fixes#72099
r? @RalfJung
edit: The goal of this this PR is to change ICE from missing lang items to a fatal error.