Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge #8018 | bors[bot] | 2021-03-15 | 1 | -5/+29 |
|\ | | | | | | | | | | | | | | | | | | | 8018: Make Ty wrap TyKind in an Arc r=flodiebold a=flodiebold ... to further move towards Chalk. This is a bit of a slowdown (218ginstr vs 213ginstr for inference on RA), even though it allows us to unwrap the Substs in `TyKind::Ref` etc.. Co-authored-by: Florian Diebold <[email protected]> | ||||
| * | Don't use Substs for Ref/Raw/Array/Slice | Florian Diebold | 2021-03-14 | 1 | -5/+29 |
| | | |||||
* | | some clippy::performance fixes | Matthias Krüger | 2021-03-15 | 1 | -2/+1 |
|/ | | | | | | | use vec![] instead of Vec::new() + push() avoid redundant clones use chars instead of &str for single char patterns in ends_with() and starts_with() allocate some Vecs with capacity to avoid unneccessary resizing | ||||
* | More renaming | Florian Diebold | 2021-03-14 | 1 | -1/+1 |
| | |||||
* | Rename some fields to their Chalk names | Florian Diebold | 2021-03-14 | 1 | -2/+2 |
| | |||||
* | Move type lowering methods to TyLoweringContext | Florian Diebold | 2021-03-13 | 1 | -3/+3 |
| | |||||
* | Create TraitEnvironment through a query | Florian Diebold | 2021-03-13 | 1 | -5/+7 |
| | |||||
* | Use chalk_ir::PlaceholderIndex | Florian Diebold | 2021-03-13 | 1 | -1/+1 |
| | |||||
* | Use chalk_ir::FnDefId | Florian Diebold | 2021-03-13 | 1 | -4/+1 |
| | |||||
* | Use chalk_ir::AssocTypeId | Florian Diebold | 2021-03-13 | 1 | -2/+5 |
| | |||||
* | Separate `Ty` and `TyKind` like in Chalk | Florian Diebold | 2021-03-13 | 1 | -33/+34 |
| | | | | | Currently `Ty` just wraps `TyKind`, but this allows us to change most places to already use `intern` / `interned`. | ||||
* | Avoid double text edits when renaming mod declaration | Lukas Wirth | 2021-03-10 | 1 | -1/+0 |
| | |||||
* | Delete `ContainerId` | Jonas Schievink | 2021-03-09 | 1 | -21/+9 |
| | |||||
* | Stop using `ContainerId` in `AssocContainerId` | Jonas Schievink | 2021-03-09 | 1 | -2/+2 |
| | |||||
* | Merge #7942 | bors[bot] | 2021-03-09 | 1 | -7/+1 |
|\ | | | | | | | | | | | | | | | 7942: Show whether a binding is mutable or not on hover r=Veykril a=Veykril bors r+ Co-authored-by: Lukas Wirth <[email protected]> | ||||
| * | Show whether a binding is mutable or not on hover | Lukas Wirth | 2021-03-09 | 1 | -7/+1 |
| | | |||||
* | | Cleanup auto-ref in completion | Aleksey Kladov | 2021-03-09 | 1 | -4/+3 |
|/ | |||||
* | Merge #7873 #7933 | bors[bot] | 2021-03-09 | 1 | -0/+11 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7873: Consider unresolved qualifiers during flyimport r=matklad a=SomeoneToIgnore Closes https://github.com/rust-analyzer/rust-analyzer/issues/7679 Takes unresolved qualifiers into account, providing better completions (or none, if the path is resolved or do not match). Does not handle cases when both path qualifier and some trait has to be imported: there are many extra issues with those (such as overlapping imports, for instance) that will require large diffs to address. Also does not do a fuzzy search on qualifier, that requires some adjustments in `import_map` for better queries and changes to the default replace range which also seems relatively big to include here. ![qualifier_completion](https://user-images.githubusercontent.com/2690773/110040808-0af8dc00-7d4c-11eb-83db-65af94e843bb.gif) 7933: Improve compilation speed r=matklad a=matklad bors r+ 🤖 Co-authored-by: Kirill Bulatov <[email protected]> Co-authored-by: Aleksey Kladov <[email protected]> | ||||
| * | Refactor the import location | Kirill Bulatov | 2021-03-08 | 1 | -0/+11 |
| | | |||||
* | | Use `Type::new_with_resolver_inner` more | Jonas Schievink | 2021-03-09 | 1 | -26/+14 |
|/ | |||||
* | Hygiene is an internal implementation detail of the compiler | Aleksey Kladov | 2021-03-08 | 1 | -2/+5 |
| | |||||
* | Remove useless code_model indirection | Aleksey Kladov | 2021-03-08 | 1 | -28/+2114 |
| | |||||
* | Show docs on hover for keywords and primitives | Lukas Wirth | 2021-03-02 | 1 | -6/+5 |
| | |||||
* | Impl HasAttrs for GenericParam | Lukas Wirth | 2021-01-01 | 1 | -2/+3 |
| | |||||
* | Add ConstParams to the HIR | Lukas Wirth | 2021-01-01 | 1 | -3/+3 |
| | |||||
* | Track labels in the HIR | Lukas Wirth | 2020-12-24 | 1 | -2/+2 |
| | |||||
* | Align code_model name with ungrammar | Aleksey Kladov | 2020-12-20 | 1 | -3/+3 |
| | |||||
* | Rename ImplDef -> Impl | Aleksey Kladov | 2020-12-17 | 1 | -1/+1 |
| | | | | | | 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! | ||||
* | Add Lifetimes to the HIR | Lukas Wirth | 2020-12-11 | 1 | -4/+5 |
| | |||||
* | Make `original_range` a method on `InFile<&SyntaxNode>` | Jonas Schievink | 2020-12-08 | 1 | -1/+1 |
| | |||||
* | Remove hir_def/docs.rs module | Lukas Wirth | 2020-12-07 | 1 | -2/+1 |
| | |||||
* | Use `ExpandResult` instead of `MacroResult` | Jonas Schievink | 2020-11-26 | 1 | -1/+1 |
| | | | | `MacroResult` is redundant | ||||
* | hir_expand: propagate expansion errors | Jonas Schievink | 2020-11-24 | 1 | -2/+2 |
| | |||||
* | Remove query aliases | Kirill Bulatov | 2020-11-16 | 1 | -1/+1 |
| | |||||
* | Use imports_locator | Kirill Bulatov | 2020-11-16 | 1 | -1/+1 |
| | |||||
* | Add imports in auto completion | Kirill Bulatov | 2020-11-16 | 1 | -0/+1 |
| | |||||
* | Remove more unreachable pubs | Aleksey Kladov | 2020-11-02 | 1 | -1/+2 |
| | |||||
* | Shorten type hints for std::iter Iterators | Lukas Wirth | 2020-10-06 | 1 | -1/+1 |
| | |||||
* | Move ModPath->ast::Path function to IDE layer | Aleksey Kladov | 2020-10-06 | 1 | -5/+2 |
| | | | | closes #6092 | ||||
* | Make ImportPrefix a configuration option | Lukas Wirth | 2020-10-05 | 1 | -0/+1 |
| | |||||
* | Tease apart orthogonal concerns in markdown link rewriting | Aleksey Kladov | 2020-08-26 | 1 | -3/+1 |
| | | | | | | | | | | | | `hir` should know nothing about URLs, markdown and html. It should only be able to: * resolve stringy path from documentation * generate canonical stringy path for a def In contrast, link rewriting should not care about semantics of paths and names resolution, and should be concern only with text mangling bits. | ||||
* | Remove AttrDef | Aleksey Kladov | 2020-08-25 | 1 | -1/+1 |
| | |||||
* | Move attrs from code_module to a separate module | Aleksey Kladov | 2020-08-25 | 1 | -5/+6 |
| | |||||
* | Use the same abstraction for attrs and docs | Aleksey Kladov | 2020-08-25 | 1 | -1/+1 |
| | | | | | Doc comments *are* attributes, so there's no reason to have two crates here. | ||||
* | Renames, comments, and dead code removal | Zac Pullar-Strecker | 2020-08-24 | 1 | -2/+2 |
| | |||||
* | Merge remote-tracking branch 'upstream/master' into 503-hover-doc-links | Zac Pullar-Strecker | 2020-08-24 | 1 | -2/+5 |
| | |||||
* | Better API factoring around self access modes | Aleksey Kladov | 2020-08-19 | 1 | -1/+1 |
| | |||||
* | Add SelfParam to code_model | Aleksey Kladov | 2020-08-19 | 1 | -4/+4 |
| | |||||
* | Add new method to Semantics, method_receiver_kind, which returns the kind of ↵ | Paul Daniel Faria | 2020-08-16 | 1 | -1/+1 |
| | | | | | | | self The options are Shared, Mutable, Consuming, and Copied. Use this to add proper highlighting to methods based on usage. | ||||
* | Don't expose hir::Path out of hir | Aleksey Kladov | 2020-08-15 | 1 | -2/+5 |
| | | | | | | | | | | | | | | Conjecture: it's impossible to use hir::Path *correctly* from an IDE. I am not entirely sure about this, and we might need to add it back at some point, but I have to arguments that convince me that we probably won't: * `hir::Path` has to know about hygiene, which an IDE can't set up properly. * `hir::Path` lacks identity, but you actually have to know identity to resolve it correctly |