aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge #3133bors[bot]2020-02-142-372/+376
|\ | | | | | | | | | | | | | | 3133: Move hir_fmt code to display module r=matklad a=flodiebold Co-authored-by: Florian Diebold <[email protected]>
| * Move hir_fmt code to display moduleFlorian Diebold2020-02-142-372/+376
| |
* | Merge #3136bors[bot]2020-02-147-162/+202
|\ \ | |/ |/| | | | | | | | | | | 3136: Not bash r=matklad a=matklad More declarative installation Co-authored-by: Aleksey Kladov <[email protected]>
| * CleanupAleksey Kladov2020-02-141-1/+1
| |
| * More declarative fs massagingAleksey Kladov2020-02-142-18/+35
| |
| * Replace Cmd with not-bashAleksey Kladov2020-02-145-154/+171
| |
| * Prevent auto-update of dev extensionAleksey Kladov2020-02-143-6/+24
| |
| * MinorAleksey Kladov2020-02-141-31/+19
| |
* | Merge #3132bors[bot]2020-02-143-11/+11
|\ \ | |/ |/| | | | | | | | | | | 3132: Rename Ty::Param => Ty::Placeholder r=matklad a=flodiebold This aligns more with Chalk. Co-authored-by: Florian Diebold <[email protected]>
| * Rename Ty::Param => Ty::PlaceholderFlorian Diebold2020-02-143-11/+11
|/ | | | This aligns more with Chalk.
* Merge #3116bors[bot]2020-02-132-13/+22
|\ | | | | | | | | | | | | | | | | | | 3116: vscode: added error handling to download file streams r=matklad a=Veetaha As a followup for #3092 `ts-nested-error` is mine, it is just [one file worth nothing](https://github.com/Veetaha/ts-nested-error/blob/master/src/nested-error.ts), but let's us inspect original errors Co-authored-by: Veetaha <[email protected]>
| * vscode: removed nested errors as per matkladVeetaha2020-02-133-10/+3
| |
| * vscode: replaced DownloadFileError with NestedError itself for simplicityVeetaha2020-02-131-6/+7
| |
| * vscode: switched to stream.pipeline with .on(close) workaroundVeetaha2020-02-121-19/+17
| |
| * vscode: added error handling to download file streamsVeetaha2020-02-114-7/+24
| |
* | Merge #3120bors[bot]2020-02-132-45/+545
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3120: Support trait auto import r=matklad a=SomeoneToIgnore Unfortunately, for real cases it does not work as spectacular as in the tests. The main reason for that is type inference: * The callee type [here](https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ra_hir_ty/src/method_resolution.rs#L369) is unknown for many cases * The trait solution [here](https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ra_hir_ty/src/method_resolution.rs#L399) is also often ambiguous That results in trait candidates being rejected, and some real cases not supported. Example: no imports for `String::from_str("test")` Co-authored-by: Kirill Bulatov <[email protected]>
| * | Do not collect all traitsKirill Bulatov2020-02-121-102/+53
| | |
| * | Support associated constsKirill Bulatov2020-02-121-18/+133
| | |
| * | Also consider associated constantsKirill Bulatov2020-02-121-8/+8
| | |
| * | Revert source_analyzer changesKirill Bulatov2020-02-122-55/+6
| | |
| * | Fix post-rebase issuesKirill Bulatov2020-02-122-25/+25
| | |
| * | Refactor the codeKirill Bulatov2020-02-121-96/+93
| | |
| * | Adjust the assist group nameKirill Bulatov2020-02-121-9/+25
| | |
| * | Add profilingKirill Bulatov2020-02-121-0/+3
| | |
| * | Support trait method call autoimportsKirill Bulatov2020-02-122-101/+211
| | |
| * | Trait location draftKirill Bulatov2020-02-122-20/+127
| | |
| * | Refactor path for imports extractionKirill Bulatov2020-02-121-20/+92
| | |
| * | Add method testsKirill Bulatov2020-02-121-3/+116
| | |
| * | Resolve methods and functions betterKirill Bulatov2020-02-122-9/+74
| | |
* | | Add error context to failures in `ra_project_model` using `anyhow` crate (#3119)Adam Bratschi-Kaye2020-02-135-20/+59
| | | | | | | | | Add error context to failures in ra_project_model using anyhow crate
* | | Merge #3126bors[bot]2020-02-131-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3126: prevent "Play" symbol in "Run Test" code lens from rendering as emoji r=matklad a=quanlou for #3091 Co-authored-by: Quan Luu <[email protected]>
| * | | prevent "Play" symbol in "Run Test" code lens from rendering as emojiQuan Luu2020-02-131-1/+1
|/ / /
* | | Merge #3127bors[bot]2020-02-123-1/+31
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3127: Support unnamed arguments in function pointers r=edwin0cheng a=hanmertens Fixes #3089 Co-authored-by: Han Mertens <[email protected]>
| * | | Run cargo testHan Mertens2020-02-121-0/+26
| | | |
| * | | Run cargo xtask codegenHan Mertens2020-02-121-0/+1
| | | |
| * | | Add test for unnamed argument in function pointerHan Mertens2020-02-121-0/+3
| | | |
| * | | Support unnamed arguments in function pointersHan Mertens2020-02-121-1/+1
|/ / / | | | | | | | | | Fixes #3089
* | | Merge #3125bors[bot]2020-02-121-3/+19
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3125: Add couple of utility methods r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * | | Add couple of utility methodsAleksey Kladov2020-02-121-3/+19
| | | |
* | | | Merge #3124bors[bot]2020-02-121-15/+7
|\| | | | |/ / |/| | | | | | | | | | | | | | | | | 3124: Simplify r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * | SimplifyAleksey Kladov2020-02-121-15/+7
|/ /
* | Merge #3121bors[bot]2020-02-123-7/+49
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | 3121: Do not add imports before inner attributes r=matklad a=SomeoneToIgnore Current `insert_use_statement` function adds imports before inner attributes which results in compiler errors: <img width="1440" alt="image" src="https://user-images.githubusercontent.com/2690773/74344019-a3749500-4db4-11ea-9d88-f71e903e795a.png"> Co-authored-by: Kirill Bulatov <[email protected]>
| * | Fix the trailing whitespace testKirill Bulatov2020-02-121-4/+1
| | |
| * | Introduce AttrKindKirill Bulatov2020-02-123-8/+16
| | |
| * | Do not add imports before inner attributesKirill Bulatov2020-02-122-1/+38
| |/
* | Merge #3122bors[bot]2020-02-122-14/+64
|\ \ | |/ |/| | | | | | | | | | | 3122: Add more hir APIs for associated items r=SomeoneToIgnore a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * Add more hir APIs for associated itemsAleksey Kladov2020-02-122-14/+64
|/
* Merge #3062bors[bot]2020-02-118-13/+64
|\ | | | | | | | | | | | | | | | | | | 3062: Implement slice pattern AST > HIR lowering r=jplatte a=jplatte WIP. The necessary changes for parsing are implemented, but actual inference is not yet. Just wanted to upload what I've got so far so it doesn't get duplicated :) Will fix #3043 Co-authored-by: Jonas Platte <[email protected]>
| * Implement slice pattern AST > HIR loweringJonas Platte2020-02-118-13/+64
| |
* | Merge #3115bors[bot]2020-02-112-5/+8
|\ \ | | | | | | | | | | | | | | | | | | | | | 3115: vscode: remove chmod in favour of an option to createWriteStream() r=matklad a=Veetaha Inspired by [cpptools code](https://github.com/microsoft/vscode-cpptools/blob/0d91db0e060b946939ee620130c1dbc0fb1d7c42/Extension/src/packageManager.ts#L385-L386) Co-authored-by: Veetaha <[email protected]>