rust/tests/ui/type
Esteban Küber 1bd7934d89 Point at span within local macros even when error happens in nested external macro
```
error[E0308]: mismatched types
  --> $DIR/macro-span-caller-replacement.rs:5:17
   |
LL |             s = format!("{arg}");
   |                 ^^^^^^^^^^^^^^^^ expected `&str`, found `String`
...
LL |     macro_with_format!();
   |     -------------------- in this macro invocation
   |
   = note: this error originates in the macro `format` which comes from the expansion of the macro `macro_with_format` (in Nightly builds, run with -Z macro-backtrace for more info)
```
2025-12-10 19:27:40 +00:00
..
ascription Remove old diagnostic notes for type ascription syntax 2025-04-16 20:24:55 +10:00
auxiliary cleaned up some tests 2025-07-10 18:47:20 +05:00
pattern_types Use more accurate span in resolve_ident_in_lexical_scope 2025-11-03 16:24:35 +00:00
type-check compiletest: Do not require annotations on empty labels and suggestions 2025-05-03 22:49:23 +03:00
binding-assigned-block-without-tail-expression.rs
binding-assigned-block-without-tail-expression.stderr Implement DesugaringKind::FormatLiteral 2025-06-22 10:58:25 +02:00
cannot-find-wrapper-with-impl-trait.rs Merge E0412 into E0425 2025-12-02 18:25:13 +00:00
cannot-find-wrapper-with-impl-trait.stderr Merge E0412 into E0425 2025-12-02 18:25:13 +00:00
clarify-error-for-generics-with-default-issue-120785.rs
clarify-error-for-generics-with-default-issue-120785.stderr
closure-with-wrong-borrows.rs
closure-with-wrong-borrows.stderr
inherent-impl-primitive-types-error.rs cleaned up some tests 2025-07-01 16:26:57 +05:00
inherent-impl-primitive-types-error.stderr cleaned up some tests 2025-07-01 16:26:57 +05:00
issue-7607-1.rs
issue-7607-1.stderr Make typo in field and name suggestions verbose 2025-12-09 17:29:23 +00:00
issue-7607-2.rs Use non-2015 edition paths in tests that do not test for their resolution 2025-06-05 09:19:31 +02:00
issue-58355.rs
issue-58355.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
issue-67690-type-alias-bound-diagnostic-crash.rs Improve the impl and diag output of lint type_alias_bounds 2024-07-23 01:48:03 +02:00
issue-67690-type-alias-bound-diagnostic-crash.stderr Improve the impl and diag output of lint type_alias_bounds 2024-07-23 01:48:03 +02:00
issue-91268.rs compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
issue-91268.stderr compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
issue-94187-verbose-type-name.rs
issue-100584.rs
issue-100584.stderr Diagnose liveness on MIR. 2025-10-11 20:50:21 +00:00
issue-101866.rs
issue-101866.stderr
issue-102598.rs
issue-102598.stderr Add FnContext in parser for diagnostic 2025-08-14 21:31:47 +08:00
issue-103271.rs UI tests: add missing diagnostic kinds where possible 2025-04-08 23:06:31 +03:00
issue-103271.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
missing-let-in-binding-2.fixed
missing-let-in-binding-2.rs
missing-let-in-binding-2.stderr
missing-let-in-binding-3.rs
missing-let-in-binding-3.stderr
missing-let-in-binding-4.rs
missing-let-in-binding-4.stderr
missing-let-in-binding.fixed
missing-let-in-binding.rs
missing-let-in-binding.stderr Remove old diagnostic notes for type ascription syntax 2025-04-16 20:24:55 +10:00
mutually-recursive-types.rs cleaned up some tests 2025-07-01 15:29:29 +05:00
never-type-inference-fail.rs Cleaned up some tests 2025-12-08 07:06:13 +09:00
never-type-inference-fail.stderr Cleaned up some tests 2025-12-08 07:06:13 +09:00
option-ref-advice.rs compiletest: Improve diagnostics for line annotation mismatches 2025-06-23 21:30:56 +03:00
option-ref-advice.stderr
type-alias-bounds.rs Improve the impl and diag output of lint type_alias_bounds 2024-07-23 01:48:03 +02:00
type-alias-bounds.stderr Improve the impl and diag output of lint type_alias_bounds 2024-07-23 01:48:03 +02:00
type-annotation-needed.rs
type-annotation-needed.stderr
type-arg-out-of-scope.rs compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
type-arg-out-of-scope.stderr Add note to E0401 2025-11-03 16:24:36 +00:00
type-ascription-instead-of-initializer.rs
type-ascription-instead-of-initializer.stderr Use ordinal number in argument error 2024-07-14 13:50:09 +09:00
type-ascription-instead-of-statement-end.rs
type-ascription-instead-of-statement-end.stderr Remove old diagnostic notes for type ascription syntax 2025-04-16 20:24:55 +10:00
type-ascription-precedence.rs
type-ascription-precedence.stderr Remove old diagnostic notes for type ascription syntax 2025-04-16 20:24:55 +10:00
type-ascription-soundness.rs
type-ascription-soundness.stderr
type-ascription-with-fn-call.fixed
type-ascription-with-fn-call.rs
type-ascription-with-fn-call.stderr Remove old diagnostic notes for type ascription syntax 2025-04-16 20:24:55 +10:00
type-ascription.rs Diagnose liveness on MIR. 2025-10-11 20:50:21 +00:00
type-check-defaults.rs
type-check-defaults.stderr Point at span within local macros even when error happens in nested external macro 2025-12-10 19:27:40 +00:00
type-dependent-def-issue-49241.rs
type-dependent-def-issue-49241.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
type-error-break-tail.rs
type-error-break-tail.stderr
type-mismatch-multiple.rs compiletest: Make diagnostic kind mandatory on line annotations 2025-04-30 10:44:24 +03:00
type-mismatch-multiple.stderr compiletest: Make diagnostic kind mandatory on line annotations 2025-04-30 10:44:24 +03:00
type-mismatch-same-crate-name.rs Add a note when a type implements a trait with the same name as the required one 2025-11-11 17:36:43 +01:00
type-mismatch-same-crate-name.stderr Add a note when a type implements a trait with the same name as the required one 2025-11-11 17:36:43 +01:00
type-mismatch.rs
type-mismatch.stderr
type-name-basic.rs Allow static regions in type_name. 2025-09-08 19:35:47 +10:00
type-parameter-defaults-referencing-Self-ppaux.rs Use more detailed spans in dyn compat errors within bodies 2025-05-27 08:18:11 +00:00
type-parameter-defaults-referencing-Self-ppaux.stderr Use more detailed spans in dyn compat errors within bodies 2025-05-27 08:18:11 +00:00
type-parameter-defaults-referencing-Self.rs
type-parameter-defaults-referencing-Self.stderr Properly report error when object type param default references self 2025-01-24 04:07:10 +00:00
type-parameter-names.rs cleaned up some tests 2025-12-07 10:37:45 +09:00
type-parameter-names.stderr cleaned up some tests 2025-12-07 10:37:45 +09:00
type-params-in-different-spaces-1.rs compiletest: Make diagnostic kind mandatory on line annotations 2025-04-30 10:44:24 +03:00
type-params-in-different-spaces-1.stderr compiletest: Make diagnostic kind mandatory on line annotations 2025-04-30 10:44:24 +03:00
type-params-in-different-spaces-2.rs
type-params-in-different-spaces-2.stderr
type-params-in-different-spaces-3.rs
type-params-in-different-spaces-3.stderr
type-path-err-node-types.rs
type-path-err-node-types.stderr Merge E0412 into E0425 2025-12-02 18:25:13 +00:00
type-recursive-box-shadowed.rs
type-recursive-box-shadowed.stderr
type-recursive.rs
type-recursive.stderr
type-shadow.rs
type-shadow.stderr
type-unsatisfiable.rs
type-unsatisfiable.usage.stderr
typeid-consistency.rs cleaned up some tests 2025-07-10 18:47:20 +05:00
unit-type-basic-usages.rs cleaned up some tests 2025-07-10 18:50:35 +05:00
usize-no-generic-arguments.rs cleaned up some tests 2025-07-10 18:50:35 +05:00
usize-no-generic-arguments.stderr cleaned up some tests 2025-07-10 18:50:35 +05:00
verbose.normal.stderr
verbose.rs
verbose.verbose.stderr
wrong-call-return-type-due-to-generic-arg.rs
wrong-call-return-type-due-to-generic-arg.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00