summary refs log tree commit diff
path: root/src/test/ui/resolve
AgeCommit message (Collapse)AuthorLines
2022-10-27use proper spansBoxy-20/+39
2022-10-27DoItBoxy-82/+16
2022-10-25Rollup merge of #103350 - clubby789:refer-to-assoc-method, r=wesleywiserYuki Okushi-9/+44
Change terminology for assoc method suggestions when they are not called Fixes #103325 ```@rustbot``` label +A-diagnostics
2022-10-21Update UI testsclubby789-9/+44
2022-10-21Rollup merge of #103111 - cjgillot:shadow-label, r=estebankDylan DPC-4/+9
Account for hygiene in typo suggestions, and use them to point to shadowed names Fixes https://github.com/rust-lang/rust/issues/97459 r? `@estebank`
2022-10-20Rollup merge of #103221 - TaKO8Ki:fix-103202, r=oli-obkMatthias Krüger-0/+16
Fix `SelfVisitor::is_self_ty` ICE Fixes #103202
2022-10-19instantiate -> constructMichael Goulet-3/+3
2022-10-19fix `SelfVisitor::is_self_ty` ICETakayuki Maeda-0/+16
2022-10-16Point to shadowed name when it exists.Camille GILLOT-4/+9
2022-10-12fix #102946Takayuki Maeda-0/+33
2022-10-05Delay function resolution error until typeckMichael Goulet-202/+202
2022-09-24Add testMichael Goulet-0/+11
2022-09-24Only record extra lifetime params for async trait fn with no bodyMichael Goulet-4/+4
2022-09-24Resolve async fn signature even without body (in trait)Michael Goulet-4/+4
2022-09-23Rollup merge of #100734 - ComputerDruid:afit_feature, r=compiler-errorsMatthias Krüger-2/+2
Split out async_fn_in_trait into a separate feature PR #101224 added support for async fn in trait desuraging behind the `return_position_impl_trait_in_trait` feature. Split this out so that it's behind its own feature gate, since async fn in trait doesn't need to follow the same stabilization schedule.
2022-09-21Split out async_fn_in_trait into a separate featureDan Johnson-2/+2
PR #101224 added support for async fn in trait desuraging behind the return_position_impl_trait_in_trait feature. Split this out so that it's behind its own feature gate, since async fn in trait doesn't need to follow the same stabilization schedule.
2022-09-22Bless test output changesFrank Steffahn-1/+1
2022-09-09Bless tests, fix ICE with ImplTraitPlaceholderMichael Goulet-30/+14
2022-09-03Shrink suggestion span of argument mismatch errorMichael Goulet-1/+1
2022-08-31Rollup merge of #101161 - ldm0:ldm_fix_diagnostic, r=cjgillotMatthias Krüger-15/+45
Fix uintended diagnostic caused by `drain(..)` Calling `drain(..)` makes later `suggestable_variants.is_empty()` always true, which makes the diagnostics unintended.
2022-08-31Fix uintended diagnostic caused by `drain(..)`Donough Liu-15/+45
2022-08-28More descriptive argument placeholdersMichael Goulet-6/+6
2022-08-23Improve local generic parameter suggestions.Camille GILLOT-19/+21
2022-08-18Rollup merge of #100643 - ↵Matthias Krüger-0/+33
TaKO8Ki:point-at-type-parameter-shadowing-another-type, r=estebank Point at a type parameter shadowing another type This patch fixes a part of #97459.
2022-08-17point at a type parameter shadowing another typeTakayuki Maeda-0/+33
2022-08-11Suggest path separator when a dot is used on a traitLeón Orell Valerian Liehr-34/+356
2022-08-05Rollup merge of #99835 - ↵Dylan DPC-2/+16
TaKO8Ki:suggest-adding-or-removing-ref-for-binding-pattern, r=estebank Suggest adding/removing `ref` for binding patterns This fixes what a fixme comment says. r? `@estebank`
2022-07-28Remove guess_head_span.Camille GILLOT-2/+8
2022-07-28suggest adding/removing `ref` for binding patternsTakayuki Maeda-2/+16
2022-07-25Report elision failures on the AST.Camille GILLOT-1/+1
2022-07-20take opaq typesouz-a-8/+17
2022-07-16Be more precise when suggesting removal of parens on unit adt ctorMichael Goulet-6/+6
2022-07-11Mention similarly named associated type even if it's not clearly in supertraitMichael Goulet-0/+21
2022-07-06use `named_span` in case of tuple variantTakayuki Maeda-3/+3
2022-07-01Shorten def_span for more items.Camille GILLOT-14/+14
2022-06-19Mention what item is using an invalid `Self` typeMichael Goulet-4/+77
2022-06-16 fix one more case of trailing spaceklensy-6/+6
2022-06-16diagnostics: fix trailing spaceklensy-10/+10
2022-06-15Rollup merge of #97822 - compiler-errors:hesitate-to-suggest-intrinsics, ↵Yuki Okushi-0/+35
r=oli-obk Filter out intrinsics if we have other import candidates to suggest Fixes #97618 Also open to just sorting these candidates to be last. Pretty easy to modify the code to do that, too.
2022-06-14implement valtrees as the type-system representation for constant valuesb-naber-2/+10
2022-06-07Filter out intrinsics if we have other import candidates to suggestMichael Goulet-0/+35
2022-06-02add new `emit_inference_failure_err`lcnr-1/+6
2022-06-01Rollup merge of #97264 - ↵Matthias Krüger-0/+14
TaKO8Ki:suggest-extern-crate-when-failing-to-resolve-use-crate, r=estebank Suggest `extern crate foo` when failing to resolve `use foo` closes #97095 r? ``@estebank``
2022-05-25suggest `extern crate foo` when failing to resolve `use foo`Takayuki Maeda-0/+14
fix ci error
2022-05-24Rollup merge of #97240 - TaKO8Ki:improve-errors-about-typos-on-variables, ↵Yuki Okushi-0/+155
r=compiler-errors Typo suggestion for a variable with a name similar to struct fields closes #97133
2022-05-23add typo suggestions for all `AssocSuggestion` variantsTakayuki Maeda-4/+104
2022-05-21Remove `crate` visibility modifier in libs, testsJacob Pratt-4/+2
2022-05-21typo suggestion for a variable with a name similar to struct fieldsTakayuki Maeda-0/+55
2022-05-06Resolve vars in note_type_errJack Huey-2/+2
2022-05-05Rollup merge of #96507 - TaKO8Ki:suggest-calling-associated-function, r=lcnrMatthias Krüger-0/+10
Suggest calling `Self::associated_function()` closes #96453