From patchwork Thu Aug 1 14:57:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arthur Cohen X-Patchwork-Id: 1967805 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=embecosm.com header.i=@embecosm.com header.a=rsa-sha256 header.s=google header.b=Ibv1XE6L; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WZXsZ1WqCz1ybV for ; Fri, 2 Aug 2024 01:28:02 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 66A8D385E45E for ; Thu, 1 Aug 2024 15:28:00 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by sourceware.org (Postfix) with ESMTPS id 54FED385E457 for ; Thu, 1 Aug 2024 15:00:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 54FED385E457 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=embecosm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 54FED385E457 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::52c ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722524463; cv=none; b=DU+2sPmGYYtwCtzJ6GzOFKQSFzi99+pq1SErC53ssWG7A0nO49kaR4tL5XdHCMjIa7Qy+SF5WDd6lEycX2C7rPgjCaIkWRQnFrH0Qe0xywjtt5AVdoFLxtcoSnxb4QRbL09Jt6NRQs+1ESGQtU7Gt/AkAABj7AAd8t1WyT5a2a0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722524463; c=relaxed/simple; bh=oHQSWFXmh/o0y+zLQigd24KIGI8JRy5/FP0TIWNA2Hw=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=CfE+7dNBLz46H7ZVAJZRJ07QVsKMtpR+rpHmBwg/9zmkhniK1Hc3JAheMNY18cc4Yyes79j9XTeMthadJfhOJWDL1ANA8JuGc5ectvHJ8cr0qufMHEN7at1CdiH1ZPxLp4iF2E3JJ8Xe2M+Ffn1cjtcNFDz4dwUty0tWK3RHzsw= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-5a15692b6f6so10727339a12.0 for ; Thu, 01 Aug 2024 08:00:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; t=1722524411; x=1723129211; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=/8XLTZcYnBp8ol6glOueci1zPDKPC1NysIkLp/w0TsU=; b=Ibv1XE6LP78LX656OL4GinMiqFTO6pAv2r+zuyQ9np2y2DhweWFX7nyckN8WAr4H2E sGZtzry4d9Mxye04NAspvxGtlViO9ldOKwyYDIi1pBODkAg7caObcboQt5LfuwrKH5Sd XvYlAVa0qShFAH8kafo6RmM32l3r5A9h3iVbPleIQ9RNCZEPngKw3u7lALiB/u/AeUGd Lx3yyiL0P6UvpA+ojK6vescD3bF6cvXBZrM2MmCOD66oujIHmmjqQ6EOxt+mfDszHwOx tLBkzTFL1HuDgk2war/XRe4XQ0gWoMAfVP6En2jUheqSrEnOBHAYRI5yRLuoG0BBPhY5 5tNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722524411; x=1723129211; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/8XLTZcYnBp8ol6glOueci1zPDKPC1NysIkLp/w0TsU=; b=NcBohGIgsfkGzsjYEs8Csqb9bbXd9vnTWu16sb4OVzCi5y2RLC7Me71yV/IpBdyjyp X6s+8DgFxzGtXQpLZTlYBpz3/eUjwKBg1Mv10IRIdLVWk8eDXyGdflVz1IzAVg0ivX01 Wjw/GCuG5cM5TgsQOBFw2gmdXJgYL5gwrmQkgHnekEcPQyIU4k6DOTViUkHLVFyAa/aX eT2QMvbumIC6xV3SJqcdQqcu92ZWMrrlW7bIdi2iddhggPyXyEqI8M3VS1OvvvfnvdAZ /VnUXkrYI7vSr1stecxk1C+a6ac6zviUSej/o3bDab5Ibxc2y3zHgayrFxg/m6sQLZ/j ei2g== X-Gm-Message-State: AOJu0Yz3/YDk4zaYIEIcqEhrWiO2/P4DLiYIHcZCx2GEUQpDb+nS7nGQ EGhIwrnkPXyl2aEpvaInN704pXiMsv9B4KLcUYmrDCbnZ5zeKF8u5r1XshpJ/fPPTAvApYiygUm DKKV4 X-Google-Smtp-Source: AGHT+IEz2UA67Zsol+yAjMnd3odXC8bHqlIHsx4A8tFh6MIFY4tfLFErEwqzsB+F1pzO6A7YdSD9tw== X-Received: by 2002:a50:ec8d:0:b0:5a2:2b56:e090 with SMTP id 4fb4d7f45d1cf-5b7f3bcf9aemr413797a12.13.1722524410712; Thu, 01 Aug 2024 08:00:10 -0700 (PDT) Received: from platypus.lan ([2a04:cec2:9:dc84:3622:6733:ff49:ee91]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5ac63590592sm10252456a12.25.2024.08.01.08.00.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Aug 2024 08:00:10 -0700 (PDT) From: Arthur Cohen To: gcc-patches@gcc.gnu.org Cc: gcc-rust@gcc.gnu.org, Pierre-Emmanuel Patry Subject: [PATCH 096/125] gccrs: Fix quoted string format Date: Thu, 1 Aug 2024 16:57:32 +0200 Message-ID: <20240801145809.366388-98-arthur.cohen@embecosm.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240801145809.366388-2-arthur.cohen@embecosm.com> References: <20240801145809.366388-2-arthur.cohen@embecosm.com> MIME-Version: 1.0 X-Spam-Status: No, score=-14.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org From: Pierre-Emmanuel Patry This format dialog triggered a warning. gcc/rust/ChangeLog: * resolve/rust-toplevel-name-resolver-2.0.cc (TopLevel::handle_use_dec): Replace the string format %<%s%> with the proper %qs format. Signed-off-by: Pierre-Emmanuel Patry --- gcc/rust/resolve/rust-toplevel-name-resolver-2.0.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/rust/resolve/rust-toplevel-name-resolver-2.0.cc b/gcc/rust/resolve/rust-toplevel-name-resolver-2.0.cc index 80b142678b9..e6da8db850c 100644 --- a/gcc/rust/resolve/rust-toplevel-name-resolver-2.0.cc +++ b/gcc/rust/resolve/rust-toplevel-name-resolver-2.0.cc @@ -499,7 +499,7 @@ TopLevel::handle_use_dec (AST::SimplePath path) auto result = node_forwarding.find (def.get_node_id ()); if (result != node_forwarding.cend () && result->second != path.get_node_id ()) - rust_error_at (path.get_locus (), "%<%s%> defined multiple times", + rust_error_at (path.get_locus (), "%qs defined multiple times", declared_name.c_str ()); else // No previous thing has inserted this into our scope node_forwarding.insert ({def.get_node_id (), path.get_node_id ()});