Uh oh!
There was an error while loading. Please reload this page.
Add tests for lint on type dependent on consts - #97105
Conversation
e9d3f7b to
ba8835eCompare96ae797 to
c03b357Comparec03b357 to
edae6edCompareUh oh!
There was an error while loading. Please reload this page.
This comment has been minimized.
This comment has been minimized.
2fb723c to
814f18cCompareThere was a problem hiding this comment.
hm I tried it with unreachable!() and this branch actually gets hit
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}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.
This comment has been minimized.
This comment has been minimized.
lcnr
commented
May 23, 2022
@bors delegate+ please fix my last nit and squash your commits, then r=me 👍 |
bors
commented
May 23, 2022
✌️ @JulianKnodt can now approve this pull request |
335b2ac to
dd64482Compare
This comment has been minimized.
This comment has been minimized.
cc9d5c3 to
031f4f4Compare
This comment has been minimized.
This comment has been minimized.
uh that's just a bug with inconsistent where-clauses xx maybe change the assert to an |
031f4f4 to
ed89b85CompareMove 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
ee8efc5CompareJulianKnodt
commented
May 25, 2022
@bors r=lcnr |
bors
commented
May 25, 2022
📌 Commit ee8efc5 has been approved by |
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
r? @lcnr