Ensure that panicking in constants eventually errors#67164
Merged
bors merged 2 commits intorust-lang:masterfrom Dec 11, 2019
Merged
Ensure that panicking in constants eventually errors#67164bors merged 2 commits intorust-lang:masterfrom
bors merged 2 commits intorust-lang:masterfrom
Conversation
…y causes an error during evaluation
Contributor
|
Please also add the test from the issue as a ui test showing that we error if the value is actually used. |
Contributor
|
Also, does your change fix #![feature(const_panic)]
#![allow(const_err)]
const VOID: ! = panic!();
fn main() {
let _ = VOID;
}Or will this still compile? |
6ec135b to
d2ed209
Compare
Contributor
|
@bors r+ |
Collaborator
|
📌 Commit d2ed209 has been approved by |
Centril
added a commit
to Centril/rust
that referenced
this pull request
Dec 11, 2019
…=oli-obk Ensure that panicking in constants eventually errors based on rust-lang#67134 closes rust-lang#66975 r? @oli-obk
bors
added a commit
that referenced
this pull request
Dec 11, 2019
Rollup of 6 pull requests Successful merges: - #66881 (Optimize Ord trait implementation for bool) - #67015 (Fix constant propagation for scalar pairs) - #67074 (Add options to --extern flag.) - #67164 (Ensure that panicking in constants eventually errors) - #67174 (Remove `checked_add` in `Layout::repeat`) - #67205 (Make `publish_toolstate.sh` executable) Failed merges: r? @ghost
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
based on #67134
closes #66975
r? @oli-obk