From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by sourceware.org (Postfix) with ESMTPS id ABDEC385772A for ; Tue, 30 Jan 2024 12:11:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org ABDEC385772A 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 ABDEC385772A Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::42f ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706616772; cv=none; b=sEYoBpCurDjaT1h6r7v4iNP2JpSK9Lf5cia41QgSm2kLwbqUeVRgq5OJw27a1X5/t7oweTaGtaEk48b0J6NTOxZz7ZaVFrlAFceSoridL4gAvxn+RhtzdYA8UeLy6PeCsrl7/8VxeZXQUqMWey+37JYtXLw7NS3y/S16Yw/WPkQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706616772; c=relaxed/simple; bh=OLEqzupl614tw1W8mb6UXx17WjxZ++OXnN6CzYxMTBc=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=ots0xVb9Z7pInqFwTNfr28snGNzLxWPANeIpIkEv/Lgp4ZSxyLGN1j25o1pdzwXcXcutCEmUkruufgVRE2v80co0odFJYhR5YjEB8Ql4OrYuddy43KlxptWqjfVEmHCQIS8lsUvZQl5RG9zXvFKiqWb6ZE0+UQxgPJ/z21fvkK4= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wr1-x42f.google.com with SMTP id ffacd0b85a97d-33ae74e5394so1286089f8f.3 for ; Tue, 30 Jan 2024 04:11:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; t=1706616717; x=1707221517; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=esOFYPKaxJQOXgEgz4hAIPNYbgdWqyYspTIk9OInHdA=; b=ZEpFiPRf9SQ4g/fw314mL2ysMjnFlCDDFHPVygnk2QVI8do2t5JPQwA/HfSnuDlZUp 90JsoXjUN/DExSMUadAo9pmlY0TEnvb34AUrxBArI1h8+YPu5K+eLMQx91In+Btvgy7E oSwfmtELE0PuuhlNNktaWBJGR6i9vVbxN3yodoSR8GlSfXya1xziGGBoIsFj9wq2t+To tK23jc9RYaKC30RWm7LZjXJEW8iNpqVbVtQVLfXPykNNcT77y7nCSaCjNt/Fzw5Bml2e 0Z3WagFv3Zy2Lq0W+2hF9Irf2128It4c/gEZsjn7Cw0DBnE6LBBLapJoM89fn7Pmqxg0 dCzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706616717; x=1707221517; h=content-transfer-encoding:mime-version:reply-to: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=esOFYPKaxJQOXgEgz4hAIPNYbgdWqyYspTIk9OInHdA=; b=guXJtPGZi6ob5d24Qp5plNRwaZjTzL9KFIU/WIRRdgLSJrBWOYMJLBT6QYsz1HPceX ABPpVkNrarKRXQvm92NDe9PKWrE0BXANQM+HaGtfvC184RQU44vzhEx3fnElW7SBbJsj NneW8BOVCz4h1JzGUcQB+wIvbu9wJip+kgSsypWdfTQQtt7j4OV27nrp9l/axwXF1uEO WhnyV4GNxU+xnDfnuiktFTuKxayBFP34EgzUAOBC2MTUcD/cvENAYXhy0JfmJavCUC4x T5nyw8XrmZjo/Ul2+QakXFCmhfm4egDPxhGqq6wJjE5ThgQn3pMKDY+rED4GyWpeMJ76 4MIA== X-Gm-Message-State: AOJu0YzVOBK5VkB2jsDrLRO8+3emVJS9bRHM+vIUSaXwddS/jyUT5IyQ g6qbOloSgdVqiGOgLo/pgVA0A6ngTveV4gJIss09Mdzva/4V8sfdfKL98irO2A== X-Google-Smtp-Source: AGHT+IF5ayHYseqY/SCVhsvryPON5UKHwE7MLDsNge2bwUa7PLH70sLwDJWilVzKhVx2sZpK6fx4nQ== X-Received: by 2002:a05:6000:1888:b0:33a:f12d:61c3 with SMTP id a8-20020a056000188800b0033af12d61c3mr3927204wri.68.1706616717364; Tue, 30 Jan 2024 04:11:57 -0800 (PST) Received: from platypus.localdomain ([62.23.166.218]) by smtp.gmail.com with ESMTPSA id f9-20020a056000036900b00339307d9d31sm10569894wrf.112.2024.01.30.04.11.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 04:11:57 -0800 (PST) From: arthur.cohen@embecosm.com To: gcc-patches@gcc.gnu.org Cc: gcc-rust@gcc.gnu.org, Kushal Pal Subject: [COMMITTED 094/101] gccrs: Added newline to get more readable lexdump Date: Tue, 30 Jan 2024 13:07:50 +0100 Message-ID: <20240130121026.807464-97-arthur.cohen@embecosm.com> X-Mailer: git-send-email 2.42.1 In-Reply-To: <20240130121026.807464-2-arthur.cohen@embecosm.com> References: <20240130121026.807464-2-arthur.cohen@embecosm.com> Reply-To: arthur.cohen@embecosm.com MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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,T_SCC_BODY_TEXT_LINE 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: From: Kushal Pal Fixes #2783 gcc/rust/ChangeLog: * lex/rust-lex.cc (Lexer::dump_and_skip): Changed " " to '\n' Signed-off-by: Kushal Pal --- gcc/rust/lex/rust-lex.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/rust/lex/rust-lex.cc b/gcc/rust/lex/rust-lex.cc index 6fc336d97e0..bf6bf4c8446 100644 --- a/gcc/rust/lex/rust-lex.cc +++ b/gcc/rust/lex/rust-lex.cc @@ -240,7 +240,7 @@ Lexer::dump_and_skip (int n) + std::string (tok->get_type_hint_str ())) : "") << " "; - out << Linemap::location_to_string (loc) << " "; + out << Linemap::location_to_string (loc) << '\n'; } token_queue.skip (0); -- 2.42.1