-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Detect mistyped associated consts in Instance::resolve
.
#70970
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
e522c8a
to
65ce098
Compare
@bors try @rust-timer queue |
Awaiting bors try build completion |
⌛ Trying commit 65ce0985c9462170b4ee97b1f9af493ac6d2976b with merge 2ffb9a054b7827a50003601cf5c67a1f483cc0c1... |
☀️ Try build successful - checks-azure |
Queued 2ffb9a054b7827a50003601cf5c67a1f483cc0c1 with parent 0c835b0, future comparison URL. |
Finished benchmarking try commit 2ffb9a054b7827a50003601cf5c67a1f483cc0c1, comparison URL. |
Huh, I guess this is fast enough. r? @oli-obk cc @nikomatsakis |
Thanks! I take it we still need to keep the The testcase for that is |
65ce098
to
1dd0d8a
Compare
Instance::resolve
.
1dd0d8a
to
a8819dc
Compare
Blocked on #71049. |
a8819dc
to
e5bcc6b
Compare
e5bcc6b
to
2a52cd5
Compare
☔ The latest upstream changes (presumably #70452) made this pull request unmergeable. Please resolve the merge conflicts. |
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.
(All looks good to me, from a quick read)
2a52cd5
to
eb4b503
Compare
eb4b503
to
289f46a
Compare
@bors r+ |
📌 Commit 289f46a has been approved by |
Rollup of 6 pull requests Successful merges: - rust-lang#70970 (Detect mistyped associated consts in `Instance::resolve`.) - rust-lang#71203 (Correct await span for async-await error reporting) - rust-lang#71214 (Add error code for inner doc error) - rust-lang#71337 (Moving all rustdoc-ui tests to check-pass) - rust-lang#71412 (Clarify unused_doc_comments note on macro invocations) - rust-lang#71414 (More diagnostic items for Clippy usage) Failed merges: r? @ghost
Based on #71049 to prevent redundant/misleading downstream errors.
Fixes #70942 by refusing to resolve an associated
const
if it doesn't have the same type in theimpl
that it does in thetrait
(which we assume had errored, anddelay_span_bug
guards against bugs).