bors
f8060d282d
Auto merge of #128083 - Mark-Simulacrum:bump-bootstrap, r=albertlarsan68
...
Bump bootstrap compiler to new beta
https://forge.rust-lang.org/release/process.html#master-bootstrap-update-t-2-day-tuesday
2024-07-30 17:49:08 +00:00
Nicholas Nethercote
84ac80f192
Reformat use declarations.
...
The previous commit updated `rustfmt.toml` appropriately. This commit is
the outcome of running `x fmt --all` with the new formatting options.
2024-07-29 08:26:52 +10:00
Mark Rousskov
5eca36d27a
step cfg(bootstrap)
2024-07-28 14:46:29 -04:00
Oli Scherer
acba6449f8
Do not try to reveal hidden types when trying to prove Freeze in the defining scope
2024-07-24 16:00:48 +00:00
Michael Goulet
ce8a625092
Move all error reporting into rustc_trait_selection
2024-07-21 22:34:35 -04:00
Michael Goulet
fe4c995ccb
Move trait selection error reporting to its own top-level module
2024-07-08 16:04:47 -04:00
Maybe Waffle
484152d562
Support tail calls in mir via TerminatorKind::TailCall
2024-07-07 17:11:04 +02:00
Michael Goulet
b1059ccda2
Instance::resolve -> Instance::try_resolve, and other nits
2024-07-02 17:28:03 -04:00
Oli Scherer
3f34196839
Remove redundant argument from subdiagnostic method
2024-06-18 15:42:11 +00:00
Oli Scherer
7ba82d61eb
Use a dedicated type instead of a reference for the diagnostic context
...
This paves the way for tracking more state (e.g. error tainting) in the diagnostic context handle
2024-06-18 15:42:11 +00:00
Michael Goulet
342c1b03d6
Rename InstanceDef -> InstanceKind
2024-06-16 21:35:21 -04:00
Michael Goulet
93ff86ed7c
Use is_lang_item more aggressively
2024-06-14 16:54:29 -04:00
Boxy
60a5bebbe5
Add Ty to mir::Const::Ty
2024-06-05 22:25:41 +01:00
Boxy
a9702a6668
Add Ty to ConstKind::Value
2024-06-05 22:25:41 +01:00
Michael Goulet
eb0a70a557
Opt-in diagnostics reporting to avoid doing extra work in the new solver
2024-06-03 09:27:52 -04:00
Esteban Küber
e6bd6c2044
Use parenthetical notation for Fn traits
...
Always use the `Fn(T) -> R` format when printing closure traits instead of `Fn<(T,), Output = R>`.
Fix #67100 :
```
error[E0277]: expected a `Fn()` closure, found `F`
--> file.rs:6:13
|
6 | call_fn(f)
| ------- ^ expected an `Fn()` closure, found `F`
| |
| required by a bound introduced by this call
|
= note: wrap the `F` in a closure with no arguments: `|| { /* code */ }`
note: required by a bound in `call_fn`
--> file.rs:1:15
|
1 | fn call_fn<F: Fn() -> ()>(f: &F) {
| ^^^^^^^^^^ required by this bound in `call_fn`
help: consider further restricting this bound
|
5 | fn call_any<F: std::any::Any + Fn()>(f: &F) {
| ++++++
```
2024-05-29 22:26:54 +00:00
Peter Jaszkowiak
4913ab8f77
Stabilize LazyCell and LazyLock (lazy_cell)
2024-02-20 20:55:13 -07:00
Jubilee Young
87048a46fc
compiler: unnest rustc_const_eval::check_consts
2024-05-24 09:56:56 -07:00