Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | internal: move diagnostics to hir | Aleksey Kladov | 2021-05-25 | 1 | -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` diagnostic | Jonas Schievink | 2021-04-16 | 1 | -2/+3 |
| | |||||
* | Fix missing unresolved macro diagnostic in function body | Brandon | 2021-03-16 | 1 | -1/+1 |
| | |||||
* | Fix spelling error | Brandon | 2021-03-14 | 1 | -1/+1 |
| | |||||
* | For unresolved macros, hightlight only the last segment | Aleksey Kladov | 2021-02-28 | 1 | -0/+28 |
| | |||||
* | Expand doc on dealing with "proc macro not expanded" | Luke Taylor | 2021-01-01 | 1 | -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 diagnostic | Jonas Schievink | 2020-11-27 | 1 | -1/+4 |
| | |||||
* | Publish diagnostics for macro expansion errors | Jonas Schievink | 2020-11-27 | 1 | -0/+62 |
| | |||||
* | Fix name of InactiveCode diagnostic | Jonas Schievink | 2020-10-23 | 1 | -1/+1 |
| | |||||
* | Diagnose #[cfg]s in bodies | Jonas Schievink | 2020-10-23 | 1 | -2/+9 |
| | |||||
* | Use format_to | Jonas Schievink | 2020-10-23 | 1 | -4/+3 |
| | | | | Co-authored-by: Aleksey Kladov <[email protected]> | ||||
* | Emit better #[cfg] diagnostics | Jonas Schievink | 2020-10-22 | 1 | -2/+12 |
| | |||||
* | More detailed message | Jonas Schievink | 2020-10-20 | 1 | -1/+1 |
| | |||||
* | Rename UnconfiguredCode -> InactiveCode | Jonas Schievink | 2020-10-20 | 1 | -3/+3 |
| | |||||
* | Add a (hint) diagnostic for unconfigured items | Jonas Schievink | 2020-10-20 | 1 | -0/+25 |
| | |||||
* | Add descriptions for diagnostics parseable by xtask | Igor Aleksanov | 2020-10-19 | 1 | -0/+9 |
| | |||||
* | Mark unresolved imports diagnostic as experimental | Jonas Schievink | 2020-09-28 | 1 | -0/+7 |
| | |||||
* | Add diagnostic types for unresolved crates/imports | Jonas Schievink | 2020-09-16 | 1 | -0/+42 |
| | |||||
* | Add type safety to diagnostic codes | Aleksey Kladov | 2020-08-18 | 1 | -3/+3 |
| | |||||
* | Merge branch 'master' into add-disable-diagnostics | Igor Aleksanov | 2020-08-14 | 1 | -0/+3 |
| | |||||
* | Rename ra_hir_def -> hir_def | Aleksey Kladov | 2020-08-13 | 1 | -0/+27 |