| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2025-07-25 | Mention type that could be `Clone` but isn't in more cases | Esteban Küber | -0/+9 | |
| When encountering a moved value of a type that isn't `Clone` because of unmet obligations, but where all the unmet predicates reference crate-local types, mention them and suggest cloning, as we do in other cases already: ``` error[E0507]: cannot move out of `foo`, a captured variable in an `Fn` closure --> f111.rs:14:25 | 13 | fn do_stuff(foo: Option<Foo>) { | --- captured outer variable 14 | require_fn_trait(|| async { | -- ^^^^^ `foo` is moved here | | | captured by this `Fn` closure 15 | if foo.map_or(false, |f| f.foo()) { | --- | | | variable moved due to use in coroutine | move occurs because `foo` has type `Option<Foo>`, which does not implement the `Copy` trait | note: if `Foo` implemented `Clone`, you could clone the value --> f111.rs:4:1 | 4 | struct Foo; | ^^^^^^^^^^ consider implementing `Clone` for this type ... 15 | if foo.map_or(false, |f| f.foo()) { | --- you could clone this value ``` | ||||
| 2025-05-30 | Fix spans for unsafe binders | Matthew Jasper | -0/+110 | |
| 2025-05-28 | Handle e2021 precise capturing of unsafe binder | Michael Goulet | -0/+3 | |
| 2025-05-27 | Rollup merge of #141433 - compiler-errors:unsafe-binder-captures, r=oli-obk | 许杰友 Jieyou Xu (Joe) | -0/+21 | |
| Properly analyze captures from unsafe binders We need to represent the unsafe binder unwrap as an adjustment in HIR. Pretty straightforward b/c we already represent it as a projection elem in MIR. Fixes #141418 Fixes #141417 r? oli-obk | ||||
| 2025-05-23 | Properly analyze captures from unsafe binders | Michael Goulet | -0/+21 | |
| 2025-05-23 | Dont walk into unsafe binders when emiting error for non-structural type match | Michael Goulet | -0/+30 | |
| 2025-04-08 | UI tests: add missing diagnostic kinds where possible | Vadim Petrochenkov | -1/+1 | |
| 2025-03-03 | Fix pretty printing of unsafe binders | Michael Goulet | -0/+43 | |
| 2025-02-28 | Fix sized constraint for unsafe binder | Michael Goulet | -0/+29 | |
| 2025-02-13 | Use BikeshedGuaranteedNotDrop in unsafe binder type WF too | Michael Goulet | -79/+38 | |
| 2025-01-31 | Enforce unsafe binders must be Copy (for now) | Michael Goulet | -39/+74 | |
| 2025-01-31 | Implement MIR, CTFE, and codegen for unsafe binders | Michael Goulet | -56/+119 | |
| 2024-12-22 | Begin to implement type system layer of unsafe binders | Michael Goulet | -55/+135 | |
| 2024-12-12 | Add tests | Michael Goulet | -0/+150 | |
