aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | Merge #6653bors[bot]2020-11-271-1/+1
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6653: Downgrade "failed to load" error to warning r=jonas-schievink a=jonas-schievink Fixes https://github.com/rust-analyzer/rust-analyzer/issues/6596 bors r+ Co-authored-by: Jonas Schievink <[email protected]>
| * | | | | | Downgrade "failed to load" error to warningJonas Schievink2020-11-271-1/+1
|/ / / / / /
* | | | | | Merge #6652bors[bot]2020-11-271-2/+4
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6652: Add/Fix macro expansion profiling r=jonas-schievink a=jonas-schievink bors r+ :robot: Co-authored-by: Jonas Schievink <[email protected]>
| * | | | | Add/Fix macro expansion profilingJonas Schievink2020-11-271-2/+4
|/ / / / /
* | | | | Merge #6651bors[bot]2020-11-279-0/+22
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6651: Profile completions better r=SomeoneToIgnore a=SomeoneToIgnore During https://github.com/rust-analyzer/rust-analyzer/issues/6612 investigation, had added a few more profiling points and considered that they can be useful later, ergo the PR. Co-authored-by: Kirill Bulatov <[email protected]>
| * | | | Fix the profiling stringKirill Bulatov2020-11-271-1/+1
| | | | | | | | | | | | | | | Co-authored-by: Laurențiu Nicola <[email protected]>
| * | | | Profile completions betterKirill Bulatov2020-11-279-0/+22
|/ / / /
* | | | Merge #6648bors[bot]2020-11-271-9/+18
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6648: Avoid allocation in ast::String::value if the string needs no unescaping r=lnicola a=Veykril Co-authored-by: Lukas Wirth <[email protected]>
| * | | | Avoid allocation in ast::String::value if the string needs no unescapingLukas Wirth2020-11-271-9/+18
| | |_|/ | |/| |
* | | | Merge #6586bors[bot]2020-11-271-8/+16
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6586: Don't call a closure a function in the infer_function_return_type assist label r=lnicola a=Veykril `Add this function's return type` becomes `Add this closure's return type` for closures. This makes it more obvious that we are indeed planning on modifying the closure and not its containing function. Co-authored-by: Lukas Wirth <[email protected]>
| * | | | Don't call a closure function in infer_function_return_type labelLukas Wirth2020-11-171-8/+16
| | | | |
* | | | | Merge #6646bors[bot]2020-11-261-2/+2
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6646: Remove single r#trait identifer usage r=Veykril a=Veykril bors r+ Co-authored-by: Lukas Wirth <[email protected]>
| * | | | Don't use raw identifiersLukas Wirth2020-11-261-2/+2
|/ / / /
* | | | Merge #6635bors[bot]2020-11-262-14/+46
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6635: Complete struct in irrefutable let r=Veykril a=Veykril Fixes #6210 Co-authored-by: Lukas Wirth <[email protected]>
| * | | | Complete struct in irrefutable letLukas Wirth2020-11-262-14/+46
| | | | |
* | | | | Merge #6644bors[bot]2020-11-262-8/+5
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6644: Simplify error formatting r=lnicola a=lnicola CC jonas-schievink bors r+ Co-authored-by: Laurențiu Nicola <[email protected]>
| * | | | | Simplify error formattingLaurențiu Nicola2020-11-262-8/+5
|/ / / / /
* | | | | Merge #6643bors[bot]2020-11-261-1/+1
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6643: Remove unused import r=lnicola a=lnicola Not sure why CI didn't catch this... bors r+ Co-authored-by: Laurențiu Nicola <[email protected]>
| * | | | | Remove unused importLaurențiu Nicola2020-11-261-1/+1
|/ / / / /
* | | | | Merge #6641bors[bot]2020-11-263-8/+13
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6641: Fix def map volatility with `#[cfg]` diagnostics r=jonas-schievink a=jonas-schievink bors r+ :robot: Co-authored-by: Jonas Schievink <[email protected]>
| * | | | | Don't store `SyntaxNodePtr` in `CrateDefMap`Jonas Schievink2020-11-262-8/+7
| | | | | | | | | | | | | | | | | | | | | | | | It is volatile across reparses and makes incrementality worse.
| * | | | | Test def map invalidation with #[cfg] below changeJonas Schievink2020-11-261-0/+6
|/ / / / /
* | | | | Merge #6640bors[bot]2020-11-262-0/+27
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6640: Implement `Display` for macro expansion errors r=jonas-schievink a=jonas-schievink Co-authored-by: Jonas Schievink <[email protected]>
| * | | | | Implement `Display` for macro expansion errorsJonas Schievink2020-11-262-0/+27
|/ / / / /
* | | | | Merge #6639bors[bot]2020-11-265-56/+42
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6639: Use `ExpandResult` instead of `MacroResult` r=jonas-schievink a=jonas-schievink `MacroResult` is redundant. bors r+ :robot: Co-authored-by: Jonas Schievink <[email protected]>
| * | | | | Use `ExpandResult` instead of `MacroResult`Jonas Schievink2020-11-265-56/+42
|/ / / / / | | | | | | | | | | | | | | | `MacroResult` is redundant
* | | | | Merge #6638bors[bot]2020-11-265-29/+39
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6638: Use named fields in `ExpandResult` r=jonas-schievink a=jonas-schievink bors r+ :robot: Co-authored-by: Jonas Schievink <[email protected]>
| * | | | | Use named fields in `ExpandResult`Jonas Schievink2020-11-265-29/+39
|/ / / / /
* | | | | Merge #6637bors[bot]2020-11-261-8/+9
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6637: Publish diagnostics on file open r=jonas-schievink a=jonas-schievink Diagnostics are sometimes only showing up when typing. This should fix that. Fixes https://github.com/rust-analyzer/rust-analyzer/issues/6381 Co-authored-by: Jonas Schievink <[email protected]>
| * | | | | Publish diagnostics on file openJonas Schievink2020-11-261-8/+9
|/ / / / / | | | | | | | | | | | | | | | | | | | | Diagnostics are sometimes only showing up when typing. This should fix that.
| | | | |
| \ \ \ \
*-. \ \ \ \ Merge #6614 #6632bors[bot]2020-11-267-35/+117
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6614: Improve autoimports on completion speed r=matklad a=SomeoneToIgnore Presumably closes https://github.com/rust-analyzer/rust-analyzer/issues/6594 May help https://github.com/rust-analyzer/rust-analyzer/issues/6612 * Ignore modules eaferly * Do less completion string rendering 6632: Pin cargo_metadata r=matklad a=kjeremy See: https://github.com/oli-obk/cargo_metadata/pull/142#issuecomment-733653275 Co-authored-by: Kirill Bulatov <[email protected]> Co-authored-by: kjeremy <[email protected]>
| | * | | | | Pin cargo_metadatakjeremy2020-11-253-3/+3
| | | | | | |
| * | | | | | Improve autoimports on completion speedKirill Bulatov2020-11-244-32/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Ignore modules eaferly * Do less completion string rendering
* | | | | | | Merge #6496bors[bot]2020-11-261-3/+0
|\ \ \ \ \ \ \ | |_|/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6496: Use builtin scopes more r=matklad a=georgewfraser VSCode has added more builtin fallback scopes, so we can remove some of our fallback scopes by aligning with their conventions. Note that the macro scope doesn't seem to actually *work* at the moment. I have filed a bug with VSCode: https://github.com/microsoft/vscode/issues/110150 Co-authored-by: George Fraser <[email protected]>
| * | | | | | Just remove the macro fallbackGeorge Fraser2020-11-252-2/+8
| | | | | | |
| * | | | | | Use builtin scopes moreGeorge Fraser2020-11-072-11/+2
| | | | | | |
* | | | | | | Merge #6631bors[bot]2020-11-245-1/+20
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6631: Gate autoimports begind experimental completions flag r=kjeremy a=SomeoneToIgnore Part of https://github.com/rust-analyzer/rust-analyzer/issues/6612 Adds a possibility to disable autoimports: <img width="598" alt="image" src="https://user-images.githubusercontent.com/2690773/100156673-f8037f80-2eb1-11eb-8e74-59ebe4260ba3.png"> and other experimental completions we might want to add later. Co-authored-by: Kirill Bulatov <[email protected]>
| * | | | | | | Document experimental completionsKirill Bulatov2020-11-241-0/+7
| | | | | | | |
| * | | | | | | Gate autoimports begind experimental completions flagKirill Bulatov2020-11-244-1/+13
|/ / / / / / /
* | | | | | | Merge #6630bors[bot]2020-11-246-29/+19
|\ \ \ \ \ \ \ | |_|_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6630: followup to "hir_expand: propagate expansion errors" r=jonas-schievink a=jonas-schievink https://github.com/rust-analyzer/rust-analyzer/pull/6625 bors r+ :robot: Co-authored-by: Jonas Schievink <[email protected]>
| * | | | | | Rename `parse_macro` to `parse_macro_expansion`Jonas Schievink2020-11-246-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This does not parse macros, it expands a macro and parses the *result*
| * | | | | | hir_expand::db: reduce fn visibilityJonas Schievink2020-11-241-15/+9
| | | | | | |
| * | | | | | Remove fixed FIXME, propagate errors betterJonas Schievink2020-11-241-6/+2
|/ / / / / /
* | | | | | Merge #6625bors[bot]2020-11-244-46/+91
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6625: hir_expand: propagate expansion errors r=jonas-schievink a=jonas-schievink This is needed to collect and report expansion errors later. bors r+ :robot: Co-authored-by: Jonas Schievink <[email protected]>
| * | | | | | hir_expand: propagate expansion errorsJonas Schievink2020-11-244-46/+91
|/ / / / / /
* | | | | | Merge #6624bors[bot]2020-11-241-31/+120
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6624: Check structs for match exhaustiveness r=Veykril a=Veykril Co-authored-by: Lukas Wirth <[email protected]>
| * | | | | | Check structs for match exhaustivenessLukas Wirth2020-11-241-31/+120
|/ / / / / /
* | | | | | Merge #6621bors[bot]2020-11-241-42/+55
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6621: Handle ellipsis in tuple patterns in match exhaustiveness checking r=flodiebold a=Veykril Co-authored-by: Lukas Wirth <[email protected]>
| * | | | | | Add middle ellipsis missing arm textLukas Wirth2020-11-241-0/+14
| | | | | | |
| * | | | | | Handle ellipsis in tuple patterns in match exhaustiveness checkingLukas Wirth2020-11-241-42/+41
|/ / / / / /