about summary refs log tree commit diff
path: root/tests/ui/associated-consts
AgeCommit message (Collapse)AuthorLines
2023-12-08Rollup merge of #118730 - jyn514:cmp_refs, r=estebank,compiler-errorsMatthias Krüger-2/+2
recurse into refs when comparing tys for diagnostics before: ![image](https://github.com/rust-lang/rust/assets/23638587/bf6abd62-c7f3-4c09-a47e-31b6e129de19) after: ![image](https://github.com/rust-lang/rust/assets/23638587/b704d728-ddba-4204-aebe-c07dcbbcb55c) this diff from the test suite is also quite nice imo: ```diff `@@` -4,8 +4,8 `@@` error[E0308]: mismatched types LL | debug_assert_eq!(iter.next(), Some(value)); | ^^^^^^^^^^^ expected `Option<<I as Iterator>::Item>`, found `Option<&<I as Iterator>::Item>` | - = note: expected enum `Option<<I as Iterator>::Item>` - found enum `Option<&<I as Iterator>::Item>` + = note: expected enum `Option<_>` + found enum `Option<&_>` ```
2023-12-07recurse into refs when comparing tys for diagnosticsjyn-2/+2
2023-12-07Resolve assoc item bindings by namespaceLeón Orell Valerian Liehr-47/+134
If a const is expected, resolve a const. If a type is expected, resolve a type. Don't try to resolve a type first falling back to consts.
2023-11-30generic_const_exprs: suggest to add the feature, not use itRalf Jung-1/+1
2023-11-24Show number in error message even for one errorNilstrieb-22/+22
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-10-25Work around the fact that `check_mod_type_wf` may spuriously return ↵Oli Scherer-3/+10
`ErrorGuaranteed`, even if that error is only emitted by `check_modwitem_types`
2023-10-20Avoid a `track_errors` by bubbling up most errors from `check_well_formed`Oli Scherer-92/+26
2023-10-17Unify suggestion wordingEsteban Küber-5/+3
2023-10-05Rollup merge of #116428 - Alexendoo:note-duplicate-diagnostics, ↵Matthias Krüger-0/+1
r=compiler-errors,estebank Add a note to duplicate diagnostics Helps explain why there may be a difference between manual testing and the test suite output and highlights them as something to potentially look into For existing duplicate diagnostics I just blessed them other than a few files that had other `NOTE` annotations in
2023-10-05Add a note to duplicate diagnosticsAlex Macleod-0/+1
2023-10-04Tweak wording of E0562Esteban Küber-1/+1
Fix #80476.
2023-09-14don't point at const usage site for resolution-time errorsRalf Jung-3/+3
also share the code that emits the actual error
2023-09-14move required_consts check to general post-mono-check functionRalf Jung-6/+46
2023-09-10Point out if a local trait has no implementationsMichael Goulet-0/+16
2023-09-01Fall through when resolving elided assoc const lifetimesMichael Goulet-0/+59
2023-08-25Handle Self in paths tooMichael Goulet-2/+2
2023-08-20Warn on elided lifetimes in associated constantsMichael Goulet-1/+17
2023-07-18moved note as unspanned note, moved note to the bottom of the msgnxya-20/+4
2023-07-18added links as a notenxya-4/+4
2023-07-18add links to query documentation for E0391nxya-4/+4
2023-07-18added links as a notenxya-4/+24
2023-07-18add links to query documentation for E0391nxya-4/+4
2023-07-15Check entry type as part of item type checking.Camille GILLOT-6/+6
2023-06-25Add a regression test for #110933Yuki Okushi-0/+20
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2023-06-11properly check associated consts for infer placeholdersMichael Goulet-0/+19
2023-04-23Don't create projection ty for const projectionMichael Goulet-0/+33
2023-04-15Only enable ConstProp at mir-opt-level >= 2.Camille GILLOT-8/+0
2023-04-14bless the single testEzra Shaw-0/+2
2023-03-21evaluate: improve and fix recursion depth handlinglcnr-1/+1
2023-02-22pluralize stuffMichael Goulet-1/+1
2023-02-14Better label for illegal impl trait typesMichael Goulet-1/+1
2023-01-30Modify primary span label for E0308Esteban Küber-1/+1
The previous output was unintuitive to users.
2023-01-11Move /src/test to /testsAlbert Larsan-0/+1958