| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2024-06-30 | Auto merge of #17516 - kilpkonn:master, r=kilpkonn | bors | -70/+8 | |
| Quality of life improvements to term search Basically two things: - Allow optionally disabling "borrow checking" restrictions on term search code assists. Sometimes it is better to get invalid suggestions and fix borrow checking issues later... - Remove explicit generics in generated expressions. I find it quite rare that one writes `None::<T>` instead of `None`. | ||||
| 2024-06-30 | Do not explicit generics to generated expressions | Tavo Annus | -70/+8 | |
| 2024-06-30 | Simplify | Lukas Wirth | -9/+6 | |
| 2024-06-30 | Fix expression scope calculation when within macro expansions | Lukas Wirth | -22/+30 | |
| 2024-06-24 | Shrink mbe's Op | Lukas Wirth | -2/+2 | |
| 2024-06-24 | Enum variants are not generic def ids | Lukas Wirth | -19/+17 | |
| 2024-06-24 | Auto merge of #17478 - kilpkonn:master, r=Veykril | bors | -437/+145 | |
| Simplify some term search tactics Working on the paper `@phijor` found that "Data constructor" tactic could be simplified quite a bit by running it only in the backwards direction. With n+1 rounds it has same coverage as previous implementation in n rounds, however the tactic it self is more simple and also potentially faster as there is less to do. In a nutshell the idea is to only work with types in the wish-list rather than with any types. Turns out it is quite a bit faster: Before: ``` ripgrep: Tail Expr syntactic hits: 238/1692 (14%) Tail Exprs found: 1223/1692 (72%) Term search avg time: 15ms nalgebra: Tail Expr syntactic hits: 125/3001 (4%) Tail Exprs found: 2143/3001 (71%) Term search avg time: 849ms ``` After ```` ripgrep: Tail Expr syntactic hits: 246/1692 (14%) Tail Exprs found: 1209/1692 (71%) Term search avg time: 8ms nalgebra: Tail Expr syntactic hits: 125/3001 (4%) Tail Exprs found: 2028/3001 (67%) Term search avg time: 305ms ```` _Also removed niche optimization of removing scope defs from the search space as this wasn't helping much anyway and made code a bit more complex._ | ||||
| 2024-06-22 | Fix suggestions of unstable constants | Tavo Annus | -4/+8 | |
| 2024-06-22 | Increase search depth to account for more granual steps | Tavo Annus | -1/+3 | |
| 2024-06-22 | Simplify `impl_method` tactic | Tavo Annus | -104/+41 | |
| 2024-06-22 | Simplify `impl_static_method` tactic | Tavo Annus | -102/+28 | |
| 2024-06-22 | Remove remove not-very-helpful optimizations | Tavo Annus | -47/+0 | |
| 2024-06-21 | Run `data_constructor` tactic only backwards | Tavo Annus | -183/+69 | |
| 2024-06-21 | fix: use ItemInNs::Macros to convert ModuleItem to ItemInNs | roife | -0/+1 | |
| 2024-06-20 | Auto merge of #17462 - Veykril:sema-attr-macro-res, r=Veykril | bors | -4/+4 | |
| fix: Fix IDE features breaking in some attr macros Fixes https://github.com/rust-lang/rust-analyzer/issues/17453, Fixes https://github.com/rust-lang/rust-analyzer/issues/17458 | ||||
| 2024-06-20 | fix: Fix IDE features breaking in some attr macros | Lukas Wirth | -4/+4 | |
| 2024-06-20 | Auto merge of #17419 - ishanjain28:filter_builtin_macro_expansion, r=Veykril | bors | -2/+48 | |
| Filter builtin macro expansion This PR adds a filter on the types of built in macros that are allowed to be expanded. Currently, This list of allowed macros contains, `stringify, cfg, core_panic, std_panic, concat, concat_bytes, include, include_str, include_bytes, env` and `option_env`. Fixes #14177 | ||||
| 2024-06-20 | Invert matching on builtin macros in expand_allowed_builtins | Lukas Wirth | -25/+21 | |
| 2024-06-19 | removed format_args from allowed expansions | Ishan Jain | -2/+1 | |
| 2024-06-18 | Add tactic for associated item constants | Tavo Annus | -20/+87 | |
| 2024-06-15 | Created expand_allowed_builtins, updated expand_macro to call this function | Ishan Jain | -0/+16 | |
| 2024-06-14 | allow format_args! expansion | Ishan Jain | -1/+2 | |
| 2024-06-14 | fixed tests | Ishan Jain | -1/+7 | |
| 2024-06-13 | internal: Fix rustdoc warnings | Wilfred Hughes | -11/+11 | |
| `cargo doc` generates a bunch of warnings on rust-analyzer. Fix all the bare URL and empty code block warnings. | ||||
| 2024-06-13 | hir/semantics: Only allow expansion of specific built in macros | Ishan Jain | -2/+30 | |
| 2024-06-12 | Auto merge of #17405 - Veykril:modpath-clone, r=Veykril | bors | -2/+2 | |
| internal: Don't unnecessarily clone ModPaths in early name res | ||||
| 2024-06-12 | internal: Don't unnecessarily clone ModPaths in early name res | Lukas Wirth | -2/+2 | |
| 2024-06-11 | refactor: move the logic that displays container type bounds to function fmt | roife | -45/+49 | |
| 2024-06-11 | fix: skip container header if no generics params | roife | -2/+2 | |
| 2024-06-11 | internal: simplify and rename display_xxx to write_xxx for consistency | roife | -33/+18 | |
| 2024-06-11 | feat: add hover config for showing container bounds | roife | -14/+22 | |
| 2024-06-11 | feat: show type bounds from containers for functions | roife | -5/+47 | |
| 2024-06-11 | internal: simplify and refactor write_where_clause | roife | -89/+97 | |
| 2024-06-10 | Remove extra parse cache from Semantics again | Lukas Wirth | -9/+1 | |
| 2024-06-10 | Thread more HasSource::source calls through Semantics for caching | Lukas Wirth | -58/+96 | |
| 2024-06-09 | Register virtual workspace Cargo.toml files in the VFS | Lukas Wirth | -0/+1 | |
| 2024-06-06 | chore: Prefer tracing span shorthand macros | Wilfred Hughes | -17/+14 | |
| 2024-06-05 | Resolve #17344 by using `.get(…)` instead of `[…]` in ↵ | Vincent Esche | -2/+2 | |
| `TypeOrConstParam::source(…)` (… and `LifetimeParam::source(…)`) | ||||
| 2024-06-04 | Use dyn cache for Semantics macro resolution | Lukas Wirth | -29/+27 | |
| 2024-06-04 | Cache parse trees in `Semantics` | Lukas Wirth | -2/+19 | |
| 2024-06-04 | Cache `file_to_def` in `SourceToDefCtx` | Lukas Wirth | -28/+40 | |
| 2024-06-04 | Try caching macro calls more aggressively | Lukas Wirth | -195/+304 | |
| 2024-06-04 | Cleanup some inert attribute stuff | Lukas Wirth | -15/+12 | |
| 2024-06-03 | Simplify | Lukas Wirth | -1/+1 | |
| 2024-06-03 | Auto merge of #17315 - hamirmahal:style/simplify-string-interpolation, r=Veykril | bors | -2/+2 | |
| style: simplify string interpolation | ||||
| 2024-06-03 | Auto merge of #17312 - regexident:function-fn-ptr-type, r=Veykril | bors | -0/+8 | |
| Add `Function::fn_ptr_type(…)` for obtaining name-erased function type The use case of this function if being able to group functions by their function ptr type. cc `@flodiebold` | ||||
| 2024-06-02 | feat: Enable completions within derive helper attributes | Lukas Wirth | -88/+133 | |
| 2024-06-01 | fix: Fix container search failing for tokens originating within derive ↵ | Lukas Wirth | -24/+24 | |
| attributes | ||||
| 2024-05-30 | style: simplify string interpolation | Hamir Mahal | -2/+2 | |
| 2024-05-29 | Add `Function::fn_ptr_type(…)` for obtaining name-erased function type | Vincent Esche | -0/+8 | |
