about summary refs log tree commit diff
path: root/tests/ui/delegation
AgeCommit message (Collapse)AuthorLines
2025-01-24Reword "crate not found" resolve messageEsteban Küber-6/+8
``` error[E0432]: unresolved import `some_novel_crate` --> file.rs:1:5 | 1 | use some_novel_crate::Type; | ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `some_novel_crate` ``` On resolve errors where there might be a missing crate, mention `cargo add foo`: ``` error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nope` --> $DIR/conflicting-impl-with-err.rs:4:11 | LL | impl From<nope::Thing> for Error { | ^^^^ use of unresolved module or unlinked crate `nope` | = help: if you wanted to use a crate named `nope`, use `cargo add nope` to add it to your `Cargo.toml` ```
2025-01-07Update tests.Mara Bos-1/+1
2024-11-12Don't trigger never type lint in a delegation testMaybe Lapkin-52/+17
2024-11-03Yeet effects featureMichael Goulet-19/+18
2024-10-28Hack out effects support for old solverMichael Goulet-6/+1
2024-10-24Implement const effect predicate in new solverMichael Goulet-18/+10
2024-10-04Bless ui tests.Camille GILLOT-16/+16
2024-09-07Auto merge of #126161 - Bryanskiy:delegation-generics-4, r=petrochenkovbors-325/+417
Delegation: support generics in associated delegation items This is a continuation of https://github.com/rust-lang/rust/pull/125929. [design](https://github.com/Bryanskiy/posts/blob/master/delegation%20in%20generic%20contexts.md) Generic parameters inheritance was implemented in all contexts. Generic arguments are not yet supported. r? `@petrochenkov`
2024-09-05Delegation: support generics in associated delegation itemsBryanskiy-201/+293
2024-09-03Delegation refactoring: add builders for generics inheritanceBryanskiy-30/+30
2024-08-24Rollup merge of #128524 - ↵Trevor Gross-5/+0
chenyukang:yukang-fix-127930-invalid-outer-style-sugg, r=cjgillot Don't suggest turning crate-level attributes into outer style Fixes #127930
2024-08-16Rewrite `get_fn_id_for_return_block`Boxy-0/+147
2024-08-10Differentiate between methods and associated functionsEsteban Küber-4/+4
Accurately refer to assoc fn without receiver as assoc fn instead of methods. Add `AssocItem::descr` method to centralize where we call methods and associated functions.
2024-08-04don't suggest turning crate-level attributes into outer styleyukang-5/+0
2024-07-29Delegation: support generics for delegation from free functionsBryanskiy-140/+395
2024-07-16Delegation: support coercion for target expressionBryanskiy-17/+158
2024-06-25Rollup merge of #126947 - Bryanskiy:delegation-lowering-refactoring, ↵Matthias Krüger-4/+4
r=petrochenkov Delegation: ast lowering refactor refactoring changes for https://github.com/rust-lang/rust/pull/126699 r? ```@petrochenkov```
2024-06-25Delegation: ast lowering refactorBryanskiy-4/+4
2024-06-22delegation: Do not crash on qpaths without a traitVadim Petrochenkov-0/+25
2024-06-19Rollup merge of #124135 - petrochenkov:deleglob, r=fmease许杰友 Jieyou Xu (Joe)-0/+416
delegation: Implement glob delegation Support delegating to all trait methods in one go. Overriding globs with explicit definitions is also supported. The implementation is generally based on the design from https://github.com/rust-lang/rfcs/pull/3530#issuecomment-2020869823, but unlike with list delegation in https://github.com/rust-lang/rust/pull/123413 we cannot expand glob delegation eagerly. We have to enqueue it into the queue of unexpanded macros (most other macros are processed this way too), and then a glob delegation waits in that queue until its trait path is resolved, and enough code expands to generate the identifier list produced from the glob. Glob delegation is only allowed in impls, and can only point to traits. Supporting it in other places gives very little practical benefit, but significantly raises the implementation complexity. Part of https://github.com/rust-lang/rust/issues/118212.
2024-06-15Rollup merge of #126497 - petrochenkov:delehyg, r=compiler-errorsMatthias Krüger-2/+53
delegation: Fix hygiene for `self` And fix diagnostics for `self` from a macro. The missing rib caused `self` to be treated as a generic parameter and ignore `macro_rules` hygiene. Addresses this comment https://github.com/rust-lang/rust/pull/124135#discussion_r1637492234.
2024-06-15delegation: Fix hygiene for `self`Vadim Petrochenkov-2/+53
And fix diagnostics for `self` from a macro.
2024-06-14delegation: Implement glob delegationVadim Petrochenkov-2/+418
2024-06-13Point out exactly what obligation will failMichael Goulet-0/+10
2024-06-13Bless a testWaffle Lapkin-15/+40
2024-06-11Rollup merge of #126236 - Bryanskiy:delegation-no-entry-ice-2, r=petrochenkov许杰友 Jieyou Xu (Joe)-0/+26
Delegation: fix ICE on recursive delegation fixes https://github.com/rust-lang/rust/issues/124347 r? `@petrochenkov`
2024-06-10Delegation: fix ICE on recursive delegationBryanskiy-0/+26
2024-06-10Delegation: fix ICE on late diagnosticsBryanskiy-0/+32
2024-05-15delegation: Implement list delegationVadim Petrochenkov-6/+175
```rust reuse prefix::{a, b, c} ```
2024-04-23delegation: Support async, const, extern "ABI" and C-variadic functionsVadim Petrochenkov-60/+138
Also allow `impl Trait` in delegated functions. The delegation item will refer to the original opaque type from the callee, fresh opaque type won't be created.
2024-04-23delegation: Support renamingVadim Petrochenkov-0/+20
2024-03-27Delegation: fix ICE on wrong instantiationBryanskiy-177/+225
2024-03-26Rollup merge of #123091 - Bryanskiy:delegation-fixes, r=petrochenkovMatthias Krüger-0/+103
Delegation: fix ICE on wrong `self` resolution fixes https://github.com/rust-lang/rust/issues/122874 Delegation item should be wrapped in a `rib` to behave like a regular function during name resolution. r? `@petrochenkov`
2024-03-26Delegation: fix ICE on wrong `self` resolutionBryanskiy-0/+103
2024-03-22Delegation: fix ICE on `bound_vars` divergenceBryanskiy-0/+49
2024-03-16Delegation: fix ICE on duplicated associative itemsBryanskiy-0/+46
2024-03-07Merge collect_mod_item_types query into check_well_formedOli Scherer-35/+35
2024-03-07Use the same collection order as check_mod_type_wfOli Scherer-18/+18
2024-02-16[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives许杰友 Jieyou Xu (Joe)-5/+5
2024-02-07Update testsr0cky-4/+24
2024-01-12Delegation implementation: step 1Bryanskiy-0/+771