aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_def/src/diagnostics.rs
Commit message (Collapse)AuthorAgeFilesLines
* internal: move diagnostics to hirAleksey Kladov2021-05-251-227/+0
| | | | | | | | | | | | | | | | | | | | | | | 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.
* Include path in `unresolved-macro-call` diagnosticJonas Schievink2021-04-161-2/+3
|
* Fix missing unresolved macro diagnostic in function bodyBrandon2021-03-161-1/+1
|
* Fix spelling errorBrandon2021-03-141-1/+1
|
* For unresolved macros, hightlight only the last segmentAleksey Kladov2021-02-281-0/+28
|
* Expand doc on dealing with "proc macro not expanded"Luke Taylor2021-01-011-0/+4
| | | | | | Added the error message to the doc for the UnresolvedProcMacro diagnostic, explaining that either enabling the procMacro setting or disabling this diagnostic should make the warnings go away.
* More accurately place proc-macro diagnosticJonas Schievink2020-11-271-1/+4
|
* Publish diagnostics for macro expansion errorsJonas Schievink2020-11-271-0/+62
|
* Fix name of InactiveCode diagnosticJonas Schievink2020-10-231-1/+1
|
* Diagnose #[cfg]s in bodiesJonas Schievink2020-10-231-2/+9
|
* Use format_toJonas Schievink2020-10-231-4/+3
| | | | Co-authored-by: Aleksey Kladov <[email protected]>
* Emit better #[cfg] diagnosticsJonas Schievink2020-10-221-2/+12
|
* More detailed messageJonas Schievink2020-10-201-1/+1
|
* Rename UnconfiguredCode -> InactiveCodeJonas Schievink2020-10-201-3/+3
|
* Add a (hint) diagnostic for unconfigured itemsJonas Schievink2020-10-201-0/+25
|
* Add descriptions for diagnostics parseable by xtaskIgor Aleksanov2020-10-191-0/+9
|
* Mark unresolved imports diagnostic as experimentalJonas Schievink2020-09-281-0/+7
|
* Add diagnostic types for unresolved crates/importsJonas Schievink2020-09-161-0/+42
|
* Add type safety to diagnostic codesAleksey Kladov2020-08-181-3/+3
|
* Merge branch 'master' into add-disable-diagnosticsIgor Aleksanov2020-08-141-0/+3
|
* Rename ra_hir_def -> hir_defAleksey Kladov2020-08-131-0/+27