Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp357775pxb; Wed, 14 Apr 2021 17:44:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1Zc8VJNLCVNWRetR6Dr2+UfmbjSSDwOypNi6DpCyOOPmP5ssWPQ6jtWtl+Fdz5qWWtxbK X-Received: by 2002:a17:90a:64c9:: with SMTP id i9mr870795pjm.213.1618447458084; Wed, 14 Apr 2021 17:44:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618447458; cv=none; d=google.com; s=arc-20160816; b=CGkEWdEFzsGy8bmhm9r4+DY2oQCNdn+UINjYCXY+YGvhVB9E17rT3RFjrytRXI6JyF /u/5rn0X4AlulqMw1Y2ZKHqlbvxZVNNSWFEKXBSu67aI5B8bRXUG4/JwEE0v7oX30aK+ 88oLsdPzchMjseGwripn2zx36Liq4qa3nJoefi7/zoEj7i/hj+O/DmsYe6l9yqRjqA+L RqDCBAEuSSDUZ3mVgrBbHfaLEgq5mqXPO6hIqdrlfmF0PlBxOqAthTHMBh8THyMGV04i HJaXNQofj0wF1c22DVfvnh6x8vlGvsWkBUMoxoikhoxhWLcM1zQ7GcAoqnoy3PqgMa5d 2h4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=2NCuqqnTNRZqz4gVa7VmF8X9q5BSGA2MnI49n6bMs7A=; b=iu3SFoLIwx6583Q59qsQkoD996VQMk4Yaji5xJMUdKTEPvT65K32Bs00kXIiIYHznW hPHrm2DTZ2YQwrrxGgO01NWVgqRbDCfbvwKmXu6Y8kgo7Ek8AeMbly6Dn3p2ezAKpngg KZuRyQIxiEJ8LP2xSuoasJ7BeiI4Lo95q+yw0A8oZvqNjHC4sMwE9nAiJnW2d2M2rWjQ T8vz8hXUmUqNDNwNedPYO6+XEXsxT9+pE8jzQlUAM93wThCHj9RpvtzpiGJ57yNk+tkB xJ8+fk5ivzUarmMRDb/rjtflS9CNE0lmUTIyKyyTS2VPum9iDFSJcW4FSEMNlCZtxJQJ jEig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=dCmT2Jev; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m185si1413469pgm.44.2021.04.14.17.44.06; Wed, 14 Apr 2021 17:44:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=dCmT2Jev; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353362AbhDNTUv (ORCPT + 99 others); Wed, 14 Apr 2021 15:20:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353268AbhDNTUC (ORCPT ); Wed, 14 Apr 2021 15:20:02 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8B39C061760 for ; Wed, 14 Apr 2021 12:19:40 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id g8so35068907lfv.12 for ; Wed, 14 Apr 2021 12:19:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2NCuqqnTNRZqz4gVa7VmF8X9q5BSGA2MnI49n6bMs7A=; b=dCmT2JevlN2Um24EUlGKuB1noKIv7ps6g0KvoFc8NO7f9Egls/Mith+iaPjQtsQfnr V3m5Niy5LYKZYm6IIrt5kn+7wbQBG2dzlRjqlgBgfDXYfOc9ZchG7DC8UHzaS3kiP/3M I5Wq5Fh4vLEyyOX6IyyZ6+LRoWZP+OivJSbUI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2NCuqqnTNRZqz4gVa7VmF8X9q5BSGA2MnI49n6bMs7A=; b=baxGoKYNxmdQHZNlqhpEi6L1YSUAagwgI6vXECZYrSK+vFtREQ0QgI7IJzfXzC3vDS o+YWV6ldTFV5UWb4WEDq0/ci6pqSJQ9+vU8e5eSiHg7CAbXZDDl7r12DDfo3CDvQ0Z74 jYrNs34Ut49OCYH7omjWxK0WrYP1QUWXp6qBCGBSB4uBXg9kapGNnpIe97pq6ouwZqSg jjAd+p2KGHt+fCFQo2alng3QDW9C4DLQTRJITH42iYs35Z19EMW8I49zERyv3qGk2OYh tBY/zARVM5N8JqOovRAuMlXKoMuZRSUg57glt8xv8Vz7vlm1Qh5zvvpAEMZz3IXP2f4V sB9w== X-Gm-Message-State: AOAM532kD+r+/h15HOzJ73dLigc4efrgMmQr69Eo1juuOiQ5LOjeleeM 9CRn/bJIG/aOfn5p6vy1GAIkR+J0TbRFvBpT X-Received: by 2002:a19:6143:: with SMTP id m3mr25749644lfk.639.1618427979033; Wed, 14 Apr 2021 12:19:39 -0700 (PDT) Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com. [209.85.167.44]) by smtp.gmail.com with ESMTPSA id x42sm148980lfu.244.2021.04.14.12.19.36 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 14 Apr 2021 12:19:37 -0700 (PDT) Received: by mail-lf1-f44.google.com with SMTP id f41so11671619lfv.8 for ; Wed, 14 Apr 2021 12:19:36 -0700 (PDT) X-Received: by 2002:a05:6512:31c7:: with SMTP id j7mr18301122lfe.41.1618427976755; Wed, 14 Apr 2021 12:19:36 -0700 (PDT) MIME-Version: 1.0 References: <20210414184604.23473-1-ojeda@kernel.org> <20210414184604.23473-6-ojeda@kernel.org> In-Reply-To: <20210414184604.23473-6-ojeda@kernel.org> From: Linus Torvalds Date: Wed, 14 Apr 2021 12:19:21 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 05/13] Rust: Compiler builtins crate To: ojeda@kernel.org Cc: Greg Kroah-Hartman , rust-for-linux@vger.kernel.org, Linux Kbuild mailing list , "open list:DOCUMENTATION" , Linux Kernel Mailing List , Alex Gaynor , Geoffrey Thomas , Finn Behrens , Adam Bratschi-Kaye , Wedson Almeida Filho Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 14, 2021 at 11:46 AM wrote: > > We also need a helpers C source file to contain some forwarders > to C macros and inlined functions. For the moment, we only need it > to call the `BUG()` macro, but we will be adding more later. Not being a Rust person, I can only guess based on random pattern matching, but this _looks_ like these "panicking intrinsics" panic at run-time (by calling BUG()). Is there some way these things could cause built-time link errors instead, so that if somebody uses 128-bit shifts, or floating point ops in the rust code, they show up as build failures, not as run-time ones? Hmm? Linus