From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by sourceware.org (Postfix) with ESMTPS id 5FE6B385E45F for ; Thu, 1 Aug 2024 14:58:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5FE6B385E45F 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 5FE6B385E45F Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::52d ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722524337; cv=none; b=xsjjgA+v0uF+iijK5piG2EF4lLcquOOABNW3duYjtrzGKvdeA4L7Tlx+uGf7FFQ/oD/1GYSfUlwyXGDynb59y7yBcDfefPYIIUR2T4RedYp6eTSvjMQc4jBN2Dt2ZOX/QaKryx7hoU8q+hDAPXerheQK2z7LlGWLfAZ9+ZTWJGI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722524337; c=relaxed/simple; bh=MBCLYVd31pK71GPJFIYS+20glo/Rk5Yegie35DSejzM=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=RF9GHFO0bLYewpkdGpUwo50HT4IFlfBAyThglhzdSA7VeGNFySlQ6GhpvNXVsC44tkdI9NNDvbpuRUfpR3vXhzuiju5SztFV347bsfasnjC4Vx576yv26c+4RfC+2jU8djxiUbpOBI8tSqMmqMMZEt2HGQMvkCf65qrIxe35PWA= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-5a79df5af51so4026598a12.0 for ; Thu, 01 Aug 2024 07:58:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; t=1722524325; x=1723129125; 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=Tgdxm642AnV+EshI717/ZxRXqKdLFG17uFesrn/knqA=; b=Mf4ChBfby6Q4Ofw8FcvNKoQ/RmPfSp80GFsi+Tva4hZEiG9paIv3VBO7NmdJxxF5ng MIGrKG5L0oScpUmSPtvnUa8h2CEm+BRRvaq2bdu42KrqNWyNS1Aj0pj87ubzhnR0saBa mStYSWvg+8Mpm12qGymgYCu9/wyzkIRrV8yFD4cP5tj9IZmV4AFluh99CxDOWQTf1F5G kaGCO6Cx1IB1hVj/Ia3zXixoT/xMWgt+/DWo81WyPcS2TWzNjti6U+fpqzsYxnmlnK4o u6kz4HP6PxNcBmjayw5lhhIQDFoQCOildlckfWTJiE3RsuFjZ/4OyCEp7rjVwbDCc1rl 6S1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722524325; x=1723129125; 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=Tgdxm642AnV+EshI717/ZxRXqKdLFG17uFesrn/knqA=; b=swcufW2QrQqNZDRqW/n0SLKmM1EEwJQZKzrDwSGqJsawO7LVYshXo+j0KgTM3z0Dc3 z9/cV2SsfNX/jYWQhwfMfRhIwrA1UUTiD+ifxFwyn6iEsnsg0IL9nk8U8xuL10vCovq8 4zXba8W8UqtcAbTG9HqYH171bXCSuDST7BsTluMWBvci4YlzQjvQs3AddFn1plaAEg9C /Imsek2PbkZ8MlzVsF+qnNJRsZPwDwdP0oLgAYVCq/OEQjnPe5QIn5X7duPIvzFji3J2 gsMN36D3ROcYNDeJF1YYTpP//QDSnr7F6o8HRkD8CKVaRi5KKRTJ7hTGph0+XtvdbaPN GMJw== X-Gm-Message-State: AOJu0YyO4Xk3dj5PjE2tZHI+UM3Y3bU5ZhnJPniAL1Ds3LFF/yWzdeW4 DOQbmSnnd3MysIS5fkkvfvUP0V+WPEEQQiRbltHE/HypFPgCJIEV6F0vEqSVT5lNklr+L6UtOlq 4rO8A X-Google-Smtp-Source: AGHT+IEJS9c6nn7weHI7AZTWpBTV/rHIKh9aLR8R6N5COuEuo2VULKVEdp175e+BMhwo9O087q6kDw== X-Received: by 2002:a05:6402:1909:b0:58c:10fd:5082 with SMTP id 4fb4d7f45d1cf-5b77c77bc77mr1712767a12.10.1722524324827; Thu, 01 Aug 2024 07:58:44 -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.07.58.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Aug 2024 07:58:44 -0700 (PDT) From: Arthur Cohen To: gcc-patches@gcc.gnu.org Cc: gcc-rust@gcc.gnu.org, Arthur Cohen Subject: [PATCH 018/125] gccrs: libformat_parser: Fix Rust warnings. Date: Thu, 1 Aug 2024 16:56:14 +0200 Message-ID: <20240801145809.366388-20-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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-13.8 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 List-Id: libgrust/ChangeLog: * libformat_parser/generic_format_parser/src/lib.rs: Remove unused deprecated attribute and unused import. * libformat_parser/src/lib.rs: Remove unused import. --- libgrust/libformat_parser/generic_format_parser/src/lib.rs | 2 -- libgrust/libformat_parser/src/lib.rs | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/libgrust/libformat_parser/generic_format_parser/src/lib.rs b/libgrust/libformat_parser/generic_format_parser/src/lib.rs index 87a20dc18c5..6a366177f25 100644 --- a/libgrust/libformat_parser/generic_format_parser/src/lib.rs +++ b/libgrust/libformat_parser/generic_format_parser/src/lib.rs @@ -14,12 +14,10 @@ // WARNING: We want to be able to build this crate with a stable compiler, // so no `#![feature]` attributes should be added! -#[deprecated(note = "Use a proper lexer function for this")] fn is_id_start(c: char) -> bool { c == '_' || unicode_xid::UnicodeXID::is_xid_start(c) } -#[deprecated(note = "Use a proper lexer function for this")] fn is_id_continue(c: char) -> bool { unicode_xid::UnicodeXID::is_xid_continue(c) } diff --git a/libgrust/libformat_parser/src/lib.rs b/libgrust/libformat_parser/src/lib.rs index eb3e1060e5d..c164578a103 100644 --- a/libgrust/libformat_parser/src/lib.rs +++ b/libgrust/libformat_parser/src/lib.rs @@ -3,7 +3,7 @@ // what's the plan? Have a function return something that can be constructed into a vector? // or an iterator? -use std::{ffi::CStr, mem}; +use std::ffi::CStr; trait IntoFFI { fn into_ffi(self) -> T; -- 2.45.2