Skip to content

⬆️ rust-analyzer #102053

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 62 commits into from
Sep 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
f9e2ac5
fix: handle trait methods as inherent methods for trait object types
lowr Aug 30, 2022
484d5b6
fix: handle trait methods as inherent methods for placeholders
lowr Aug 30, 2022
29729ab
Retain imports on find-all-references
enomado Sep 4, 2022
ba40aa7
Update crates/ide/src/references.rs
enomado Sep 4, 2022
6001e7d
fix
enomado Sep 4, 2022
bd0eeb3
Update crates/ide/src/references.rs
enomado Sep 7, 2022
92d54f9
typo and draft
enomado Sep 7, 2022
eba54c2
pretty solition works
enomado Sep 7, 2022
9f6553e
add config for import filtering
enomado Sep 7, 2022
1764c42
fix comment
enomado Sep 8, 2022
0240294
fix comment round 2
enomado Sep 8, 2022
ab0b64b
fix comment round 3
enomado Sep 8, 2022
773f9b3
fix. round 4
enomado Sep 8, 2022
f7f4792
fixes
enomado Sep 9, 2022
7d19971
Add config to unconditionally prefer core imports over std
Veykril Sep 9, 2022
9c97997
Remove the toggleInlayHints command from VSCode
Veykril Sep 10, 2022
2584d48
wip
kartva Sep 10, 2022
cc72008
new lint: move_format_string_arg
kartva Sep 10, 2022
a5cbee4
remove false positive
kartva Sep 10, 2022
fb5ae99
suggest ExtractRefactor if no expressions found
kartva Sep 11, 2022
8a2803d
Allow configuration of annotation location.
mathew-horner Sep 12, 2022
32603ba
Remove redundant 'resolve_obligations_as_possible' call
bminaiev Sep 12, 2022
bc13142
Auto merge of #13222 - BorysMinaiev:master, r=flodiebold
bors Sep 12, 2022
352a5b8
Auto merge of #13212 - Veykril:no-std-config, r=Veykril
bors Sep 12, 2022
e38dfe5
Auto merge of #13186 - enomado:master, r=Veykril
bors Sep 12, 2022
7a704f2
Auto merge of #13147 - lowr:fix/dyn-ty-inherent-methods, r=Veykril
bors Sep 12, 2022
54e9324
Update crates/ide-assists/src/handlers/move_format_string_arg.rs
kartva Sep 12, 2022
b54d22d
Auto merge of #13215 - Veykril:toggle-inlay, r=Veykril
bors Sep 12, 2022
efb5616
fix: handle lifetime variables in projection normalization
lowr Sep 12, 2022
b1a4ba3
Auto merge of #13223 - lowr:fix/hir-proj-normalization, r=flodiebold
bors Sep 12, 2022
f64c956
Auto merge of #13216 - DesmondWillowbrook:move_format_string_arg, r=D…
bors Sep 12, 2022
d223c28
Remove unnecessary `Option`
lowr Sep 12, 2022
f57c15f
Address comments and fix build.
mathew-horner Sep 12, 2022
cadb01c
Move reference imports filtering into to_proto layer
Veykril Sep 13, 2022
482a992
Auto merge of #13228 - Veykril:ref-import-filtering, r=Veykril
bors Sep 13, 2022
a8ecaa1
Restructure `find_path` into a separate functions for modules and non…
Veykril Sep 13, 2022
125d43c
Auto merge of #13227 - Veykril:core-pref, r=Veykril
bors Sep 13, 2022
ba15f75
Auto merge of #13225 - lowr:fix/hir-proj-normalization, r=Veykril
bors Sep 13, 2022
dbb8fed
Auto merge of #13221 - mdx97:mdx97/annotations-above-whole-item, r=Ve…
bors Sep 13, 2022
c407cc5
Add cargo.extraEnv setting
dpaoliello Aug 18, 2022
5e2f9e3
mbe: Return Bindings from build_inner
jplatte Sep 14, 2022
f7f6d28
mbe: Use extend instead of push in loop
jplatte Sep 14, 2022
b6aed79
mbe: Remove double reference in container
jplatte Sep 14, 2022
5430554
mbe: Remove Vec reference in container
jplatte Sep 14, 2022
d6f0fd0
mbe: Remove unnecessary reference to usize
jplatte Sep 14, 2022
c4a87ee
mbe: Remove unneeded unwrap
jplatte Sep 14, 2022
2b61be2
Auto merge of #13232 - jplatte:mbe-refactor, r=Veykril
bors Sep 14, 2022
a9f103e
Fix prelude injection
Veykril Sep 15, 2022
6b163c3
Auto merge of #13235 - Veykril:prelude-handling, r=Veykril
bors Sep 15, 2022
e7abf34
Fix add reference action on macros.
mathew-horner Sep 16, 2022
ad17ba1
Complete variants and assoc items in path pattern through type aliases
Veykril Sep 16, 2022
870bfc7
Auto merge of #13242 - Veykril:completion-alias, r=Veykril
bors Sep 16, 2022
b73fa0b
Use memmem when searching for usages in ide-db
Veykril Sep 16, 2022
b6e3f41
Auto merge of #13243 - Veykril:search-memchr, r=Veykril
bors Sep 16, 2022
a65ca20
Fix tests by using primitive rather than String.
mathew-horner Sep 16, 2022
932e63b
Auto merge of #13239 - mdx97:mathew/fix-add-reference-for-macros, r=V…
bors Sep 17, 2022
11bf2e7
Auto merge of #13058 - dpaoliello:extraenv, r=Veykril
bors Sep 18, 2022
0d9f971
Simplify
Veykril Sep 18, 2022
39eaf78
Auto merge of #13253 - Veykril:simplify, r=Veykril
bors Sep 18, 2022
e54f61d
Try to fix crash introduced in #13147
lnicola Sep 19, 2022
187bee0
Auto merge of #13257 - rust-lang:revert-13147-fix/dyn-ty-inherent-met…
bors Sep 19, 2022
9dcd19b
:arrow_up: rust-analyzer
lnicola Sep 20, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/tools/rust-analyzer/Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,7 @@ dependencies = [
"crossbeam-channel",
"jod-thread",
"paths",
"rustc-hash",
"serde",
"serde_json",
"stdx",
Expand Down Expand Up @@ -660,6 +661,7 @@ dependencies = [
"indexmap",
"itertools",
"limit",
"memchr",
"once_cell",
"parser",
"profile",
Expand Down
1 change: 1 addition & 0 deletions src/tools/rust-analyzer/crates/flycheck/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ doctest = false
crossbeam-channel = "0.5.5"
tracing = "0.1.35"
cargo_metadata = "0.15.0"
rustc-hash = "1.1.0"
serde = { version = "1.0.137", features = ["derive"] }
serde_json = "1.0.81"
jod-thread = "0.1.2"
Expand Down
10 changes: 8 additions & 2 deletions src/tools/rust-analyzer/crates/flycheck/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ use std::{

use crossbeam_channel::{never, select, unbounded, Receiver, Sender};
use paths::AbsPathBuf;
use rustc_hash::FxHashMap;
use serde::Deserialize;
use stdx::{process::streaming_output, JodChild};

Expand All @@ -30,18 +31,20 @@ pub enum FlycheckConfig {
all_features: bool,
features: Vec<String>,
extra_args: Vec<String>,
extra_env: FxHashMap<String, String>,
},
CustomCommand {
command: String,
args: Vec<String>,
extra_env: FxHashMap<String, String>,
},
}

impl fmt::Display for FlycheckConfig {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match self {
FlycheckConfig::CargoCommand { command, .. } => write!(f, "cargo {}", command),
FlycheckConfig::CustomCommand { command, args } => {
FlycheckConfig::CustomCommand { command, args, .. } => {
write!(f, "{} {}", command, args.join(" "))
}
}
Expand Down Expand Up @@ -256,6 +259,7 @@ impl FlycheckActor {
all_features,
extra_args,
features,
extra_env,
} => {
let mut cmd = Command::new(toolchain::cargo());
cmd.arg(command);
Expand All @@ -281,11 +285,13 @@ impl FlycheckActor {
}
}
cmd.args(extra_args);
cmd.envs(extra_env);
cmd
}
FlycheckConfig::CustomCommand { command, args } => {
FlycheckConfig::CustomCommand { command, args, extra_env } => {
let mut cmd = Command::new(command);
cmd.args(args);
cmd.envs(extra_env);
cmd
}
};
Expand Down
Loading