From unknown Tue Jun 17 01:48:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#62818: rust-analyzer broken after rustc got bumped Resent-From: Steven Roose Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 13 Apr 2023 18:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 62818 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 62818@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.168141093627380 (code B ref -1); Thu, 13 Apr 2023 18:36:02 +0000 Received: (at submit) by debbugs.gnu.org; 13 Apr 2023 18:35:36 +0000 Received: from localhost ([127.0.0.1]:44764 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pn1nE-00077Y-3p for submit@debbugs.gnu.org; Thu, 13 Apr 2023 14:35:36 -0400 Received: from lists.gnu.org ([209.51.188.17]:58404) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pn1nB-00077O-Gm for submit@debbugs.gnu.org; Thu, 13 Apr 2023 14:35:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pn1nB-0004Cp-2u for bug-guix@gnu.org; Thu, 13 Apr 2023 14:35:33 -0400 Received: from hosted.mailcow.de ([5.1.76.202]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pn1n8-0000Jz-Vq for bug-guix@gnu.org; Thu, 13 Apr 2023 14:35:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=roose.io; s=default; t=1681410924; h=from:subject:date:message-id:to:mime-version:content-type: content-transfer-encoding; bh=lBrEzQiChHsEGB3DgTLXnyewI9iT8Dyt7Ulo2Y06ogo=; b=iE9NrtJEDbFo4ERJr5NMMFrafPkhMenenqdVLayKQeKDgN5S8VUw1hsctWJ8mYA0ZOP/6X Kwu/32EBPSWybacFoD47Wx2LeKzcrNzZeTkSsOdL2bMvt8V+QZr3fvrVzUWfg2I08oEfsr ycXQcrPBRrTVCYS/JXiU3SvVTS+2eLeLIwI89CdHoy13qUg5RPiw8pDFnZGhg6EOD488nb oajpMo9nwHedlNQYrolCjfZWL4jzrF0DBqhW38XqBSllFpBg1NMoJw9r6l2YUdq+Kzm3lf qri2ds12tvlB4JjIMRrDxZBHn24iec1zfGa4R7zBH1Yg8P7ZwyheTYhrcGzN6w== Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 49DCC5C7258 for ; Thu, 13 Apr 2023 20:35:22 +0200 (CEST) Message-ID: Date: Thu, 13 Apr 2023 19:35:20 +0100 MIME-Version: 1.0 Content-Language: en-US From: Steven Roose Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=5.1.76.202; envelope-from=steven@roose.io; helo=hosted.mailcow.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) The Guix version of rust-analyzer that is in rust-apps.scm is somehow dependent on rustc 1.60.0 and seems to use it internally to do compilation and checks. Guix recently published rustc v1.65.0 to the repo and after pulling that in, many compilations fail with some very strange error message "this crate is not compiled for the right Rust version, please recompile with version 1.60". One possible workaround would probably be to instruct rust-analyzer to use a different directory to store its artefacts, but that would mean building everything twice and keeping two sets of build artifacts which can become quite sizable. It seems that either rust-analyzer should be make rustc-version-independent, no idea how that would work, or rust-analyzer should be updated alongside rustc whenever possible.