Uh oh!
There was an error while loading. Please reload this page.
check that first arg to panic!() in const is &str - #80734
Conversation
rust-highfive
commented
Jan 5, 2021
r? @oli-obk (rust-highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
oli-obk
left a comment
There was a problem hiding this comment.
does this affect any tests? If not, please add a test in a test that has the const_panic feature activated.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
abonander
commented
Jan 5, 2021
Yep, I was getting to that. I just wanted to post as draft for early feedback on the error message. |
oli-obk
commented
Jan 5, 2021
oh duh, I should have read your main PR message properly.. |
f437c33 to
c6c1997Compare
This comment has been minimized.
This comment has been minimized.
Uh oh!
There was an error while loading. Please reload this page.
9511e21 to
a5e15c7CompareUh oh!
There was an error while loading. Please reload this page.
abonander
commented
Jan 8, 2021
This comment has been minimized.
This comment has been minimized.
9bcdbad to
aa12833Compareabonander
commented
Jan 8, 2021
I went ahead and made sure to cover |
RalfJung
commented
Jan 8, 2021
You can have more than one |
abonander
commented
Jan 8, 2021
@RalfJung well the problem I had with arrays is that it seems their length expressions get const-evaluated in an earlier pass than |
RalfJung
commented
Jan 8, 2021
That's a good point, thanks. Maybe add a comment in the array-length-test-file explaining why this is a separate file. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
SergioBenitez
commented
Feb 26, 2021
It seems like this is waiting on rather minor changes, is that right? @RalfJung I'm happy to push this forward if so. |
RalfJung
commented
Feb 27, 2021
@SergioBenitez I left some comments that are all minor, yes (see the open discussions). I don't know if @oli-obk has further comments; he is more familiar with the const-checking code. |
aa12833 to
1920ef5Compare@RalfJung sorry, been busy with work. I think that's your nits addressed now.
|
abonander
commented
Feb 28, 2021
@rustbot label: +S-waiting-on-review -S-waiting-on-author |
9b4f2a0 to
8765a3dCompare
oli-obk
left a comment
There was a problem hiding this comment.
Just a nit, then this lgtm
Uh oh!
There was an error while loading. Please reload this page.
oli-obk
commented
Mar 1, 2021
@bors r+ |
bors
commented
Mar 1, 2021
📌 Commit 5a33f53 has been approved by |
…laumeGomez Rollup of 7 pull requests Successful merges: - rust-lang#80734 (check that first arg to `panic!()` in const is `&str`) - rust-lang#81932 (Always compile rustdoc with debug logging enabled when `download-rustc` is set) - rust-lang#82018 (Remove the dummy cache in `DocContext`; delete RenderInfo) - rust-lang#82598 (Check stability and feature attributes in rustdoc) - rust-lang#82655 (Highlight identifier span instead of whole pattern span in `unused` lint) - rust-lang#82662 (Warn about unknown doc attributes) - rust-lang#82676 (Change twice used large const table to static) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
closes#66693
TODO: regression testcc @RalfJung for error message wording