bors
f99348578a
Auto merge of #15074 - oxalica:fix/inline-async-fn, r=lowr
...
Correctly handle inlining of async fn
Fixes #10198
2023-06-19 15:46:55 +00:00
oxalica
2cd7b0cfce
Remove unused StmtList::push_front
2023-06-19 22:56:31 +08:00
bors
67e1f52062
Auto merge of #15086 - Veykril:import-intern, r=Veykril
...
internal: Intern use and extern crate items like other items
Looking a bit into supporting use aliases and attributes better
2023-06-19 13:51:41 +00:00
bors
8eef45212b
Auto merge of #15089 - Veykril:slow-test-logs, r=Veykril
...
fix: Use RA_LOG in slow tests logging infra again
2023-06-19 13:34:51 +00:00
Lukas Wirth
8d33b39b4a
Use RA_LOG in slow tests logging infra again
2023-06-19 15:11:47 +02:00
Lukas Wirth
9476fdaaa9
HIR ExternCrateDecl
2023-06-19 14:15:08 +02:00
bors
0fe5266b6d
Auto merge of #15087 - matklad:error-handling, r=matklad
...
internal: use consistent style for error handling
2023-06-19 12:14:23 +00:00
Alex Kladov
6303551cb8
internal: use consistent style for error handling
2023-06-19 13:01:47 +01:00
bors
93a788cde8
Auto merge of #15085 - matklad:ws-error, r=matklad
...
fix: ensure that ws loading error includes path to ws
Should help with https://old.reddit.com/r/rust/comments/14cw5ts/newbie_confused_about_rustanalyzer/
`@bors` r+
2023-06-19 11:57:18 +00:00
Lukas Wirth
0bde3fc77e
Intern use and extern crate items like other items
2023-06-19 13:51:44 +02:00
bors
1fb51425ed
Auto merge of #15084 - lnicola:sync-from-rust, r=lnicola
...
minor: Sync from downstream
2023-06-19 11:40:23 +00:00
Alex Kladov
49318bbae7
fix: ensure that ws loading error includes path to ws
2023-06-19 12:32:04 +01:00
Laurențiu Nicola
8d8292ec60
Merge remote-tracking branch 'upstream/master' into sync-from-rust
2023-06-19 14:26:52 +03:00
bors
00b9d9faf4
Auto merge of #15071 - matklad:no-regex, r=matklad
...
internal: remove spurious regex dependency
- replace tokio's env-filter with a smaller&simpler targets filter
- reshuffle logging infra a bit to make sure there's only a single place where we read environmental variables
- use anyhow::Result in rust-analyzer binary
2023-06-19 10:51:03 +00:00
oxalica
52f1ce17aa
Correctly handle inlining of async fn
2023-06-19 17:14:17 +08:00
Laurențiu Nicola
9326cf7f0c
Merge commit 'cd3bf9fe51676b520c546460e6d8919b8c8ff99f' into sync-from-ra
2023-06-19 09:14:04 +03:00
Alex Kladov
424ef77809
internal: remove spurious regex dependency
...
- replace tokio's env-filter with a smaller&simpler targets filter
- reshuffle logging infra a bit to make sure there's only a single place
where we read environmental variables
- use anyhow::Result in rust-analyzer binary
2023-06-18 13:59:32 +01:00
bors
cd3bf9fe51
Auto merge of #15076 - Veykril:bindings, r=Veykril
...
internal: Shrink size of hir::Binding
2023-06-18 10:19:27 +00:00
Lukas Wirth
c3186202a2
Shrink size of hir::Binding
2023-06-18 12:03:04 +02:00
bors
5dccf3010b
Auto merge of #15075 - Veykril:bindings, r=Veykril
...
fix: Add binding definition for for-expr iterator desugared binding
2023-06-18 09:45:49 +00:00
Lukas Wirth
83d7724629
fix: Add binding definition for for-expr iterator desugared binding
2023-06-18 11:44:01 +02:00
bors
a1b536ec6f
Auto merge of #15054 - ponyii:fix/implement-missing-members-do-not-transform-const-params, r=lowr
...
fix: implement missing members doesn't transform const params and default types
Fixes https://github.com/rust-lang/rust-analyzer/issues/13363
2023-06-18 09:30:13 +00:00
Ali Bektas
4ed1197662
Version 3
...
Remove scope_for_def calls as the definition have been removed entirely.
As a result of this change the problem with false path resolutions has been solved.
2023-06-17 21:27:52 +02:00
Ali Bektas
19a9de72f6
Version 2
2023-06-17 13:52:34 +02:00
Ali Bektas
59cc783a3b
Correct errors produced by CI
2023-06-17 13:52:34 +02:00
Ali Bektas
8123a39c82
Generate delegate trait
2023-06-17 13:52:34 +02:00
Lukas Wirth
a824b734dd
Report metric timings for file item trees and crate def map creation
2023-06-17 11:20:21 +02:00
Lukas Wirth
58ac823864
Less eager parsing for module sources
2023-06-17 10:58:52 +02:00
bors
fcfc6afe05
Auto merge of #15069 - Veykril:analysis-stat-stuff, r=Veykril
...
analysis-stats: Add body lowering step, track time of each step separtely
2023-06-17 08:58:10 +00:00
Lukas Wirth
b5e0452c71
Lazy progress reporting
2023-06-17 10:34:44 +02:00
Lukas Wirth
64a8887a94
Add body lowering step, track time of each step separtely
2023-06-17 09:55:48 +02:00
bors
fdba1b6a5c
Auto merge of #15066 - Veykril:analysis-stats, r=Veykril
...
internal: Analyze all bodies in analysis-stats, not just functions
2023-06-17 07:09:50 +00:00
bors
a5a71c75e6
Auto merge of #15067 - Veykril:loop-turn-msgh, r=Veykril
...
internal: Add more context to overly long loop turn message
2023-06-16 17:31:37 +00:00
Lukas Wirth
bd762e62df
internal: Add more context to overly long loop turn message
2023-06-16 19:31:07 +02:00
Lukas Wirth
76acf3b992
internal: Analyze all bodies in analysis-stats, not just functions
2023-06-16 19:14:46 +02:00
bors
4143890316
Auto merge of #15065 - Veykril:remove-alloc, r=Veykril
...
internal: Do not allocate unnecessarily when importing macros from parent modules
2023-06-16 16:42:01 +00:00
Lukas Wirth
bd093d1ccd
Sort methods in generate_delegate_methods listing
2023-06-16 18:41:25 +02:00
Lukas Wirth
3484b5a116
internal: Do not allocate unnecessarily when importing macros from parent modules
2023-06-16 18:41:06 +02:00
ponyii
7e08933a26
the "implement missing members" assist's const transformation patched
2023-06-16 20:34:44 +04:00
bors
0cad484a94
Auto merge of #14693 - HKalbasi:pointee-trait, r=HKalbasi
...
Support `Pointee` trait
fix #13992
2023-06-16 14:34:11 +00:00
hkalbasi
527dfede48
Support Pointee
trait
2023-06-16 16:43:43 +03:30
bors
689f964f5f
Auto merge of #15062 - AlPha5130:master, r=lnicola
...
doc: remove duplicated words
2023-06-16 10:27:46 +00:00
MysticNebula70
8cc55bfee6
doc: remove duplicated words
2023-06-16 18:22:43 +08:00
ponyii
8a3c21442e
refactoring
2023-06-15 17:56:08 +04:00
bors
ff864fbb9f
Auto merge of #15058 - HKalbasi:more-log, r=HKalbasi
...
Add more log in "terminator is none" assert
cc #15029
2023-06-15 08:36:08 +00:00
hkalbasi
922be8714d
Add more log in "terminator is none" assert
2023-06-15 12:05:15 +03:30
bors
9c967d3809
Auto merge of #15053 - Veykril:crate-root-module-id, r=Veykril
...
internal: Add a CrateRootModuleId that encodes a module id that is always a crate root
2023-06-14 14:41:06 +00:00
Lukas Wirth
cf178cba8f
internal: Add a CrateRootModuleId that encodes a module id that is always a crate root
2023-06-14 15:41:06 +02:00
ponyii
b07490ffe9
made the add_missing_impl_members
and add_missing_default_members
assists transform default generic types
2023-06-14 17:37:34 +04:00
bors
51939db8d3
Auto merge of #15052 - lnicola:fmt-arguments, r=Veykril
...
minor: Rename minicore ArgumentV1 to match libcore
2023-06-14 12:13:58 +00:00