aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_ty/src/diagnostics.rs
Commit message (Collapse)AuthorAgeFilesLines
* internal: move diagnostics infra to hirAleksey Kladov2021-06-121-149/+7
|
* Move some hir_ty diagnostics to hirAleksey Kladov2021-06-121-397/+6
|
* internal: move missing unsafe diagnostic to hirAleksey Kladov2021-06-121-27/+4
|
* internal: move inference diagnostics to hirAleksey Kladov2021-06-121-185/+0
|
* minor: it's Parameter, not ArgumentAleksey Kladov2021-05-311-2/+2
|
* internal: move diagnostics to hirAleksey Kladov2021-05-251-6/+6
| | | | | | | | | | | | | | | | | | | | | | | The idea here is to eventually get rid of `dyn Diagnostic` and `DiagnosticSink` infrastructure altogether, and just have a `enum hir::Diagnostic` instead. The problem with `dyn Diagnostic` is that it is defined in the lowest level of the stack (hir_expand), but is used by the highest level (ide). As a first step, we free hir_expand and hir_def from `dyn Diagnostic` and kick the can up to `hir_ty`, as an intermediate state. The plan is then to move DiagnosticSink similarly to the hir crate, and, as final third step, remove its usage from the ide. One currently unsolved problem is testing. You can notice that the test which checks precise diagnostic ranges, unresolved_import_in_use_tree, was moved to the ide layer. Logically, only IDE should have the infra to render a specific range. At the same time, the range is determined with the data produced in hir_def and hir crates, so this layering is rather unfortunate. Working on hir_def shouldn't require compiling `ide` for testing.
* More cleanups / module docsFlorian Diebold2021-04-091-1/+1
|
* Prefer names from outer DefMap over extern preludeJonas Schievink2021-03-101-0/+29
|
* Add testLaurențiu Nicola2021-02-201-0/+24
|
* Merge #7574bors[bot]2021-02-051-1/+1
|\ | | | | | | | | | | | | | | | | | | 7574: Remove various redundant clones r=kjeremy a=yoshuawuyts I noticed when running clippy through RA that there are a few instances where `clone` is called where it's not actually needed. I figured a small patch to remove these might be welcome here. Thanks! Co-authored-by: Yoshua Wuyts <[email protected]>
| * Remove redundant clonesYoshua Wuyts2021-02-051-1/+1
| |
* | Cleanup decl_checkLukas Wirth2021-02-051-1/+32
|/
* Update tests to register the required standard library typesPhil Ellison2021-01-231-10/+38
|
* Fix test namesPhil Ellison2021-01-231-4/+4
|
* Implement fix, add testsPhil Ellison2021-01-231-8/+48
|
* Add diagnostic for filter_map followed by nextPhil Ellison2021-01-231-4/+44
|
* Make public DefMap fields privateJonas Schievink2021-01-201-1/+1
|
* Add fix to wrap return expression in SomePhil Ellison2021-01-071-6/+9
|
* decl_check: don't pass `db` around so oftenJonas Schievink2020-12-171-4/+11
|
* Added remove this semicolon testivan7702020-12-121-0/+10
|
* Remove this semicolonivan7702020-12-081-0/+24
|
* Add descriptions for diagnostics parseable by xtaskIgor Aleksanov2020-10-191-0/+55
|
* Keep SyntaxNodePtr::range privateIgor Aleksanov2020-10-121-2/+2
|
* Fix code style issuesIgor Aleksanov2020-10-121-1/+1
|
* Make incorrect case diagnostic work inside of functionsIgor Aleksanov2020-10-121-1/+3
|
* Add diagnostics for enum names and variantsIgor Aleksanov2020-10-121-1/+1
|
* Add fix for incorrect case diagnosticIgor Aleksanov2020-10-121-1/+1
|
* Add check for structure names to be CamelCaseIgor Aleksanov2020-10-121-1/+1
|
* Add checks for function parametersIgor Aleksanov2020-10-121-1/+3
|
* Create basic support for names case checks and implement function name case ↵Igor Aleksanov2020-10-121-3/+78
| | | | check
* Add type safety to diagnostic codesAleksey Kladov2020-08-181-17/+17
|
* Merge branch 'master' into add-disable-diagnosticsIgor Aleksanov2020-08-141-0/+25
|
* Rename ra_hir_ty -> hir_tyAleksey Kladov2020-08-131-0/+444