]> git.lizzy.rs Git - rust.git/log
rust.git
3 years agoCheck pattern types.
Dawer [Mon, 10 May 2021 08:22:13 +0000 (13:22 +0500)]
Check pattern types.

3 years agoExpand binding patterns.
Dawer [Sat, 8 May 2021 18:06:17 +0000 (23:06 +0500)]
Expand binding patterns.

3 years agoFix visibility warnings
Dawer [Fri, 7 May 2021 07:20:23 +0000 (12:20 +0500)]
Fix visibility warnings

3 years agoLower binding pattern
Dawer [Fri, 7 May 2021 05:38:51 +0000 (10:38 +0500)]
Lower binding pattern

3 years agoLower bool literals
Dawer [Thu, 6 May 2021 14:39:27 +0000 (19:39 +0500)]
Lower bool literals

3 years agoTreat ctor of unhandled type as non-exhaustive.
Dawer [Thu, 6 May 2021 12:26:05 +0000 (17:26 +0500)]
Treat ctor of unhandled type as non-exhaustive.

3 years agoLower Pat::Path
Dawer [Thu, 6 May 2021 12:18:51 +0000 (17:18 +0500)]
Lower Pat::Path

3 years agoDo not do match check if lowering failed.
Dawer [Thu, 6 May 2021 08:32:35 +0000 (13:32 +0500)]
Do not do match check if lowering failed.

3 years agoFix panics on pattern_arena.borrow with ugly cloning
Dawer [Thu, 6 May 2021 08:15:40 +0000 (13:15 +0500)]
Fix panics on pattern_arena.borrow with ugly cloning

3 years agoBasic lowering hir_def::exrp::Pat -> typed HIR.
Dawer [Thu, 6 May 2021 04:42:00 +0000 (09:42 +0500)]
Basic lowering hir_def::exrp::Pat -> typed HIR.

Pattern arena is broken

3 years agoHandle unordered fields in struct patterns
Dawer [Sun, 2 May 2021 19:09:21 +0000 (00:09 +0500)]
Handle unordered fields in struct patterns

3 years agoComplete field replacing
Dawer [Sun, 2 May 2021 15:56:54 +0000 (20:56 +0500)]
Complete field replacing

3 years agoSupport bool literal patterns
Dawer [Sun, 2 May 2021 15:09:31 +0000 (20:09 +0500)]
Support bool literal patterns

3 years agoCheck enum patterns
Dawer [Fri, 30 Apr 2021 14:12:04 +0000 (19:12 +0500)]
Check enum patterns

3 years agoBuild wildcard witnesses instead of panicking
Dawer [Fri, 30 Apr 2021 08:33:07 +0000 (13:33 +0500)]
Build wildcard witnesses instead of panicking

3 years agoImplement struct ctor application
Dawer [Thu, 29 Apr 2021 18:28:43 +0000 (23:28 +0500)]
Implement struct ctor application

3 years agoAdd remaining Constructor variants
Dawer [Thu, 29 Apr 2021 09:19:01 +0000 (14:19 +0500)]
Add remaining Constructor variants

3 years agoComplete usefulness::SubPatSet impl
Dawer [Thu, 29 Apr 2021 07:08:52 +0000 (12:08 +0500)]
Complete usefulness::SubPatSet impl

3 years agoList useless patterns in a useful match arm
Dawer [Thu, 29 Apr 2021 06:33:45 +0000 (11:33 +0500)]
List useless patterns in a useful match arm

3 years agoRemove unneeded indirection on PatCtxt
Dawer [Thu, 29 Apr 2021 05:04:24 +0000 (10:04 +0500)]
Remove unneeded indirection on PatCtxt

3 years agoEnable generation of non-exhaustiveness witnesses
Dawer [Wed, 28 Apr 2021 18:25:01 +0000 (23:25 +0500)]
Enable generation of non-exhaustiveness witnesses

3 years agoUpdate match checking.
Dawer [Thu, 22 Apr 2021 15:17:27 +0000 (20:17 +0500)]
Update match checking.

fn is_useful , more skeletons

Specify a lifetime on pattern references

impl PatStack

fill impl Matrix

PatStack::pop_head_constructor

Index-based approach

struct PatCtxt

fields construction fn Fields::wildcards

split wildcard

fn Constructor::is_covered_by_any(..)

fn Matrix::specialize_constructor(..)

impl Usefulness

Initial work on witness construction

Reorganize files

Replace match checking diagnostic

Handle types of expanded patterns

unit match checking go brrr

3 years agoMerge #9088
bors[bot] [Mon, 31 May 2021 17:22:09 +0000 (17:22 +0000)]
Merge #9088

9088: minor: remove debug print r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agominor: remove debug print
Aleksey Kladov [Mon, 31 May 2021 17:20:30 +0000 (20:20 +0300)]
minor: remove debug print

3 years agoMerge #9084 #9087
bors[bot] [Mon, 31 May 2021 17:12:01 +0000 (17:12 +0000)]
Merge #9084 #9087

9084: fix: avoid panics in match case diagnostic r=matklad a=matklad

bors r+
🤖

closes #8809

9087: fix: fix shell injection in task spawning r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agofix: fix shell injection in task spawning
Aleksey Kladov [Mon, 31 May 2021 16:51:19 +0000 (19:51 +0300)]
fix: fix shell injection in task spawning

closes #9058

3 years agoMerge #9086
bors[bot] [Mon, 31 May 2021 16:59:29 +0000 (16:59 +0000)]
Merge #9086

9086: minor: try fixing proc_macro_srv tests r=jonas-schievink a=jonas-schievink

Not entirely sure what's going wrong in https://github.com/rust-analyzer/rust-analyzer/pull/9084, but this might fix it?

bors r+

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
3 years agoUse `cargo check` again
Jonas Schievink [Mon, 31 May 2021 16:58:36 +0000 (18:58 +0200)]
Use `cargo check` again

3 years agominor: it's Parameter, not Argument
Aleksey Kladov [Mon, 31 May 2021 16:09:44 +0000 (19:09 +0300)]
minor: it's Parameter, not Argument

3 years agofix: avoid panics in match case diagnostic
Aleksey Kladov [Mon, 31 May 2021 16:06:40 +0000 (19:06 +0300)]
fix: avoid panics in match case diagnostic

3 years agoMerge #8952
bors[bot] [Mon, 31 May 2021 15:48:41 +0000 (15:48 +0000)]
Merge #8952

8952: add support of impl block for doctest into runnables r=matklad a=bnjjj

close #6356

Co-authored-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
3 years agoMerge #9083
bors[bot] [Mon, 31 May 2021 15:34:04 +0000 (15:34 +0000)]
Merge #9083

9083: internal: Simplify proc_macro_srv tests r=jonas-schievink a=jonas-schievink

Removes `serde_derive`, instead using `proc_macro_test` macros.

Should fix https://github.com/rust-analyzer/rust-analyzer/issues/9067

bors r+

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
3 years agoSimplify proc_macro_srv tests
Jonas Schievink [Mon, 31 May 2021 15:32:56 +0000 (17:32 +0200)]
Simplify proc_macro_srv tests

3 years agoMerge #9081
bors[bot] [Mon, 31 May 2021 14:28:03 +0000 (14:28 +0000)]
Merge #9081

9081: minor: expand docs a tiny bit r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
3 years agominor: expand docs a tiny bit
Aleksey Kladov [Mon, 31 May 2021 14:27:27 +0000 (17:27 +0300)]
minor: expand docs a tiny bit

3 years agoMerge #9079
bors[bot] [Mon, 31 May 2021 13:38:32 +0000 (13:38 +0000)]
Merge #9079

9079: Don't take the parent kind of trailing attributes in attr completion r=Veykril a=Veykril

bors r+
fixes https://github.com/rust-analyzer/rust-analyzer/issues/9076

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
3 years agoDon't take the parent kind of trailing attributes in attr completion
Lukas Wirth [Mon, 31 May 2021 13:35:22 +0000 (15:35 +0200)]
Don't take the parent kind of trailing attributes in attr completion

3 years agoMerge #9039
bors[bot] [Mon, 31 May 2021 13:21:31 +0000 (13:21 +0000)]
Merge #9039

9039: feat: Complete fields and methods with `self.` prefixed when inside methods r=matklad a=Veykril

![w65NbjkZiG](https://user-images.githubusercontent.com/3757771/119984385-a0111700-bfc1-11eb-9dbf-52fdaa4d72b5.gif)
Closes #7173

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
3 years agoAdd config setting for self-on-the-fly
Lukas Wirth [Sun, 30 May 2021 14:41:33 +0000 (16:41 +0200)]
Add config setting for self-on-the-fly

3 years agoMove unprefixed field/method completion to `dot`
Lukas Wirth [Fri, 28 May 2021 13:09:10 +0000 (15:09 +0200)]
Move unprefixed field/method completion to `dot`

3 years agoLess strings, more hir::Names
Lukas Wirth [Fri, 28 May 2021 12:38:09 +0000 (14:38 +0200)]
Less strings, more hir::Names

3 years agoComplete `self.` prefixed fields and methods inside methods
Lukas Wirth [Fri, 28 May 2021 12:02:53 +0000 (14:02 +0200)]
Complete `self.` prefixed fields and methods inside methods

3 years agoMerge #8866
bors[bot] [Mon, 31 May 2021 12:42:32 +0000 (12:42 +0000)]
Merge #8866

8866: Update salsa r=matklad a=jonas-schievink

This updates salsa to include https://github.com/salsa-rs/salsa/pull/265, and removes all cancellation-related code from rust-analyzer

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
3 years agoMerge #9060
bors[bot] [Mon, 31 May 2021 12:34:01 +0000 (12:34 +0000)]
Merge #9060

9060: feat: Diagnose unimplemented built-in macros r=matklad a=jonas-schievink

A number of built-in attribute macros are unsupported, I thought it might be useful to put a diagnostic on their definition in libcore. Not sure.

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
3 years agoMerge #9077
bors[bot] [Mon, 31 May 2021 12:16:44 +0000 (12:16 +0000)]
Merge #9077

9077: internal: Use `Name`s instead of Strings in the completion rendering api r=Veykril a=Veykril

bors r+

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
3 years agoUse `Name`s instead of Strings in the completion rendering api
Lukas Wirth [Mon, 31 May 2021 12:13:09 +0000 (14:13 +0200)]
Use `Name`s instead of Strings in the completion rendering api

3 years agoMerge #9025
bors[bot] [Mon, 31 May 2021 08:20:28 +0000 (08:20 +0000)]
Merge #9025

9025: internal: Display unknown types in `analysis-stats` r=flodiebold a=lnicola

Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
3 years agoMerge #9072
bors[bot] [Mon, 31 May 2021 07:20:18 +0000 (07:20 +0000)]
Merge #9072

9072: minor: reenable incremental test builds r=lnicola a=iDawer

Co-authored-by: Dawer <7803845+iDawer@users.noreply.github.com>
3 years agominor: reenable incremental test builds
Dawer [Mon, 31 May 2021 07:15:40 +0000 (12:15 +0500)]
minor: reenable incremental test builds

3 years agoMerge #9071
bors[bot] [Sun, 30 May 2021 23:52:53 +0000 (23:52 +0000)]
Merge #9071

9071: minor: reenable incremental release builds r=jonas-schievink a=jonas-schievink

forgot to turn this back on in https://github.com/rust-analyzer/rust-analyzer/pull/9069

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
3 years agoreenable incremental release builds
Jonas Schievink [Sun, 30 May 2021 23:12:11 +0000 (01:12 +0200)]
reenable incremental release builds

3 years agoMerge #9069
bors[bot] [Sun, 30 May 2021 21:48:43 +0000 (21:48 +0000)]
Merge #9069

9069: minor: Don't force-disable incremental r=jonas-schievink a=jonas-schievink

1.52.1 turns incremental off regardless of this setting, so this is unnecessary. Removing this allow manually overriding Cargo to enable incremental.

bors r+

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
3 years agoDon't force-disable incremental
Jonas Schievink [Sun, 30 May 2021 21:46:39 +0000 (23:46 +0200)]
Don't force-disable incremental

3 years agoMerge #9068
bors[bot] [Sun, 30 May 2021 19:37:29 +0000 (19:37 +0000)]
Merge #9068

9068: Move more `CompletinoContext` fields to `ImmediateLocation` r=Veykril a=Veykril

bors r+

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
3 years agoMove more fields to `ImmediateLocation`
Lukas Wirth [Sun, 30 May 2021 19:23:42 +0000 (21:23 +0200)]
Move more fields to `ImmediateLocation`

3 years agoMerge #9065
bors[bot] [Sun, 30 May 2021 17:28:52 +0000 (17:28 +0000)]
Merge #9065

9065: hir_ty: don't pass where clauses of associated types down to chalk r=cynecx a=cynecx

See #9052.

Co-authored-by: cynecx <me@cynecx.net>
3 years agohir_ty: don't pass where clauses of associated types down to chalk (temp. fix #9052)
cynecx [Sun, 30 May 2021 16:37:02 +0000 (18:37 +0200)]
hir_ty: don't pass where clauses of associated types down to chalk (temp. fix #9052)

3 years agoMerge #9064
bors[bot] [Sun, 30 May 2021 15:13:29 +0000 (15:13 +0000)]
Merge #9064

9064: Fix incorrect prefer_inner calls on some attribute completions r=Veykril a=Veykril

bors r+

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
3 years agoFix incorrect prefer_inner calls on some attribute completions
Lukas Wirth [Sun, 30 May 2021 15:10:42 +0000 (17:10 +0200)]
Fix incorrect prefer_inner calls on some attribute completions

3 years agoMerge #9062
bors[bot] [Sun, 30 May 2021 11:48:59 +0000 (11:48 +0000)]
Merge #9062

9062: internal: Bump deps r=lnicola a=lnicola

Fixes #9061

bors r+

Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
3 years agoBump deps
Laurențiu Nicola [Sun, 30 May 2021 11:48:10 +0000 (14:48 +0300)]
Bump deps

3 years agoDiagnose unimplemented built-in macros
Jonas Schievink [Sun, 30 May 2021 02:19:47 +0000 (04:19 +0200)]
Diagnose unimplemented built-in macros

3 years agoMerge #9059
bors[bot] [Sat, 29 May 2021 19:19:24 +0000 (19:19 +0000)]
Merge #9059

9059: fix: Only complete derive proc macros in `#[derive]` r=jonas-schievink a=jonas-schievink

HIR now gives them `MacroKind::Derive` instead of `MacroKind::ProcMacro`

bors r+

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
3 years agoOnly complete derive proc macros in `#[derive]`
Jonas Schievink [Sat, 29 May 2021 19:18:14 +0000 (21:18 +0200)]
Only complete derive proc macros in `#[derive]`

3 years agoUpdate to prerelease
Jonas Schievink [Sat, 29 May 2021 19:10:00 +0000 (21:10 +0200)]
Update to prerelease

3 years agoMerge #9057
bors[bot] [Sat, 29 May 2021 18:33:49 +0000 (18:33 +0000)]
Merge #9057

9057: internal: Thread proc-macro types through the HIR r=jonas-schievink a=jonas-schievink

Should help with completion of derives. cc @Veykril

bors r+

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
3 years agoThread proc-macro types through the HIR
Jonas Schievink [Sat, 29 May 2021 18:32:57 +0000 (20:32 +0200)]
Thread proc-macro types through the HIR

3 years agoMerge #9050
bors[bot] [Sat, 29 May 2021 17:39:15 +0000 (17:39 +0000)]
Merge #9050

9050: hir_ty: use async ret type for inference inside async bodies r=flodiebold a=cynecx

Fixes #9004.

Co-authored-by: cynecx <me@cynecx.net>
3 years agoMerge #9054
bors[bot] [Sat, 29 May 2021 16:33:20 +0000 (16:33 +0000)]
Merge #9054

9054: fix: fix `matches!` macro on nightly toolchains r=jonas-schievink a=jonas-schievink

Fixes https://github.com/rust-analyzer/rust-analyzer/issues/9043

bors r+

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
3 years agoTreat `pat_param` like `pat` fragments
Jonas Schievink [Sat, 29 May 2021 16:32:32 +0000 (18:32 +0200)]
Treat `pat_param` like `pat` fragments

3 years agoMerge #9051
bors[bot] [Sat, 29 May 2021 16:23:59 +0000 (16:23 +0000)]
Merge #9051

9051: Fix incorrect setting descriptions r=lnicola a=sclu1034

Descriptions for diagnostic warning hint and info display were swapped.

Fixes #8485.

Co-authored-by: Lucas Schwiderski <lucas@lschwiderski.de>
3 years agohir_ty: use async ret type for inference inside async bodies
cynecx [Sat, 29 May 2021 16:16:20 +0000 (18:16 +0200)]
hir_ty: use async ret type for inference inside async bodies

3 years agoFix incorrect setting descriptions
Lucas Schwiderski [Sat, 29 May 2021 16:08:14 +0000 (18:08 +0200)]
Fix incorrect setting descriptions

Descriptions for diagnostic warning hint and info display were swapped.

Fixes #8485.

Signed-off-by: Lucas Schwiderski <lucas@lschwiderski.de>
3 years agoMerge #9048
bors[bot] [Sat, 29 May 2021 15:33:57 +0000 (15:33 +0000)]
Merge #9048

9048: Add some lint completion tests r=Veykril a=Veykril

bors r+

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
3 years agoAdd some lint completion tests
Lukas Wirth [Sat, 29 May 2021 15:19:49 +0000 (17:19 +0200)]
Add some lint completion tests

3 years agoMerge #9046
bors[bot] [Sat, 29 May 2021 15:19:44 +0000 (15:19 +0000)]
Merge #9046

9046: fix: make `include!` etc. work in expression position r=jonas-schievink a=jonas-schievink

This PR removes determination of fragment kinds from the eager macro implementations. The fragment kind is always determined by the syntax position in which a macro is invoked, not by the macro implementation, even for eager macros.

This makes `include!` work in expression position, and should have the same effect for all macros that may be used in different positions.

bors r+

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
3 years agoRemove fragment kind knowledge from builtin macros
Jonas Schievink [Sat, 29 May 2021 15:17:08 +0000 (17:17 +0200)]
Remove fragment kind knowledge from builtin macros

3 years agoMerge #9027
bors[bot] [Sat, 29 May 2021 12:14:16 +0000 (12:14 +0000)]
Merge #9027

9027: feat: Attribute completion is context aware r=Veykril a=Veykril

This splits off the `lint` and `derive` completions into their own submodules of `attribute`.

The idea is to create a lazy global hashmap that maps `SyntaxKind` to attribute names(`&[&str]`) in which we index with the syntax kind of the "thing" we are attributing giving us the attributes back that are valid for this kind. Then we use this name to do a binary search on the attribute list to fetch and build the corresponding completion item.

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
3 years agosimplify
Lukas Wirth [Sat, 29 May 2021 12:02:06 +0000 (14:02 +0200)]
simplify

3 years agoMerge #9041
bors[bot] [Fri, 28 May 2021 21:21:37 +0000 (21:21 +0000)]
Merge #9041

9041: internal: Implement prev sibling determination for `CompletionContext ` r=Veykril a=Veykril

bors r+

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
3 years agoMore completion pattern tests
Lukas Wirth [Fri, 28 May 2021 20:18:52 +0000 (22:18 +0200)]
More completion pattern tests

3 years agoImplement prev sibling determination for `CompletionContext`
Lukas Wirth [Fri, 28 May 2021 20:03:31 +0000 (22:03 +0200)]
Implement prev sibling determination for `CompletionContext`

3 years agosimplify
Lukas Wirth [Fri, 28 May 2021 18:46:09 +0000 (20:46 +0200)]
simplify

3 years agoMerge #9028
bors[bot] [Fri, 28 May 2021 15:26:20 +0000 (15:26 +0000)]
Merge #9028

9028: only advertise range formatting support if enabled r=Veykril a=euclio

Fixes #9009.

Co-authored-by: Andy Russell <arussell123@gmail.com>
3 years agoMerge #9040
bors[bot] [Fri, 28 May 2021 12:59:54 +0000 (12:59 +0000)]
Merge #9040

9040: Don't label derive macros with their banged_name r=Veykril a=Veykril

cc https://github.com/rust-analyzer/rust-analyzer/issues/7072#issuecomment-850396203
This doesn't fix it non builtin derives yet I think cause of a FIXME somewhere that doesn't categorize proc-macro derives as derives yet
bors r+

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
3 years agoDon't label derive macros with their banged_name
Lukas Wirth [Fri, 28 May 2021 12:55:12 +0000 (14:55 +0200)]
Don't label derive macros with their banged_name

3 years agoMerge #9038
bors[bot] [Fri, 28 May 2021 12:16:18 +0000 (12:16 +0000)]
Merge #9038

9038: Folding range for return types r=Veykril a=MozarellaMan

For issue #8957

![return type fold](https://user-images.githubusercontent.com/48062697/119979082-5c62e100-bfb2-11eb-9729-1dea1ce74de1.gif)

Co-authored-by: Ayomide Bamidele <48062697+MozarellaMan@users.noreply.github.com>
3 years agoTest for correct amount of emitted folds
Ayomide Bamidele [Fri, 28 May 2021 12:10:41 +0000 (13:10 +0100)]
Test for correct amount of emitted folds

3 years agoFolding range for return types
Ayomide Bamidele [Fri, 28 May 2021 11:39:02 +0000 (12:39 +0100)]
Folding range for return types

3 years agoMerge #9037
bors[bot] [Fri, 28 May 2021 11:03:18 +0000 (11:03 +0000)]
Merge #9037

9037: minor: Move runnable lenses below attributes r=Veykril a=Veykril

bors r+

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
3 years agoMove runnable lenses below attributes
Lukas Wirth [Fri, 28 May 2021 10:55:07 +0000 (12:55 +0200)]
Move runnable lenses below attributes

3 years agoMerge #9036
bors[bot] [Fri, 28 May 2021 10:36:13 +0000 (10:36 +0000)]
Merge #9036

9036: Remove undocumented `TextDocumentSyncKind::Full` support r=matklad a=lnicola

Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
3 years agoRemove undocumented `TextDocumentSyncKind::Full` support
Laurențiu Nicola [Fri, 28 May 2021 10:01:04 +0000 (13:01 +0300)]
Remove undocumented `TextDocumentSyncKind::Full` support

3 years agoMerge #9033
bors[bot] [Fri, 28 May 2021 01:21:45 +0000 (01:21 +0000)]
Merge #9033

9033: Complete keywords in (Assoc)ItemList with leading attribute r=Veykril a=Veykril

Fixes #7673
bors r+

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
3 years agoComplete keywords in (Assoc)ItemList with leading attribute
Lukas Wirth [Fri, 28 May 2021 01:20:55 +0000 (03:20 +0200)]
Complete keywords in (Assoc)ItemList with leading attribute

3 years agoMerge #9032
bors[bot] [Fri, 28 May 2021 00:43:16 +0000 (00:43 +0000)]
Merge #9032

9032: Only complete modules in empty use-statements r=Veykril a=Veykril

bors r+
Part of #8518

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
3 years agoOnly complete modules in empty use-statements
Lukas Wirth [Fri, 28 May 2021 00:40:40 +0000 (02:40 +0200)]
Only complete modules in empty use-statements

3 years agoAdd another attribute completion test
Lukas Wirth [Thu, 27 May 2021 23:09:22 +0000 (01:09 +0200)]
Add another attribute completion test

3 years agoAdd attribute completion tests
Lukas Wirth [Thu, 27 May 2021 22:54:52 +0000 (00:54 +0200)]
Add attribute completion tests

3 years agoMerge #9029
bors[bot] [Thu, 27 May 2021 22:47:04 +0000 (22:47 +0000)]
Merge #9029

9029: minor: test that `ItemTree` makes `hir_def` queries syntax-independent r=jonas-schievink a=jonas-schievink

bors r+

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>