aboutsummaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge #1989bors[bot]2019-10-111-24/+34
|\ | | | | | | | | | | | | | | 1989: Chalk update to simplified IR r=flodiebold a=kjeremy Co-authored-by: kjeremy <[email protected]>
| * Chalk update to simplified IRkjeremy2019-10-101-24/+34
| |
* | reduce visibilityAleksey Kladov2019-10-111-3/+3
| |
* | Merge #1994bors[bot]2019-10-115-48/+71
|\ \ | | | | | | | | | | | | | | | | | | | | | 1994: remove last traces of source roots from hir r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * | remove last traces of source roots from hirAleksey Kladov2019-10-115-48/+71
| |/
* | Remove `as_original_file`Shotaro Yamada2019-10-101-10/+0
| |
* | Use `original_file` instead of `as_original_file`Shotaro Yamada2019-10-102-4/+4
|/
* Merge #1981bors[bot]2019-10-104-36/+33
|\ | | | | | | | | | | | | | | 1981: tweak fn labels in completion r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * tweak fn labels in completionAleksey Kladov2019-10-104-36/+33
| |
* | don't special case macro_useAleksey Kladov2019-10-103-23/+13
| |
* | don't special case path attrAleksey Kladov2019-10-103-34/+31
|/
* simplify a bitAleksey Kladov2019-10-102-10/+13
|
* simplify some testsAleksey Kladov2019-10-101-90/+24
|
* Refactor and fix some more edge cases around name resolutionAleksey Kladov2019-10-104-192/+209
|
* if completion does auto-insertion, indicate this in the labelAleksey Kladov2019-10-105-475/+562
|
* add `module` methodsEkaterina Babshukova2019-10-092-2/+42
|
* Merge #1973bors[bot]2019-10-092-57/+85
|\ | | | | | | | | | | | | | | 1973: add <> for type aliases as well r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * add <> for type aliases as wellAleksey Kladov2019-10-092-53/+81
| |
| * smal cleanupAleksey Kladov2019-10-091-5/+5
| |
* | Merge #1972bors[bot]2019-10-091-0/+3
|\ \ | |/ |/| | | | | | | | | | | 1972: extend selection correctly handles commas in tuples r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * extend selection correctly handles commas in tuplesAleksey Kladov2019-10-091-0/+3
| |
* | add `<>` when completing generic typesAleksey Kladov2019-10-084-78/+198
| |
* | simplifyAleksey Kladov2019-10-081-4/+5
| |
* | refactorAleksey Kladov2019-10-081-11/+9
| |
* | refactorAleksey Kladov2019-10-081-8/+15
|/
* Merge #1969bors[bot]2019-10-0810-45/+82
|\ | | | | | | | | | | | | | | 1969: restore coloring of attributes r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * restore coloring of attributesAleksey Kladov2019-10-082-1/+4
| |
| * hard-code nightly-only CFGsAleksey Kladov2019-10-081-0/+8
| |
| * macro DSL for cfg in testsAleksey Kladov2019-10-083-16/+23
| |
| * use slightly more idiomatic api for cfgAleksey Kladov2019-10-087-40/+59
| |
* | Merge #1924bors[bot]2019-10-088-9/+81
|\ \ | |/ |/| | | | | | | | | | | | | | | | | 1924: Support inferring&completing `Self` type in enum/struct/union definitions r=ice1000 a=ice1000 Signed-off-by: ice1000 <[email protected]> An attempt to fix #1908. This code works, but I believe the implementation is ugly. Please give me suggestions! Co-authored-by: ice1000 <[email protected]>
| * Address comments: fix docs, add completion test for `Self`.ice10002019-10-084-5/+32
| |
| * Support inferring `Self` type in enum definitionsice10002019-10-087-9/+54
| | | | | | | | Signed-off-by: ice1000 <[email protected]>
* | Merge #1922bors[bot]2019-10-082-18/+93
|\ \ | | | | | | | | | | | | | | | | | | | | | 1922: feat(assists): Make raw string unescaped r=matklad a=Geobert Last piece of https://github.com/rust-analyzer/rust-analyzer/issues/1730 Co-authored-by: Geobert Quach <[email protected]>
| * | feat(assists): Address some PR commentsGeobert Quach2019-10-041-25/+24
| | |
| * | feat(assists): Even smarter with hashesGeobert Quach2019-10-011-12/+44
| | | | | | | | | | | | Count `"#*` streak only, extract the counting in a function, unit test this function
| * | feat(assists): Be smart about hashesGeobert Quach2019-09-301-1/+36
| | | | | | | | | | | | Add max_hashes_streak + 1 hashes to the raw string
| * | feat(assists): Keep only one version of make_raw_stringGeobert Quach2019-09-292-83/+13
| | |
| * | feat(assists): Make raw string unescapedGeobert Quach2019-09-263-1/+79
| | |
* | | Merge #1951bors[bot]2019-10-085-1/+160
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1951: Lower the precedence of the `as` operator. r=matklad a=goffrie Previously, the `as` operator was being parsed like a postfix expression, and therefore being given the highest possible precedence. That caused it to bind more tightly than prefix operators, which it should not. Instead, parse it somewhat like a normal binary expression with some special-casing. Fixes #1851. Co-authored-by: Geoffry Song <[email protected]>
| * | Move tests aroundGeoffry Song2019-10-069-147/+198
| | |
| * | Lower the precedence of the `as` operator.Geoffry Song2019-10-035-45/+153
| | | | | | | | | | | | | | | | | | | | | Previously, the `as` operator was being parsed like a postfix expression, and therefore being given the highest possible precedence. That caused it to bind more tightly than prefix operators, which it should not. Instead, parse it somewhat like a normal binary expression with some special-casing.
* | | Merge #1960bors[bot]2019-10-0513-424/+346
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1960: Replace AST visitors with macro r=viorina a=viorina Fixes #1672. Co-authored-by: Ekaterina Babshukova <[email protected]>
| * | | remove `visitor` moduleEkaterina Babshukova2019-10-054-139/+24
| | | |
| * | | replace AST visitors with macroEkaterina Babshukova2019-10-0510-297/+334
| | | |
* | | | Merge #1928bors[bot]2019-10-0528-66/+656
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1928: Support `#[cfg(..)]` r=matklad a=oxalica This PR implement `#[cfg(..)]` conditional compilation. It read default cfg options from `rustc --print cfg` with also hard-coded `test` and `debug_assertion` enabled. Front-end settings are **not** included in this PR. There is also a known issue that inner control attributes are totally ignored. I think it is **not** a part of `cfg` and create a separated issue for it. #1949 Fixes #1920 Related: #1073 Co-authored-by: uHOOCCOOHu <[email protected]> Co-authored-by: oxalica <[email protected]>
| * | | Use raw cfgs in json project and fix typooxalica2019-10-053-9/+18
| | | |
| * | | Add docsuHOOCCOOHu2019-10-022-0/+6
| | | |
| * | | Read default cfgs from rustcuHOOCCOOHu2019-10-027-14/+75
| | | |
| * | | OptimizeuHOOCCOOHu2019-10-025-13/+28
| | | |