Merge pull request #187989 from b-zee/rust-analyzer-unwrapped-2022-08-22

rust-analyzer-unwrapped: 2022-08-01 -> 2022-08-22
This commit is contained in:
Bernardo Meurer
2022-08-25 10:26:03 -03:00
committed by GitHub
2 changed files with 8 additions and 19 deletions
@@ -12,23 +12,22 @@
rustPlatform.buildRustPackage rec {
pname = "rust-analyzer-unwrapped";
version = "2022-08-01";
cargoSha256 = "sha256-7ZYrIFSIOlL1JojtaQBIvvlfvjZGlR40PKVjmEtMBMo=";
version = "2022-08-22";
cargoSha256 = "sha256-A1oH2He1nEmVmBBTfMsZpJNKNtIQpmNx3AE56e9Z1qk=";
src = fetchFromGitHub {
owner = "rust-lang";
repo = "rust-analyzer";
rev = version;
sha256 = "sha256-OUezy1BkIoqpkTE5wOtsjJ/Gy48Ql8EL1/t6MZzRkWw=";
sha256 = "sha256-G/IElEE6eetQcLpESXCQtuYED/uTrsdeZj8fkqC3FSM=";
};
patches = [
# Code format check requires more dependencies but don't really matter for packaging.
# So just ignore it.
./ignore-rustfmt-test.patch
];
cargoBuildFlags = [ "--bin" "rust-analyzer" "--bin" "rust-analyzer-proc-macro-srv" ];
cargoTestFlags = [ "--package" "rust-analyzer" "--package" "proc-macro-srv-cli" ];
buildAndTestSubdir = "crates/rust-analyzer";
# Code format check requires more dependencies but don't really matter for packaging.
# So just ignore it.
checkFlags = ["--skip=tidy::check_code_formatting"];
nativeBuildInputs = lib.optional useMimalloc cmake;
@@ -1,10 +0,0 @@
--- a/crates/rust-analyzer/tests/slow-tests/tidy.rs
+++ b/crates/rust-analyzer/tests/slow-tests/tidy.rs
@@ -6,6 +6,7 @@ use std::{
use xshell::{cmd, pushd, pushenv, read_file};
#[test]
+#[ignore]
fn check_code_formatting() {
let _dir = pushd(sourcegen::project_root()).unwrap();
let _e = pushenv("RUSTUP_TOOLCHAIN", "stable");