Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| | * | Reorder imports | Jonas Schievink | 2020-06-05 | 3 | -5/+7 | |
| | | | ||||||
| | * | Make `find_path_inner` private again | Jonas Schievink | 2020-06-05 | 1 | -1/+1 | |
| | | | ||||||
| | * | defining_crate -> krate | Jonas Schievink | 2020-06-05 | 2 | -2/+3 | |
| | | | ||||||
| | * | Fix wrong comment | Jonas Schievink | 2020-06-05 | 1 | -1/+1 | |
| | | | ||||||
| | * | Use `ImportMap` in `find_path`, remove old queries | Jonas Schievink | 2020-06-04 | 3 | -97/+140 | |
| | | | ||||||
| | * | Add an ImportMap | Jonas Schievink | 2020-06-04 | 6 | -12/+358 | |
| |/ | ||||||
* | | More direct signature for resolve_path | Aleksey Kladov | 2020-06-05 | 2 | -3/+3 | |
| | | ||||||
* | | Rename resolve_relative_path -> resolve_path | Aleksey Kladov | 2020-06-05 | 2 | -7/+3 | |
|/ | | | | For things like `concant!(env!("OUT_DIR"))`, we need to support abs paths | |||||
* | Fix type inference failure when built with log/kv_unstable | David Tolnay | 2020-06-04 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | | | | | | | | | This code is broken by an `impl From<kv::Error> for fmt::Error` in the log crate when building in a codebase that has the log/kv_unstable feature enabled. $ cargo check --manifest-path crates/ra_hir_def/Cargo.toml Checking ra_hir_def v0.1.0 Finished dev [unoptimized] target(s) in 0.75s $ cargo check --manifest-path crates/ra_hir_def/Cargo.toml --features log/kv_unstable Checking ra_hir_def v0.1.0 error[E0282]: type annotations needed for the closure `fn(&str) -> std::result::Result<(), _>` --> crates/ra_hir_def/src/path.rs:278:17 | 278 | f.write_str("::")?; | ^^^^^^^^^^^^^^^^^^ cannot infer type | help: give this closure an explicit return type without `_` placeholders | 276 | let mut add_segment = |s| -> std::result::Result<(), _> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |||||
* | Consolidate documentation expansion and merging | Aaron Loucks | 2020-06-03 | 1 | -0/+7 | |
| | | | | | | Removes the duplicated `expand_doc_attrs` and `merge_doc_comments_and_attrs` functions from `ra_ide` and exposes the same functionality via `ra_hir::Documentation::from_ast`. | |||||
* | Add basic hover and completion doc tests for macro generated items | Aaron Loucks | 2020-06-03 | 1 | -1/+1 | |
| | ||||||
* | Enable hover and autocomplete docs on macro generated items | Aaron Loucks | 2020-06-03 | 2 | -3/+48 | |
| | ||||||
* | Add highlight support for unsafe fn calls and raw ptr deref | Paul Daniel Faria | 2020-06-02 | 1 | -1/+5 | |
| | ||||||
* | fmt | robojumper | 2020-05-31 | 2 | -11/+21 | |
| | ||||||
* | correctly infer labelled breaks | robojumper | 2020-05-31 | 3 | -19/+60 | |
| | ||||||
* | Support raw_ref_op's raw reference operator | robojumper | 2020-05-28 | 3 | -4/+34 | |
| | ||||||
* | Pass trivially copy types as copy | kjeremy | 2020-05-26 | 1 | -1/+1 | |
| | ||||||
* | Fix some clippy perf warnings | Jeremy Kolb | 2020-05-25 | 1 | -1/+1 | |
| | ||||||
* | Merge pull request #4548 from bnjjj/fix_4464 | Aleksey Kladov | 2020-05-24 | 2 | -2/+2 | |
|\ | | | | | add support of feature flag for runnables | |||||
| * | add support of feature flag for runnables #4464 | Benjamin Coenen | 2020-05-21 | 14 | -112/+111 | |
| |\ | | | | | | | | | | Signed-off-by: Benjamin Coenen <[email protected]> | |||||
| * | | add support of feature flag for runnables #4464 | Benjamin Coenen | 2020-05-21 | 2 | -2/+2 | |
| | | | | | | | | | | | | Signed-off-by: Benjamin Coenen <[email protected]> | |||||
* | | | Provide Chalk well-known traits | Florian Diebold | 2020-05-22 | 1 | -4/+8 | |
| |/ |/| | ||||||
* | | Make `find_path_inner` a query | Jonas Schievink | 2020-05-20 | 2 | -4/+7 | |
| | | | | | | | | | | This eliminates any remaining performance problems in the "Implement default members" assist (at least that I've found). | |||||
* | | Switch to new magic marks | Aleksey Kladov | 2020-05-20 | 13 | -79/+61 | |
| | | ||||||
* | | Cleanup query fn naming | Aleksey Kladov | 2020-05-19 | 2 | -3/+5 | |
| | | ||||||
* | | Move public API to the top | Aleksey Kladov | 2020-05-19 | 1 | -9/+9 | |
| | | ||||||
* | | Simplify | Aleksey Kladov | 2020-05-19 | 1 | -7/+3 | |
| | | ||||||
* | | Cleanup imports | Aleksey Kladov | 2020-05-19 | 1 | -3/+5 | |
| | | ||||||
* | | Merge #4501 | bors[bot] | 2020-05-18 | 2 | -5/+18 | |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4501: Querify `importable_locations_in_crate` r=jonas-schievink a=jonas-schievink This brings the time needed to compute the `add_missing_impl_members` assist down from ~5 minutes to 20 seconds on my test workload (which is editing within an impl of a MIR [`MutVisitor`](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/visit/trait.MutVisitor.html)) cc #4498 Co-authored-by: Jonas Schievink <[email protected]> | |||||
| * | | Querify `importable_locations_in_crate` | Jonas Schievink | 2020-05-18 | 2 | -5/+18 | |
| |/ | | | | | | | | | This brings the time needed to compute the `add_missing_impl_members` assist down from ~5 minutes to 20 seconds | |||||
* / | Create LowerCtx on the fly | Edwin Cheng | 2020-05-17 | 1 | -9/+10 | |
|/ | ||||||
* | Handle `Self` in values and patterns | Florian Diebold | 2020-05-15 | 1 | -5/+13 | |
| | | | | | | | | | I.e. - `Self(x)` or `Self` in tuple/unit struct impls - `Self::Variant(x)` or `Self::Variant` in enum impls - the same in patterns Fixes #4454. | |||||
* | Highlight mutable statics as mutable | Matthew Jasper | 2020-05-10 | 2 | -8/+29 | |
| | ||||||
* | Rename ImplItem to AssocItem | Edwin Cheng | 2020-05-05 | 1 | -9/+9 | |
| | ||||||
* | Merge #4305 | bors[bot] | 2020-05-05 | 6 | -28/+61 | |
|\ | | | | | | | | | | | | | | | 4305: Favor types for record type struct in name resolution r=matklad a=edwin0cheng Fixed #4235 Co-authored-by: Edwin Cheng <[email protected]> | |||||
| * | invert if | Edwin Cheng | 2020-05-05 | 1 | -3/+3 | |
| | | ||||||
| * | Change union resolve types only | Edwin Cheng | 2020-05-04 | 2 | -2/+2 | |
| | | ||||||
| * | Change favor_types to has_constructor | Edwin Cheng | 2020-05-04 | 3 | -9/+9 | |
| | | ||||||
| * | Remove unused import | Edwin Cheng | 2020-05-04 | 1 | -2/+2 | |
| | | ||||||
| * | Fix test | Edwin Cheng | 2020-05-04 | 1 | -16/+16 | |
| | | ||||||
| * | Favor types for Record in name resolution | Edwin Cheng | 2020-05-04 | 4 | -12/+45 | |
| | | ||||||
* | | refactor: use attrsOwner directly in is_cfg_enabled | Benjamin Coenen | 2020-05-05 | 4 | -22/+15 | |
| | | | | | | | | Signed-off-by: Benjamin Coenen <[email protected]> | |||||
* | | Merge #4283 | bors[bot] | 2020-05-04 | 1 | -86/+60 | |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4283: Support macro for trait items r=matklad a=edwin0cheng Fixed #4039 r? @flodiebold Co-authored-by: Edwin Cheng <[email protected]> Co-authored-by: Edwin Cheng <[email protected]> | |||||
| * | | Fixes names for collect_item funtions | Edwin Cheng | 2020-05-04 | 1 | -25/+14 | |
| | | | ||||||
| * | | Support macro for trait items | Edwin Cheng | 2020-05-03 | 1 | -82/+67 | |
| |/ | ||||||
* / | add support of cfg attributes on enum variants #4279 | Benjamin Coenen | 2020-05-03 | 1 | -1/+7 | |
|/ | | | | Signed-off-by: Benjamin Coenen <[email protected]> | |||||
* | Merge #4234 | bors[bot] | 2020-05-02 | 6 | -5/+80 | |
|\ | | | | | | | | | | | | | | | | | | | | | | | 4234: Support local_inner_macros r=jonas-schievink a=edwin0cheng This PR implements `#[macro_export(local_inner_macros)]` support. Note that the rustc implementation is quite [hacky][1] too. :) [1]: https://github.com/rust-lang/rust/blob/614f273e9388ddd7804d5cbc80b8865068a3744e/src/librustc_resolve/macros.rs#L456 Co-authored-by: Edwin Cheng <[email protected]> | |||||
| * | Test whether it is bang macro properly | Edwin Cheng | 2020-05-02 | 1 | -8/+6 | |
| | | ||||||
| * | Add test in name resolutions | Edwin Cheng | 2020-05-02 | 1 | -0/+37 | |
| | | ||||||
| * | Make AttrQuery copyable | Edwin Cheng | 2020-05-01 | 2 | -10/+15 | |
| | |