Skip to content

Rollup of 12 pull requests #138866

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

Merged
merged 31 commits into from
Mar 24, 2025
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
42c9c10
Remove unused trait BoundedSize
mu001999 Jan 25, 2025
28bd22c
rustdoc: Gate unstable `doc(cfg())` predicates
clubby789 Mar 9, 2025
85b1116
rustdoc: Add FIXME test for `doc_cfg` interaction with `check_cfg`
clubby789 Mar 10, 2025
1cdddd6
Add MIR pre-codegen tests to track 138544
scottmcm Feb 27, 2025
aa2c24b
uefi: Add OwnedEvent abstraction
Ayush1325 Mar 8, 2025
bcac931
Update test for SGX now implementing read_buf
thaliaarchi Mar 18, 2025
9fa158d
std: uefi: fs: Implement mkdir
Ayush1325 Mar 18, 2025
b523301
Add test to ensure no index out of bounds panic (#135474)
reddevilmidzy Mar 14, 2025
fa0c951
doc: rename reference #create-a-configtoml to #create-a-bootstraptoml
chiichen Mar 23, 2025
20f4a0d
fix ICE #138415
TaKO8Ki Mar 23, 2025
34b7d51
fix typo
TaKO8Ki Mar 23, 2025
0e7dbab
Implement `supported-crate-types` print request
jieyouxu Mar 18, 2025
13530af
Document `supported-crate-types` print request in unstable book
jieyouxu Mar 18, 2025
f1b8d89
Rebless tests with changed help due to new print request option
jieyouxu Mar 18, 2025
f2cde8e
Adjust `rustc-print-info-issue-138612.rs`
jieyouxu Mar 21, 2025
f10b587
Say which test failed the `COMPILETEST_REQUIRE_ALL_LLVM_COMPONENTS` a…
jieyouxu Mar 23, 2025
e934975
Visit coroutine kind ty in FlagComputation
compiler-errors Mar 23, 2025
e4f13e3
Remove HAS_TY_COROUTINE
compiler-errors Mar 23, 2025
77a106e
Remove STILL_FURTHER_SPECIALIZABLE special casing
compiler-errors Mar 23, 2025
145fe2d
Rollup merge of #136040 - mu001999-contrib:cleanup, r=Mark-Simulacrum
compiler-errors Mar 23, 2025
d7c5f5f
Rollup merge of #138236 - Ayush1325:uefi-event, r=petrochenkov
compiler-errors Mar 23, 2025
856ba39
Rollup merge of #138293 - clubby789:doc-cfg-gate, r=GuillaumeGomez
compiler-errors Mar 23, 2025
6756e3d
Rollup merge of #138509 - reddevilmidzy:add-test, r=compiler-errors
compiler-errors Mar 23, 2025
e31d3e3
Rollup merge of #138545 - scottmcm:more-option-tests, r=Mark-Simulacrum
compiler-errors Mar 23, 2025
bb49f0d
Rollup merge of #138631 - thaliaarchi:sgx-read-buf-test, r=workingjub…
compiler-errors Mar 23, 2025
21cdebc
Rollup merge of #138641 - jieyouxu:print-supported-crate-types, r=Urgau
compiler-errors Mar 23, 2025
f4096dc
Rollup merge of #138667 - Ayush1325:uefi-mkdir, r=joboet
compiler-errors Mar 23, 2025
93e5313
Rollup merge of #138849 - chiichen:dev/master/doc-correct-configtoml,…
compiler-errors Mar 23, 2025
1e02342
Rollup merge of #138854 - TaKO8Ki:invalid-extern-fn-body, r=compiler-…
compiler-errors Mar 23, 2025
db52a4a
Rollup merge of #138858 - jieyouxu:ct-llvm-components, r=onur-ozkan
compiler-errors Mar 23, 2025
045a1c7
Rollup merge of #138861 - compiler-errors:flags-tweaks, r=lcnr
compiler-errors Mar 23, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions tests/ui/fn/trait-fn-generic-mismatch.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
fn retry() -> impl Sized {}

struct Core<T>(T);

impl Core<XXX> { //~ ERROR cannot find type `XXX` in this scope
pub fn spawn(self) {}
}

fn main() {
let core = Core(1);
core.spawn(retry()); //~ ERROR this method takes 0 arguments but 1 argument was supplied
}
32 changes: 32 additions & 0 deletions tests/ui/fn/trait-fn-generic-mismatch.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
error[E0412]: cannot find type `XXX` in this scope
--> $DIR/trait-fn-generic-mismatch.rs:5:11
|
LL | impl Core<XXX> {
| ^^^ not found in this scope
|
help: you might be missing a type parameter
|
LL | impl<XXX> Core<XXX> {
| +++++

error[E0061]: this method takes 0 arguments but 1 argument was supplied
--> $DIR/trait-fn-generic-mismatch.rs:11:10
|
LL | core.spawn(retry());
| ^^^^^ ------- unexpected argument of type `impl Sized`
|
note: method defined here
--> $DIR/trait-fn-generic-mismatch.rs:6:12
|
LL | pub fn spawn(self) {}
| ^^^^^
help: remove the extra argument
|
LL - core.spawn(retry());
LL + core.spawn();
|

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0061, E0412.
For more information about an error, try `rustc --explain E0061`.