lit_to_const: gracefully bubble up type errors.#69330
Conversation
There was a problem hiding this comment.
Reminder to self that reviewing this is best done in "No Whitespace" mode.
There was a problem hiding this comment.
@oli-obk This isn't new in this PR but I wonder why this isn't undef or something (I guess that might cause ICEs?). Maybe we need a ty::ConstKind::Err (if we don't have it already)?
There was a problem hiding this comment.
We don't have such an ::Err variant, https://doc.rust-lang.org/nightly/nightly-rustc/rustc/ty/enum.ConstKind.html.
There was a problem hiding this comment.
Adding one is probably a good idea (but can be done in a separate PR).
f040e15 to
748dd45
Compare
|
📌 Commit 748dd45 has been approved by |
|
☀️ Test successful - checks-azure |
|
discussed in T-compiler meeting. beta-accepted. |
[beta] backports This backports the following PRs: * ci: switch macOS builders to 10.15 #68863 * Backport release notes of 1.41.1 #69468 * Cherry-pick the LLVM fix for #69225 #69450 * `lit_to_const`: gracefully bubble up type errors. #69330 * [beta] bootstrap from 1.41.1 stable #69518 * bootstrap: Configure cmake when building sanitizer runtimes #69104 r? @ghost
Fixes #69310 which was injected by #68118.
r? @pnkfelix @varkor @eddyb
cc @Skinny121