Jake Goulding
53eca9fa87
Adjust compiler tests for unused_tuple_struct_fields -> dead_code
2024-01-02 15:34:37 -05:00
Nilstrieb
41e8d152dc
Show number in error message even for one error
...
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-11-24 19:15:52 +01:00
Matthias Krüger
b7706e891d
Rollup merge of #111885 - compiler-errors:rust-call-abi-sized, r=eholk
...
Don't ICE on unsized `extern "rust-call"` call
Conceptually builds on #111864 , but doesn't depend on it.
2023-06-13 07:02:28 +02:00
Michael Goulet
b95ea45a60
Note why rust-call abi requires sized obl
2023-06-06 20:57:00 +00:00
Michael Goulet
b7095f5572
Don't ICE on unsized rust-call abi call
2023-06-06 20:15:49 +00:00
Michael Howell
467bc9ffd5
diagnostics: do not suggest type name tweaks on type-inferred closure args
...
Fixes #111932
2023-06-05 19:05:15 -07:00
Jules Bertholet
5cd02eaece
Always require closure parameters to be Sized
...
The `rust-call` ABI isn't compatible with
`#![feature(unsized_fn_params)]`, so trying to use that feature with
closures leads to an ICE (#67981 ). This turns that ICE into a
type-check error.
2023-05-23 12:46:25 -04:00
bors
2c41369acc
Auto merge of #111374 - tmiasko:align-unsized-locals, r=cjgillot
...
Align unsized locals
Allocate an extra space for unsized locals and manually align the storage, since alloca doesn't support dynamic alignment.
Fixes #71416 .
Fixes #71695 .
2023-05-13 19:03:33 +00:00
Tomasz Miąsko
83a5a69a4c
Align unsized locals
...
Allocate an extra space for unsized locals and manually align the
storage, since alloca doesn't support dynamic alignment.
2023-05-08 23:40:51 +02:00
Michael Goulet
a9051d861c
Tweak borrow suggestion
2023-05-08 03:36:30 +00:00
Esteban Küber
62ba3e70a1
Modify primary span label for E0308
...
The previous output was unintuitive to users.
2023-01-30 20:12:19 +00:00
Albert Larsan
cf2dff2b1e
Move /src/test to /tests
2023-01-11 09:32:08 +00:00