Eduardo Sánchez Muñoz
17dfabff9c
Change start
to #[start]
in some diagnosis
...
They refer to a function with the `start` attribute, but not necessarily named `start`.
2023-09-22 15:58:43 +02:00
Michael Goulet
bf66723c0e
Test and note unsafe ctor to fn ptr coercion
...
Also remove a note that I don't consider to be very useful in context.
2023-08-30 15:09:40 -07:00
Caleb Zulawski
ddb16e2884
Fix #[inline(always)] on closures with target feature 1.1
2023-05-22 00:13:40 -04:00
Léo Lanteri Thauvin
963305bda8
Forbid the use of #[target_feature]
on start
2023-03-12 14:57:38 +01:00
Léo Lanteri Thauvin
db26693982
Forbid the use of #[target_feature]
on main
2023-03-12 14:57:38 +01:00
Léo Lanteri Thauvin
ad2bcb5c0e
Forbid #[target_feature]
on safe default implementations
2023-03-10 13:50:51 +01:00
Léo Lanteri Thauvin
bfe5189904
Revert "Stabilize #![feature(target_feature_11)]
"
...
This reverts commit b379d216ee
.
2023-03-02 13:41:17 +01:00
Léo Lanteri Thauvin
b379d216ee
Stabilize #![feature(target_feature_11)]
2023-02-01 08:53:02 +01:00
Esteban Küber
d86835769c
Make structured suggestion for fn casting verbose
2023-01-30 21:55:25 +00:00
Esteban Küber
5ae8e23816
Mention fn coercion rules (needs to be expanded)
2023-01-30 21:51:33 +00:00
Matthew J Perez
1e22280f23
Add suggestions for function pointers
...
- On compiler-error's suggestion of moving this lower down the stack,
along the path of `report_mismatched_types()`, which is used
by `rustc_hir_analysis` and `rustc_hir_typeck`.
- update ui tests, add test
- add suggestions for references to fn pointers
- modify `TypeErrCtxt::same_type_modulo_infer` to take `T: relate::Relate` instead of `Ty`
2023-01-24 14:02:56 -05:00
Albert Larsan
cf2dff2b1e
Move /src/test to /tests
2023-01-11 09:32:08 +00:00