Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2103135rwd; Thu, 15 Jun 2023 22:14:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7NOQUXUig0T/YDi5gTjHcgiCsHgdL0WzkfbREUeIdhChd0biZwpdChDp/rNA+Y7cdryWZ6 X-Received: by 2002:a05:6a20:158d:b0:118:e011:5e44 with SMTP id h13-20020a056a20158d00b00118e0115e44mr1611807pzj.48.1686892477861; Thu, 15 Jun 2023 22:14:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686892477; cv=none; d=google.com; s=arc-20160816; b=i/oC4bN/Hh2i55GrqOGiMni10ixRofNGzJegmZPLcjOg3WAVLt8TMo7K4qeMI0onzL HTwtuES7B3QH395YAJFqWH0Ppj01CmXKKrXBbAHFTYe78CeISmR0iMosi68Ps0QaFAKR VUYFmNa1XUWOCCXv7MQ6XRfN23TIohxfxVDitdsjCrMQ8aX8i3UYhPjBzTX/paRKyH1/ 5edZG/6Si7W/zwkDKbaRVasbkgivGx2Xy2yyH5QKGEg7wSLwUIGeeKNmr/fhviKQQe+A KdTP8+qVoTO2BNq+ywsWxfbXxhB1K8CsX0mn2IUghXWvKF2FkwPDe+7Yh2FzgFm93Owk yT4g== 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=4V9yJBgyOmbQjANnV9DxnBKMdqrQbGJrH4Ed12QWaXI=; b=ts7O5rzhiygORO2rGPQ6ZtutquT/xrCyQbclIiKQUCvS5twVhp8hyGqMnm7a7L5iCP 9JZVlxhhXFu/8+RMLM3ATNsKqjO4aPtrKGqoRgoXwBSEP4FfzxOMr+rYgJR8ny9UGlV5 ZpLZX+lQ/Ze1Qe10JG2iwa6rhiO8QiORU8yN/bGSQbAx6SoUPL9GVg3a1o88jfniWTbj vnIKdDhqDfU3Pgbi+HFSZ/N80rFsdmySK00IhRGCCQ7dm9EbfR0+QOnXONBcSDeSwVHZ QYOdZ9c4pIbBn3vyFOrUt4hk8B51a2Vf05i5eQla8CJd3YawUT6s1uLVeZUuTlVv5MSZ EJgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=iMDg1PNr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r12-20020aa7962c000000b00652dc29b5dasi11599899pfg.178.2023.06.15.22.14.25; Thu, 15 Jun 2023 22:14:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=iMDg1PNr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233454AbjFPEwJ (ORCPT + 99 others); Fri, 16 Jun 2023 00:52:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232209AbjFPEwF (ORCPT ); Fri, 16 Jun 2023 00:52:05 -0400 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02FDA30C1 for ; Thu, 15 Jun 2023 21:52:00 -0700 (PDT) Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-513ea2990b8so6013a12.0 for ; Thu, 15 Jun 2023 21:51:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1686891118; x=1689483118; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=4V9yJBgyOmbQjANnV9DxnBKMdqrQbGJrH4Ed12QWaXI=; b=iMDg1PNrApIBKsKygQ79B1XvKl93ZdPhgOgUSUKXOTPcT421YkIQhuLIbB0wX8dBx3 NXMun3R6bw+oPEeD54a9OjloHBrkl9fCfpbKNm+8MwLeajgFuK588GujX5o5qIS1Qhdm fv3kjO901Y8aXQrKIldHObdfPnq5C2xXEUVP58IrAQPJt+ckWC39Blui0QmQZLrtTtPd iMO1hQHKXnTYxC6yaa6QeHU89YtM7MU68iSvGXFJDprq3G8kgyxCfTN/aApcjLzwa7pk cL3BLZ7Or35kfEspdhd6DlQvutHrUBpmEBl13iZBC/2wk1RdUI3n4CIKO0St11dooo2o qupA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686891118; x=1689483118; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=4V9yJBgyOmbQjANnV9DxnBKMdqrQbGJrH4Ed12QWaXI=; b=JlnzMzSRhODJmVGK93iceXUTXKKeSUfe3MOk93nBAiwSBrYmnVkU9/mrhIOwH7Haqn 8Lil8k3t/GMIjcVfyQGhBoE7Lix7VmSDDFVrhPmPXiqQVbz+HOC0T7eekapevK22Apcn SRbwRfBf+v3mabXGBpF7OU/7yDqXDXeyGaS3sB9QSna+NBoBCFUk0ymdL8kthYoCxacY /6rXuAHr9Q39vQd4rIdgWxmqlJh5d0iQMmSUkFG9NYKyBvOJ8yZ69jO0WktIYoQgV5Wx yFkmFuDBMn1u4E4M2nZ2rnl4RhEgaRiKBXMmQq/RL4N3z4F0twO6cN1Cw2rhFSHbfA5C 4W/Q== X-Gm-Message-State: AC+VfDw1YQN8ibhTlidLtKEVVA0RH7bsbcTOfYGK59dcahL/ZrtZJZnb Q4MXieUxqw91A8b1NI5P/kTO41Xb/q1a4wVmldO5ow== X-Received: by 2002:a50:9351:0:b0:518:7076:74bc with SMTP id n17-20020a509351000000b00518707674bcmr198686eda.1.1686891118309; Thu, 15 Jun 2023 21:51:58 -0700 (PDT) MIME-Version: 1.0 References: <20230614180837.630180-1-ojeda@kernel.org> <20230614180837.630180-3-ojeda@kernel.org> In-Reply-To: <20230614180837.630180-3-ojeda@kernel.org> From: David Gow Date: Fri, 16 Jun 2023 12:51:45 +0800 Message-ID: Subject: Re: [PATCH 2/6] rust: str: make doctests compilable/testable To: Miguel Ojeda Cc: Brendan Higgins , Wedson Almeida Filho , Alex Gaynor , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Alice Ryhl , Andreas Hindborg , Philip Li , kunit-dev@googlegroups.com, linux-kselftest@vger.kernel.org, rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="000000000000e6180b05fe37f1ae" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --000000000000e6180b05fe37f1ae Content-Type: text/plain; charset="UTF-8" On Thu, 15 Jun 2023 at 02:09, Miguel Ojeda wrote: > > Rust documentation tests are going to be build/run-tested > with the KUnit integration added in a future patch, thus > update them to make them compilable/testable so that we > may start enforcing it. > > Signed-off-by: Miguel Ojeda > --- Reviewed-by: David Gow Cheers, -- David --000000000000e6180b05fe37f1ae Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIPnwYJKoZIhvcNAQcCoIIPkDCCD4wCAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0BBwGg ggz5MIIEtjCCA56gAwIBAgIQeAMYYHb81ngUVR0WyMTzqzANBgkqhkiG9w0BAQsFADBMMSAwHgYD VQQLExdHbG9iYWxTaWduIFJvb3QgQ0EgLSBSMzETMBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UE AxMKR2xvYmFsU2lnbjAeFw0yMDA3MjgwMDAwMDBaFw0yOTAzMTgwMDAwMDBaMFQxCzAJBgNVBAYT AkJFMRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNhMSowKAYDVQQDEyFHbG9iYWxTaWduIEF0bGFz IFIzIFNNSU1FIENBIDIwMjAwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCvLe9xPU9W dpiHLAvX7kFnaFZPuJLey7LYaMO8P/xSngB9IN73mVc7YiLov12Fekdtn5kL8PjmDBEvTYmWsuQS 6VBo3vdlqqXZ0M9eMkjcKqijrmDRleudEoPDzTumwQ18VB/3I+vbN039HIaRQ5x+NHGiPHVfk6Rx c6KAbYceyeqqfuJEcq23vhTdium/Bf5hHqYUhuJwnBQ+dAUcFndUKMJrth6lHeoifkbw2bv81zxJ I9cvIy516+oUekqiSFGfzAqByv41OrgLV4fLGCDH3yRh1tj7EtV3l2TngqtrDLUs5R+sWIItPa/4 AJXB1Q3nGNl2tNjVpcSn0uJ7aFPbAgMBAAGjggGKMIIBhjAOBgNVHQ8BAf8EBAMCAYYwHQYDVR0l BBYwFAYIKwYBBQUHAwI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