rust/tests/ui/delegation
Esteban Küber 99196657fc Use tcx.short_string() in more diagnostics
`TyCtxt::short_string` ensures that user visible type paths aren't overwhelming on the terminal output, and properly saves the long name to disk as a side-channel. We already use these throughout the compiler and have been using them as needed when users find cases where the output is verbose. This is a proactive search of some cases to use `short_string`.

We add support for shortening the path of "trait path only".

Every manual use of `short_string` is a bright marker that that error should be using structured diagnostics instead (as they have proper handling of long types without the maintainer having to think abou tthem).

When we don't actually print out a shortened type we don't need the "use `--verbose`" note.

On E0599 show type identity to avoid expanding the receiver's generic parameters.

Unify wording on `long_ty_path` everywhere.
2025-08-07 21:18:00 +00:00
..
auxiliary delegation: Support async, const, extern "ABI" and C-variadic functions 2024-04-23 23:05:39 +03:00
generics Delegation: support generics in associated delegation items 2024-09-05 16:04:50 +03:00
bad-resolve.rs Reword "crate not found" resolve message 2025-01-24 01:19:50 +00:00
bad-resolve.stderr bless tests 2025-04-27 18:14:55 +02:00
body-identity-glob.rs delegation: Implement glob delegation 2024-06-14 19:27:51 +03:00
body-identity-list.rs delegation: Implement list delegation 2024-05-15 02:32:59 +03:00
correct_body_owner_parent_found_in_diagnostics.rs Rewrite get_fn_id_for_return_block 2024-08-16 20:53:13 +01:00
correct_body_owner_parent_found_in_diagnostics.stderr Use tcx.short_string() in more diagnostics 2025-08-07 21:18:00 +00:00
duplicate-definition-inside-trait-impl.rs Delegation: fix ICE on wrong instantiation 2024-03-27 15:51:48 +03:00
duplicate-definition-inside-trait-impl.stderr Delegation: fix ICE on wrong instantiation 2024-03-27 15:51:48 +03:00
empty-glob.rs delegation: Implement glob delegation 2024-06-14 19:27:51 +03:00
empty-glob.stderr delegation: Implement glob delegation 2024-06-14 19:27:51 +03:00
empty-list.rs delegation: Implement list delegation 2024-05-15 02:32:59 +03:00
empty-list.stderr delegation: Implement list delegation 2024-05-15 02:32:59 +03:00
explicit-paths-in-traits-pass.rs Delegation: fix ICE on wrong instantiation 2024-03-27 15:51:48 +03:00
explicit-paths-pass.rs Delegation: support coercion for target expression 2024-07-16 18:03:15 +03:00
explicit-paths-signature-pass.rs Use cfg(false) in UI tests 2025-04-03 21:41:58 +00:00
explicit-paths.rs Delegation: support generics for delegation from free functions 2024-07-29 20:04:55 +03:00
explicit-paths.stderr Delegation: support generics for delegation from free functions 2024-07-29 20:04:55 +03:00
fn-header-variadic.rs Delegation: reject C-variadics 2025-03-12 17:14:51 +03:00
fn-header-variadic.stderr Delegation: reject C-variadics 2025-03-12 17:14:51 +03:00
fn-header.rs Add ignore-backends annotations in failing GCC backend ui tests 2025-07-23 13:48:04 +02:00
foreign-fn.rs Delegation: allow foreign fns reuse 2025-03-13 14:13:07 +03:00
foreign-fn.stderr Delegation: allow foreign fns reuse 2025-03-13 14:13:07 +03:00
glob-bad-path.rs Reword "crate not found" resolve message 2025-01-24 01:19:50 +00:00
glob-bad-path.stderr Reword "crate not found" resolve message 2025-01-24 01:19:50 +00:00
glob-glob-conflict.rs delegation: Implement glob delegation 2024-06-14 19:27:51 +03:00
glob-glob-conflict.stderr delegation: Implement glob delegation 2024-06-14 19:27:51 +03:00
glob-glob.rs delegation: Implement glob delegation 2024-06-14 19:27:51 +03:00
glob-non-fn.rs delegation: Implement glob delegation 2024-06-14 19:27:51 +03:00
glob-non-fn.stderr bless tests 2025-04-27 18:14:55 +02:00
glob-non-impl.rs Update tests. 2025-01-07 16:04:14 +01:00
glob-non-impl.stderr delegation: Implement glob delegation 2024-06-14 19:27:51 +03:00
glob-override.rs delegation: Implement glob delegation 2024-06-14 19:27:51 +03:00
glob-traitless-qpath.rs delegation: Do not crash on qpaths without a trait 2024-06-22 19:57:19 +03:00
glob-traitless-qpath.stderr delegation: Do not crash on qpaths without a trait 2024-06-22 19:57:19 +03:00
glob.rs delegation: Implement glob delegation 2024-06-14 19:27:51 +03:00
ice-isssue-128190.rs Delegation: fix ICE with invalid MethodCall generation 2025-03-10 17:08:29 +03:00
ice-isssue-128190.stderr Delegation: fix ICE with invalid MethodCall generation 2025-03-10 17:08:29 +03:00
ice-issue-122550.rs Delegation: fix ICE on bound_vars divergence 2024-03-22 17:24:41 +03:00
ice-issue-122550.stderr Delegation: support coercion for target expression 2024-07-16 18:03:15 +03:00
ice-issue-124342.rs Delegation: fix ICE on late diagnostics 2024-06-10 19:25:34 +03:00
ice-issue-124342.stderr Delegation: fix ICE on late diagnostics 2024-06-10 19:25:34 +03:00
ice-issue-124347.rs update/bless tests 2025-04-06 21:41:47 +02:00
ice-issue-124347.stderr update/bless tests 2025-04-06 21:41:47 +02:00
ice-issue-138362.rs Delegation: one more ICE fix for MethodCall generation 2025-03-12 15:59:37 +03:00
ice-issue-138362.stderr Delegation: one more ICE fix for MethodCall generation 2025-03-12 15:59:37 +03:00
impl-trait.rs delegation: Support async, const, extern "ABI" and C-variadic functions 2024-04-23 23:05:39 +03:00
inner-attr.rs delegation: Implement list delegation 2024-05-15 02:32:59 +03:00
inner-attr.stderr don't suggest turning crate-level attributes into outer style 2024-08-04 00:11:16 +08:00
list.rs delegation: Implement list delegation 2024-05-15 02:32:59 +03:00
macro-inside-glob.rs delegation: Implement glob delegation 2024-06-14 19:27:51 +03:00
macro-inside-list.rs delegation: Fix hygiene for self 2024-06-15 00:45:05 +03:00
method-call-choice.rs Delegation: support coercion for target expression 2024-07-16 18:03:15 +03:00
method-call-choice.stderr Delegation: support coercion for target expression 2024-07-16 18:03:15 +03:00
method-call-priority.rs Delegation: support coercion for target expression 2024-07-16 18:03:15 +03:00
parse.rs Delegation: fix ICE on wrong instantiation 2024-03-27 15:51:48 +03:00
rename.rs delegation: Implement list delegation 2024-05-15 02:32:59 +03:00
self-coercion.rs Delegation: support coercion for target expression 2024-07-16 18:03:15 +03:00
self-hygiene.rs delegation: Fix hygiene for self 2024-06-15 00:45:05 +03:00
self-hygiene.stderr delegation: Fix hygiene for self 2024-06-15 00:45:05 +03:00
target-expr-pass.rs Delegation: fix ICE on wrong instantiation 2024-03-27 15:51:48 +03:00
target-expr-pass.stderr Delegation: fix ICE on wrong instantiation 2024-03-27 15:51:48 +03:00
target-expr.rs Delegation: support generics for delegation from free functions 2024-07-29 20:04:55 +03:00
target-expr.stderr Delegation: support generics for delegation from free functions 2024-07-29 20:04:55 +03:00
unsupported.rs Don't trigger never type lint in a delegation test 2024-11-12 22:23:01 +01:00
unsupported.stderr Unconditionally run check_item_type on all items 2025-06-30 08:06:08 +00:00