Add tests for lint on type dependent on consts#97105
Merged
bors merged 2 commits intorust-lang:masterfrom May 25, 2022
Merged
Conversation
e9d3f7b to
ba8835e
Compare
96ae797 to
c03b357
Compare
c03b357 to
edae6ed
Compare
lcnr
reviewed
May 19, 2022
This comment has been minimized.
This comment has been minimized.
2fb723c to
814f18c
Compare
lcnr
reviewed
May 21, 2022
Comment on lines
100
to
108
Contributor
Author
There was a problem hiding this comment.
hm I tried it with unreachable!() and this branch actually gets hit
Contributor
There was a problem hiding this comment.
ah alright, can you because infcx.const_eval_resolve returns TooGeneric even if the inference vars are unused. Please change this to
Err(ErrorHandled::TooGeneric) => {
assert!(uv.has_infer_types_or_consts(), "unexpected `TooGeneric` for {:?}", uv);
NotConstEvaluatable::MentionsInfer
}
This comment has been minimized.
This comment has been minimized.
Contributor
|
@bors delegate+ please fix my last nit and squash your commits, then r=me 👍 |
Collaborator
|
✌️ @JulianKnodt can now approve this pull request |
335b2ac to
dd64482
Compare
This comment has been minimized.
This comment has been minimized.
cc9d5c3 to
031f4f4
Compare
This comment has been minimized.
This comment has been minimized.
Contributor
|
uh that's just a bug with inconsistent where-clauses xx maybe change the assert to an |
031f4f4 to
ed89b85
Compare
Move a bunch of branches together into one if block, for easier reading. Resolve comments Attempt to make some branches unreachable [tmp] Revert unreachable branches
ed89b85 to
ee8efc5
Compare
Contributor
Author
|
@bors r=lcnr |
Collaborator
|
📌 Commit ee8efc5 has been approved by |
bors
added a commit
to rust-lang-ci/rust
that referenced
this pull request
May 25, 2022
Rollup of 5 pull requests Successful merges: - rust-lang#93604 (Make llvm-libunwind a per-target option) - rust-lang#97026 (Change orderings of `Debug` for the Atomic types to `Relaxed`.) - rust-lang#97105 (Add tests for lint on type dependent on consts) - rust-lang#97323 (Introduce stricter checks for might_permit_raw_init under a debug flag ) - rust-lang#97379 (Add aliases for `current_dir`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
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.
r? @lcnr