-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Add test for suggestion to borrow unsized function parameters #84728
Conversation
(rust-highfive has picked a reviewer for you, use r? to override) |
This PR is draft because I'm waiting for CI to fail so I can copy-paste the output. |
This comment has been minimized.
This comment has been minimized.
f579a87
to
44db9ae
Compare
This comment has been minimized.
This comment has been minimized.
44db9ae
to
5267db7
Compare
Ok, CI should pass now. |
This comment has been minimized.
This comment has been minimized.
5267db7
to
7824b7e
Compare
This comment has been minimized.
This comment has been minimized.
7824b7e
to
b46783a
Compare
Would it make sense to to add |
b46783a
to
11aa258
Compare
Done :) |
9ebbd73
to
a7762be
Compare
This comment has been minimized.
This comment has been minimized.
r=me once CI is fixed |
This is a regression test for rust-lang#82820. This test case is included in more general tests, but I think the error regressed because there were a bunch of other diagnostic changes in the test that obscured this regression. Hopefully, having a test specific to the suggestion, and running rustfix for the test, will prevent this error from regressing in the future.
a7762be
to
a7500e5
Compare
@bors r=@Mark-Simulacrum rollup |
📌 Commit a7500e5 has been approved by |
Rollup of 11 pull requests Successful merges: - rust-lang#84409 (Ensure TLS destructors run before thread joins in SGX) - rust-lang#84500 (Add --run flag to compiletest) - rust-lang#84728 (Add test for suggestion to borrow unsized function parameters) - rust-lang#84734 (Add `needs-unwind` and beginning of support for testing `panic=abort` std to compiletest) - rust-lang#84755 (Allow using `core::` in intra-doc links within core itself) - rust-lang#84871 (Disallows `#![feature(no_coverage)]` on stable and beta (using standard crate-level gating)) - rust-lang#84872 (Wire up tidy dependency checks for cg_clif) - rust-lang#84896 (Handle incorrect placement of parentheses in trait bounds more gracefully) - rust-lang#84905 (CTFE engine: rename copy → copy_intrinsic, move to intrinsics.rs) - rust-lang#84953 (Remove unneeded call to with_default_session_globals in rustdoc highlight) - rust-lang#84987 (small nits) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Closes #82820.
This is a regression test for #82820.
This test case is included in more general tests, but I think the error
regressed because there were a bunch of other diagnostic changes in the
test that obscured this regression.
Hopefully, having a test specific to the suggestion, and running rustfix
for the test, will prevent this error from regressing in the future.