aboutsummaryrefslogtreecommitdiff
path: root/crates/base_db/src/input.rs
Commit message (Collapse)AuthorAgeFilesLines
* Thread proc-macro types through the HIRJonas Schievink2021-05-291-1/+1
|
* Update `CrateGraph` commentJonas Schievink2021-05-241-5/+9
| | | | | `cfg` flags are now implemented, and crates *may* have names, it doesn't doesn't matter for name resolution
* Add one more profiling span to add_depLaurențiu Nicola2021-04-221-0/+1
|
* Improve readabilityAleksey Kladov2021-03-231-0/+1
|
* Align naming of deps and revdepsAleksey Kladov2021-03-231-4/+1
|
* Align semantics of deps and rev depsAleksey Kladov2021-03-231-2/+2
|
* Compute more mathematically well-rounded notion of transitive depsAleksey Kladov2021-03-231-1/+3
| | | | | | | | By including the crate itself, we make the resulting set closed with respect to `transitve_reveres_dependencies` operation, as it becomes a proper transitive closure. This just feels more proper and mathy. And, indeed, this actually allows us to simplify call sites somewhat.
* a lot of clippy::style fixesMatthias Krüger2021-03-211-1/+1
|
* Don't repeat work in transitive_reverse_dependenciesLukas Wirth2021-03-161-11/+10
|
* Implement Crate::transitive_reverse_dependenciesLukas Wirth2021-03-151-0/+28
|
* Fix warnings when running `cargo doc --document-private-items`Joshua Nelson2021-01-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These were the warnings previously: ``` warning: could not parse code block as Rust code --> crates/stdx/src/lib.rs:137:9 | 137 | /// ∀ x in slice[..idx]: pred(x) | _________^ 138 | | /// && ∀ x in slice[idx..]: !pred(x) | |____^ | = note: error from rustc: unknown start of token: \u{2200} warning: 1 warning emitted warning: unresolved link to `package` --> crates/base_db/src/input.rs:181:15 | 181 | /// it's [package].name, can be different for other project types or even | ^^^^^^^ no item named `package` in scope | = note: `#[warn(broken_intra_doc_links)]` on by default = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]` warning: unresolved link to `package` --> crates/base_db/src/input.rs:181:15 | 181 | /// it's [package].name, can be different for other project types or even | ^^^^^^^ no item named `package` in scope | = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]` warning: 2 warnings emitted warning: unresolved link to `package` --> crates/base_db/src/input.rs:181:15 | 181 | /// it's [package].name, can be different for other project types or even | ^^^^^^^ no item named `package` in scope | = note: `#[warn(broken_intra_doc_links)]` on by default = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]` warning: unresolved link to `package` --> crates/base_db/src/input.rs:181:15 | 181 | /// it's [package].name, can be different for other project types or even | ^^^^^^^ no item named `package` in scope | = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]` warning: 2 warnings emitted ``` This does *not* fix the following warning, because it is actually rust code and rustdoc is being over eager: ``` warning: Rust code block is empty --> crates/parser/src/grammar.rs:16:5 | 16 | //! ``` | _____^ 17 | | //! // test function_with_zero_parameters 18 | | //! // fn foo() {} 19 | | //! ``` | |_______^ | help: mark blocks that do not contain Rust code as text | 16 | //! ```text | ^^^^^^^ ``` https://github.com/rust-lang/rust/pull/79816 should make this configurable so the warning can be `allow`ed.
* Add support for Rust 2021.Mara Bos2021-01-011-2/+5
|
* Pass crate environment to proc macrosJonas Schievink2020-12-271-2/+10
|
* Move TokenExpander to base_db and rename itJonas Schievink2020-12-271-3/+8
| | | | It's only used to break the dependency to proc_macro_api
* Retain types of proc macros and allow attr. macrosJonas Schievink2020-12-071-4/+9
|
* Compress codeAleksey Kladov2020-11-171-2/+18
|
* Deny unreachable-pubAleksey Kladov2020-11-021-3/+1
| | | | | | | | 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.
* More type safety around namesAleksey Kladov2020-10-201-7/+20
|
* Introduce CrateDisplayNameAleksey Kladov2020-10-201-1/+23
|
* Rename declaration_name -> display_nameAleksey Kladov2020-10-201-9/+11
| | | | | | | | Declaration names sounds like a name of declaration -- something you can use for analysis. It empathically isn't, and is just a label displayed in various UI. It's important not to confuse the two, least we accidentally mix semantics with UI (I believe, there's already a case of this in the FamousDefs at least).
* Add a hacky remidy for #6038Aleksey Kladov2020-10-201-0/+23
| | | | | | | The proper fix I think is: * move rust-lang/rust library crates to a separate workspace * when packaging rust-src component, vendor sources of external deps
* Improve prime_caches and display its progressJonas Schievink2020-10-121-0/+28
|
* Properly name the fieldKirill Bulatov2020-10-021-6/+7
|
* Fix the hover dash issuesKirill Bulatov2020-10-021-2/+2
|
* Move most of the logic into the completion moduleKirill Bulatov2020-09-091-1/+7
|
* Rename ra_db -> base_dbAleksey Kladov2020-08-131-0/+453