about summary refs log tree commit diff
path: root/crates/hir-def/src/attr.rs
AgeCommit message (Collapse)AuthorLines
2024-01-10Auto merge of #16274 - dfireBird:completion_score, r=Veykrilbors-0/+7
Add notable_trait predicate to `CompletionRelevance` Given a score of 1 for now, will change as per reviews needed.
2024-01-09Don't allocate `DefDatabase::crate_lang_items` if its emptyLukas Wirth-1/+1
2024-01-08add notable_trait predicate to `CompletionRelevance`dfireBird-0/+7
implement the predicate set on the case function from traits
2023-12-20Move Intern and Lookup traits to hir-expandLukas Wirth-9/+12
2023-11-28Rename hygiene vars and fields to span_mapLukas Wirth-28/+25
2023-11-28spans always come from real fileLukas Wirth-43/+7
2023-11-28Replace ID based TokenMap with proper relative text-ranges / spansLukas Wirth-22/+67
2023-10-04Recognize custom main function as binary entrypoint for runnablesLukas Wirth-0/+4
2023-09-02Remove markdown module from rust-analyzer crateLukas Wirth-3/+1
2023-09-02Move doc comment handling into ide-dbLukas Wirth-170/+3
2023-08-10Deduplicate FileId field in ModuleOriginLukas Wirth-1/+1
2023-08-10Derive block attributes from block item treeLukas Wirth-6/+4
2023-08-02Add currently unused UseId variantsLukas Wirth-0/+2
2023-07-06Replace `x` with `it`hkalbasi-4/+4
2023-07-03Format let-elseLukas Wirth-7/+10
2023-06-28Fix runnable detection for `#[tokio::test]`hkalbasi-1/+8
2023-06-22Add run-tests commandhkalbasi-0/+12
2023-06-19HIR ExternCrateDeclLukas Wirth-0/+2
2023-05-24expand: Change how `#![cfg(FALSE)]` behaves on crate rootLukas Wirth-0/+1
2023-05-18internal: Less file parsing for symbol index generationLukas Wirth-1/+1
2023-05-02Use triomphe ArcLaurențiu Nicola-1/+2
2023-04-17Move Expander and LowerCtx into separate modulesLukas Wirth-31/+55
2023-04-16Option begone part 2Lukas Wirth-2/+2
2023-04-14internal: Put Attrs behind a query instead of AttsWithOwnerLukas Wirth-7/+8
2023-04-11completion: check stabilityRyo Yoshida-0/+4
2023-04-06Move hir_def::builtin_attr to hir_def::attr::builtinLukas Wirth-0/+2
2023-04-05Auto merge of #14433 - hecatia-elegua:alias-based-completion, r=Veykrilbors-0/+112
Add doc-alias based completion Closes #14406. I adapted the parsing code from the CfgExpr parsing code, maybe there's a better abstraction for both, or attribute parsing in general. It also includes `doc(hidden)`-parsing, which means it could replace the other function. There are a few tests for parsing. `process_all_names` changed the most, I added some docs there to explain what happens. Many call sites just pass an empy vec to `add_path_resolution`'s `doc_aliases`, since either it doesn't make sense to pass anything (e.g. visibility completion) or I don't know where to get them from. Shouldn't really matter, as it will just not show aliases if the vec is empty and we can extend alias completion in these cases later. I added two tests in `special.rs` for struct name completion (which was the main thing I wanted). I also tried function and field names, but these don't work yet. I want to add those in a follow-up PR.
2023-04-02Add note for future me or othershecatia-elegua-0/+1
2023-03-30Address review comments part 1hecatia-elegua-8/+11
2023-03-30Auto merge of #14445 - Veykril:adt-flags, r=Veykrilbors-2/+7
internal: Introduce StructFlags
2023-03-30internal: Add config to specifiy lru capacities for all queriesLukas Wirth-0/+3
2023-03-30Introduce StructFlagsLukas Wirth-2/+7
2023-03-29Fix3hecatia-elegua-4/+1
2023-03-29Fixhecatia-elegua-1/+0
2023-03-29Add doc-alias based completionhecatia-elegua-0/+112
2023-03-04Lower and handle trait aliases in HIRRyo Yoshida-0/+2
2023-03-04refactor: leverage `HasAttrs` for code brevityRyo Yoshida-36/+10
2023-01-31Make tt generic over the span dataLukas Wirth-3/+2
2023-01-13Auto merge of #13922 - danieleades:loop-that-never-loops, r=lnicolabors-11/+10
minor: loop-that-never-loops closes #13921
2023-01-11move loop index inside iteratordaniel.eades-10/+9
2023-01-10loop-that-never-loopsDaniel Eades-9/+9
2023-01-09Encode one level of cfg_attr in attr_idLukas Wirth-1/+1
2023-01-09Split out hir-def attribute handling parts into hir-expandLukas Wirth-313/+19
2022-12-24Inline all format arguments where possibleYuri Astrakhan-1/+1
This makes code more readale and concise, moving all format arguments like `format!("{}", foo)` into the more compact `format!("{foo}")` form. The change was automatically created with, so there are far less change of an accidental typo. ``` cargo clippy --fix -- -A clippy::all -W clippy::uninlined_format_args ```
2022-07-30fix: Fix ast-id up when merging raw attributesLukas Wirth-5/+16
2022-07-22Use ItemTree for modules in attrs_queryLukas Wirth-18/+11
2022-07-21Use ItemTree for crate root attr_query collectionLukas Wirth-20/+37
2022-07-21internal: Use itemtree for variant and field attribute collectionLukas Wirth-20/+72
2022-05-05fix: add docs and remove unnecessary checkrainy-me-4/+6
2022-05-05fix: doc url link typerainy-me-0/+17