aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_def/src/test_db.rs
Commit message (Collapse)AuthorAgeFilesLines
* Remove redundant clonesYoshua Wuyts2021-02-051-1/+1
|
* Create all `ModuleId`s through a `DefMap` methodJonas Schievink2021-01-251-3/+3
| | | | | `ModuleId` needs to be able to represent blocks, and only the associated `DefMap` will know how to construct that `ModuleId`
* Make public DefMap fields privateJonas Schievink2021-01-201-3/+3
|
* Introduce anchored_pathAleksey Kladov2020-12-091-3/+3
| | | | | They allow to represent paths like `#[path = "C:\path.rs"] mod foo;` in a lossless cross-platform & network-transparent way.
* Use `original_file_range` in `TestDB`Jonas Schievink2020-12-081-9/+3
|
* Handle macros in `TestDB::check_diagnostics`Jonas Schievink2020-12-081-2/+9
|
* Deny unreachable-pubAleksey Kladov2020-11-021-7/+7
| | | | | | | | It's very useful when `pub` is equivalent to "this is crate's public API", let's enforce this! Ideally, we should enforce it for local `cargo test`, and only during CI, but that needs https://github.com/rust-lang/cargo/issues/5034.
* Diagnose #[cfg]s in bodiesJonas Schievink2020-10-231-3/+41
|
* Add annotation-based nameres diagnostic testsJonas Schievink2020-09-161-0/+42
|
* Rename ra_hir_def -> hir_defAleksey Kladov2020-08-131-0/+101