-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix various bugs in ty_kind_suggestion
#123924
Conversation
rustbot has assigned @petrochenkov. Use |
r? estebank |
--> $DIR/value-suggestion-ice-123906.rs:3:9 | ||
| | ||
LL | fn as_chunks<const N: usize>() -> [u8; N] { | ||
| ------- expected `[u8; ]` because of this return type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
expected
[u8; ]`
Interesting. Is this being fixed by #123926?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that's where I found it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If so, these two PRs will not be able to land in the same rollup. Can you mark this as rollup=never if so?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well if we know that it's going to fail, then marking one or the other as rollup=never doesn't really do anything. That's why I unapproved the other PR, because I'd rather see this one land first.
@bors r+ |
There's a race between this and that other PR, so I'll r- that one and keep this one. |
…mpiler-errors Rollup of 4 pull requests Successful merges: - rust-lang#123900 (Stop using `PolyTraitRef` for closure/coroutine predicates already instantiated w placeholders) - rust-lang#123924 (Fix various bugs in `ty_kind_suggestion`) - rust-lang#123943 (Use the rustc_private libc less in tests) - rust-lang#123970 (zkvm: fix references to `os_str` module) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#123924 - compiler-errors:tuple-sugg, r=estebank Fix various bugs in `ty_kind_suggestion` Consolidates two implementations of `ty_kind_suggestion` Fixes some misuse of the empty param-env Fixes a problem where we suggested `(42)` instead of `(42,)` for tuple suggestions Suggest a value when `return;`, making it consistent with `break;` Fixes rust-lang#123906
Consolidates two implementations of
ty_kind_suggestion
Fixes some misuse of the empty param-env
Fixes a problem where we suggested
(42)
instead of(42,)
for tuple suggestionsSuggest a value when
return;
, making it consistent withbreak;
Fixes #123906