Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | internal: remove def-level diagnostics tests | Aleksey Kladov | 2021-06-13 | 1 | -23/+5 |
| | |||||
* | internal: refactor macro error | Aleksey Kladov | 2021-06-13 | 1 | -88/+0 |
| | |||||
* | internal: refactor inactive code diagnostics | Aleksey Kladov | 2021-06-13 | 1 | -33/+0 |
| | |||||
* | internal: move diagnostics to hir | Aleksey Kladov | 2021-05-25 | 1 | -8/+8 |
| | | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | Add failing local items test | Jonas Schievink | 2021-04-21 | 1 | -0/+8 |
| | |||||
* | Include path in `unresolved-macro-call` diagnostic | Jonas Schievink | 2021-04-16 | 1 | -1/+1 |
| | |||||
* | Update `OUT_DIR` diagnostic to match setting | Jonas Schievink | 2021-04-07 | 1 | -1/+1 |
| | |||||
* | Improve diagnostic when including nonexistent file | Jonas Schievink | 2021-03-17 | 1 | -1/+1 |
| | |||||
* | Fix missing unresolved macro diagnostic in function body | Brandon | 2021-03-16 | 1 | -0/+12 |
| | |||||
* | Use upstream cov-mark | Laurențiu Nicola | 2021-03-08 | 1 | -2/+1 |
| | |||||
* | Add `TestDB::module_at_position` | Jonas Schievink | 2021-02-09 | 1 | -100/+4 |
| | |||||
* | Don't keep the parent DefMap alive via Arc | Jonas Schievink | 2021-02-04 | 1 | -4/+3 |
| | | | | | This seems like it could easily leak a lot of memory since we don't currently run GC | ||||
* | Shortcut `block_def_map` if there's no inner items | Jonas Schievink | 2021-02-03 | 1 | -2/+2 |
| | | | | | This previously didn't work, but apparently only because of the wonky test setup | ||||
* | Use body lowering for block_def_map tests | Jonas Schievink | 2021-02-03 | 1 | -2/+114 |
| | | | | Removes the hacky and buggy custom lowering code | ||||
* | Revert "Use block_def_map in body lowering" | Jonas Schievink | 2021-02-02 | 1 | -114/+2 |
| | |||||
* | Use body lowering for block_def_map tests | Jonas Schievink | 2021-02-01 | 1 | -2/+114 |
| | | | | Removes the hacky and buggy custom lowering code | ||||
* | Add test for path resolution bug | Jonas Schievink | 2021-01-21 | 1 | -8/+33 |
| | |||||
* | Add test for `$crate` in builtin macros | Jonas Schievink | 2020-12-08 | 1 | -0/+28 |
| | | | | Fixes #6716 | ||||
* | Make `compile_error!` message match upstream rustc | Jonas Schievink | 2020-12-03 | 1 | -1/+1 |
| | | | | It only consists of the argument passed to it | ||||
* | Make `compile_error!` lazy and emit a diagnostic | Jonas Schievink | 2020-12-03 | 1 | -0/+6 |
| | |||||
* | Give better diagnostic if `OUT_DIR` is unset | Jonas Schievink | 2020-12-03 | 1 | -0/+3 |
| | |||||
* | Update/Fix tests | Jonas Schievink | 2020-12-03 | 1 | -4/+15 |
| | |||||
* | Test macro diagnostics in body lowering | Jonas Schievink | 2020-12-02 | 1 | -0/+41 |
| | |||||
* | Diagnose #[cfg]s in bodies | Jonas Schievink | 2020-10-23 | 1 | -0/+75 |