From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 4I43Cdj+2WKSHgEAbAwnHQ (envelope-from ) for ; Fri, 22 Jul 2022 03:35:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id mBZNCdj+2WJrPwAA9RJhRA (envelope-from ) for ; Fri, 22 Jul 2022 03:35:20 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9D53932EB8 for ; Fri, 22 Jul 2022 03:35:19 +0200 (CEST) Received: from localhost ([::1]:47762 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oEhZW-0000sy-9U for larch@yhetil.org; Thu, 21 Jul 2022 21:35:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50050) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEhZG-0000sW-NW for guix-patches@gnu.org; Thu, 21 Jul 2022 21:35:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49901) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oEhZG-00054e-CS for guix-patches@gnu.org; Thu, 21 Jul 2022 21:35:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oEhZG-0004VB-02 for guix-patches@gnu.org; Thu, 21 Jul 2022 21:35:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56684] [PATCH 1/3] Bump rust 1.57 -> 1.58 Resent-From: Jim Newsome Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 22 Jul 2022 01:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56684 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxime Devos , 56684@debbugs.gnu.org Cc: Jim Newsome Received: via spool by 56684-submit@debbugs.gnu.org id=B56684.165845364417227 (code B ref 56684); Fri, 22 Jul 2022 01:35:01 +0000 Received: (at 56684) by debbugs.gnu.org; 22 Jul 2022 01:34:04 +0000 Received: from localhost ([127.0.0.1]:39650 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oEhYJ-0004Tn-KS for submit@debbugs.gnu.org; Thu, 21 Jul 2022 21:34:03 -0400 Received: from wnew4-smtp.messagingengine.com ([64.147.123.18]:48953) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oEhYF-0004TG-HI for 56684@debbugs.gnu.org; Thu, 21 Jul 2022 21:34:02 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailnew.west.internal (Postfix) with ESMTP id 59D0F2B05D15; Thu, 21 Jul 2022 21:33:53 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Thu, 21 Jul 2022 21:33:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jimnewsome.net; h=cc:cc:content-transfer-encoding:content-type:date:date:from :from:in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1658453632; x= 1658457232; bh=U1o3dgQPhto1eDuZxLKEjSmMfp3LJSkNCEtncgbx3gA=; b=u Emb4f4PmhEkobVrRhDZGlKrQUJFuU6L5W+zFXx2/F5HHyd7u632FmrOSxucRW9Zz rPw18rH5ltKvDt3f4f5VhuXRTCY7UffOZAd0DyVMP5GI+xDWHi8sYa2eSu1YV0A7 Bg/4qPJYSWHJsuPluVTyyMOaLQhjWDy6zmSk4KGgYjVkUJK558eMj/dPVQtGZODw n4oamu9Jd7JFl/h/Civl53S9NctKjRXpTR3VUkHs7HTk3U6BcnMbY0rglktpW4Gi Dfbslha5QndcOj3w4JlBUY3tDKZXA62B19P+wKKUH81fbo08iFFStV2+vIitmJet a+kk4jvzQ1WF4Mcd0IYzg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=ib1a94636.fm3; t= 1658453632; x=1658457232; bh=U1o3dgQPhto1eDuZxLKEjSmMfp3LJSkNCEt ncgbx3gA=; b=2xxl9/h+rNt/j8irT30P1gSdF8T/+3+WZ5C3/aflYHilFaZDZju nJfMeaYHbkskhUxv0IohWXieuGSo/gvfA2nYfL8HhuTB9XeMTzv2QcUJRp/mfMz1 YcG4TsjzOxE0fzfuGJDzOIyfHupRtdW9RKIuYTeDnSdF1xyS3LvkGYHe1haBhC5n q15elkHoxSz60Gus/UYzHlD8Xhoq67e49f3ALPu/l8MYFwA+1KoORwmTZiQpJB5A +dlVa1Rkb1beOhYcNfQ4gCyUsYFwymbOrv9Ue6K7TQXCm+uiKUpjuwhfMm3AltsP xx+enNC7es55qJVZCyUlyeXStp6SEeG8gqg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvddtuddghedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeflihhm ucfpvgifshhomhgvuceojhhimhesjhhimhhnvgifshhomhgvrdhnvghtqeenucggtffrrg htthgvrhhnpeffjeeugeelheevfffgjeduteehfeelleffledvjeetgeefteeileehtdff udelteenucffohhmrghinheprhhushhtqdhlrghnghdrohhrghdpghhithhhuhgsrdgtoh hmpdgsohhothhsthhrrghprdhphienucevlhhushhtvghrufhiiigvpedtnecurfgrrhgr mhepmhgrihhlfhhrohhmpehjihhmsehjihhmnhgvfihsohhmvgdrnhgvth X-ME-Proxy: Feedback-ID: ib1a94636:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 21 Jul 2022 21:33:52 -0400 (EDT) Message-ID: <4a7aaaa8-6a0d-e187-381b-0d6cde010f63@jimnewsome.net> Date: Thu, 21 Jul 2022 20:33:51 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Content-Language: en-US References: <0dacb7cb72945f7f6886602c47111661b746cbcc.1658440640.git.jnewsome@torproject.org> <86c503a4-bd43-6ba8-a307-452c57cf1cfa@telenet.be> From: Jim Newsome In-Reply-To: <86c503a4-bd43-6ba8-a307-452c57cf1cfa@telenet.be> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1658453719; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=U1o3dgQPhto1eDuZxLKEjSmMfp3LJSkNCEtncgbx3gA=; b=OMRfUngQGYspkEueHyn7HOUIO5z2/Hazj/qOQ7vtOeFoIw18Oc0fFbUD/r0SyuzwhXbVQ9 y/ifojQzoLb4yk/ZO9NLAZShREz3gQ6+hW06Y9L+/ju6fly0GmM3TzzgI6sFZNWakt9o82 qRVyJpJPdhxx+fll1kXJWPXQbDKwLIEB2nQpdr6rcsj7gyY5IVArteWBwJnv0KZRQtqmUR KtKSJIeInwHlSO/RDL6oa7sEtfHv157EA5aRpGNUpqNeaO6SyHD46X2FXmj+R8kudhvfzP ckoyRuZjje++a1G6Ga9f6BKeA7OQ/Cm9W3l2MG0kZTicCCyGRMCPslJ0ljqp3Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658453719; a=rsa-sha256; cv=none; b=Xj9JCTFX4Le5nTfh2b6oifivBgHxwr27N8vH+oI83G/6oYyked2gkkWWm3aerRLUMnusGL 2bJ03nYv3o+x/CD9/vkUwq/XYgU4ZdgO0i77YdW92oEqZUgqq6L+iGWRn21C8EWl9LeQwk axEm/uz94hKSL6eRHonwlr50RHotjF9a3v/9BUgG+jT3SA6DqPaljgPqVQ/6v6tJmca+CJ BwfqKFK7auTut3BCzB5qJG6LM+h4I7P1ttzWXpvV7uHmKCnu+J5LGR1794xiyHOLW0brXT dl/YP1Bxgr/5+b55qjy55mj5/DJXHlnAqjhdLL0KBnbcoeoBnpnLJE7D6QV09A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jimnewsome.net header.s=fm1 header.b="u Emb4f4"; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=ib1a94636.fm3 header.b="2xxl9/h+"; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 0.96 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jimnewsome.net header.s=fm1 header.b="u Emb4f4"; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=ib1a94636.fm3 header.b="2xxl9/h+"; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 9D53932EB8 X-Spam-Score: 0.96 X-Migadu-Scanner: scn1.migadu.com X-TUID: sZfM+5tFkb20 On 7/21/22 19:08, Maxime Devos wrote: > E.g., you could try going directly from 1.57 to 1.60 without > intermediate steps. If that's possible, it would be less inefficient to > compile. I dug into this a bit. The Rust bootstrapping docs say to use x.py to download the stage0 compiler. https://rustc-dev-guide.rust-lang.org/building/bootstrapping.html x.py is a thin wrapper around bootstrap.py: https://github.com/rust-lang/rust/blob/master/x.py bootstrap.py decides what compiler to use as stage0 from stage0.json: https://github.com/rust-lang/rust/blob/master/src/bootstrap/bootstrap.py 1.62.1 was compiled with 1.61.0: https://github.com/rust-lang/rust/blob/1.62.1/src/stage0.json#L6 1.61.0 was compiled with 1.60.0: https://github.com/rust-lang/rust/blob/1.61.0/src/stage0.json#L6 1.60.0 was compiled with 1.59.0: https://github.com/rust-lang/rust/blob/1.60.0/src/stage0.json#L6 1.59.0 was compiled with 1.58.0: https://github.com/rust-lang/rust/blob/1.59.0/src/stage0.json#L6 1.58.0 was compiled with 1.57.0: https://github.com/rust-lang/rust/blob/1.58.0/src/stage0.json#L6 So it looks like each release was compiled with a compiler from one feature-release back. In my patchset, I took the highest patch-version at each feature-version, since I don't think it makes sense to include outdated patch-levels, and it should be safe. Trying to compile a release with an older compiler than it was originally compiled with seems unlikely to go well. It's not explicitly stated that it *won't* work, but it seems unlikely that it would, and would take a lot of time to verify by trial and error.