aboutsummaryrefslogtreecommitdiff
path: root/crates/hir/src/has_source.rs
Commit message (Collapse)AuthorAgeFilesLines
* Return `Either` from `MacroDefId::ast_id`Jonas Schievink2021-03-191-10/+5
|
* Store an `AstId` for procedural macrosJonas Schievink2021-03-181-4/+11
|
* Make MacroDefId's `AstId` mandatory when possibleJonas Schievink2021-03-181-1/+1
|
* Obtain `ModuleId`'s `DefMap` through a methodJonas Schievink2021-01-221-3/+3
|
* Fix ConstParam HasSource impl and implement TryToNav not NavNick Spain2021-01-021-2/+2
|
* Remove old_source now we've fully migratedNick Spain2021-01-021-68/+0
| | | | Fixes #6913
* Mark HasSource::source_old as deprecated but allow at all call sitesNick Spain2021-01-021-0/+1
|
* Implement new HasSource::source for all implementors of HasSourceNick Spain2021-01-021-0/+66
|
* HasSource::source -> HasSource::source_oldNick Spain2021-01-021-15/+15
| | | | To start migrating HasSource::source to return an Option.
* Add ConstParams to the HIRLukas Wirth2021-01-011-2/+10
|
* Align code_model name with ungrammarAleksey Kladov2020-12-201-3/+3
|
* Rename ImplDef -> ImplAleksey Kladov2020-12-171-3/+3
| | | | | | We used to have `Def` suffix for all symbols, but we moved off from that. `FunctionDef` isn't better than `Function`. Looks like we've forgot to change `Impl` though!
* Merge #6897bors[bot]2020-12-161-2/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | 6897: Basic support for macros 2.0 r=jonas-schievink a=jonas-schievink This adds support for (built-in-only) macros 2.0, and removes some hacks used for builtin derives, which are declared via macros 2.0 in libcore. First steps for https://github.com/rust-analyzer/rust-analyzer/issues/2248. Blocked on https://github.com/rust-analyzer/ungrammar/pull/16. Co-authored-by: Jonas Schievink <[email protected]> Co-authored-by: Jonas Schievink <[email protected]>
| * Basic support for decl macros 2.0Jonas Schievink2020-12-151-2/+2
| |
* | Merge #6879bors[bot]2020-12-151-2/+2
|\ \ | |/ |/| | | | | | | | | | | 6879: Change HasChildSource::ChildId assoc item to generic param r=matklad a=Veykril Co-authored-by: Lukas Wirth <[email protected]>
| * Change HasChildSource::ChildId assoc item to generic paramLukas Wirth2020-12-151-2/+2
| |
* | Move to upstream `macro_rules!` modelJonas Schievink2020-12-151-2/+2
|/
* Add LifetimeParam resolving to SemanticsLukas Wirth2020-12-141-3/+11
|
* Remove more unreachable pubsAleksey Kladov2020-11-021-2/+1
|
* synchronizing changesDmitry2020-08-141-1/+1
|
* Rename ra_hir -> hirAleksey Kladov2020-08-131-0/+135