rust-analyzer: 2021-03-22 -> 2021-04-05
This commit is contained in:
parent
20443c3482
commit
d4e758c5ac
|
@ -2,10 +2,10 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
rust-analyzer-unwrapped = callPackage ./generic.nix rec {
|
rust-analyzer-unwrapped = callPackage ./generic.nix rec {
|
||||||
rev = "2021-03-22";
|
rev = "2021-04-05";
|
||||||
version = "unstable-${rev}";
|
version = "unstable-${rev}";
|
||||||
sha256 = "sha256-Q8yr5x4+R9UCk5kw/nJgBtGVBeZTDwyuwpyNJUKSPzA=";
|
sha256 = "sha256-ZDxy87F3uz8bTF1/2LIy5r4Nv/M3xe97F7mwJNEFcUs=";
|
||||||
cargoSha256 = "sha256-cJ5KPNrX1H4IfHENDGyU2rgxl5TTqvoeXk7558oqwuA=";
|
cargoSha256 = "sha256-kDwdKa08E0h24lOOa7ALeNqHlMjMry/ru1qwCIyKmuE=";
|
||||||
|
|
||||||
inherit CoreServices;
|
inherit CoreServices;
|
||||||
};
|
};
|
||||||
|
|
|
@ -46,8 +46,6 @@ rustPlatform.buildRustPackage {
|
||||||
|
|
||||||
passthru.updateScript = ./update.sh;
|
passthru.updateScript = ./update.sh;
|
||||||
|
|
||||||
patches = [ ./rust_1_49.patch ];
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "An experimental modular compiler frontend for the Rust language";
|
description = "An experimental modular compiler frontend for the Rust language";
|
||||||
homepage = "https://github.com/rust-analyzer/rust-analyzer";
|
homepage = "https://github.com/rust-analyzer/rust-analyzer";
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
diff --git a/crates/ide_assists/src/handlers/convert_iter_for_each_to_for.rs b/crates/ide_assists/src/handlers/convert_iter_for_each_to_for.rs
|
|
||||||
index 4e75a7b14..91f51a1a7 100644
|
|
||||||
--- a/crates/ide_assists/src/handlers/convert_iter_for_each_to_for.rs
|
|
||||||
+++ b/crates/ide_assists/src/handlers/convert_iter_for_each_to_for.rs
|
|
||||||
@@ -93,7 +93,7 @@ fn validate_method_call_expr(
|
|
||||||
let krate = module.krate();
|
|
||||||
|
|
||||||
let iter_trait = FamousDefs(sema, Some(krate)).core_iter_Iterator()?;
|
|
||||||
- it_type.impls_trait(sema.db, iter_trait, &[]).then(|| (expr, receiver))
|
|
||||||
+ if it_type.impls_trait(sema.db, iter_trait, &[]) { Some((expr, receiver)) } else { None }
|
|
||||||
}
|
|
||||||
|
|
||||||
#[cfg(test)]
|
|
Loading…
Reference in a new issue