Skip to content

Add locus getters#3861

Merged
P-E-P merged 1 commit into
Rust-GCC:masterfrom
P-E-P:fix-clang-warnings
Jun 27, 2025
Merged

Add locus getters#3861
P-E-P merged 1 commit into
Rust-GCC:masterfrom
P-E-P:fix-clang-warnings

Conversation

@P-E-P

@P-E-P P-E-P commented Jun 27, 2025

Copy link
Copy Markdown
Member

Missing locus getters create additional warning with clang. This PR will reduce the amount of warnings emitted by clang with clang-filter enabled.

gcc/rust/ChangeLog:

	* ast/rust-expr.h: Add getter to locus field.
	* ast/rust-pattern.h (tokenid_to_rangekind): Likewise.
	* hir/tree/rust-hir-item.h: Likewise.
	* hir/tree/rust-hir-visibility.h: Likewise.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
@P-E-P P-E-P force-pushed the fix-clang-warnings branch from 4a51555 to 153763b Compare June 27, 2025 11:38
@P-E-P P-E-P enabled auto-merge June 27, 2025 11:48
@P-E-P P-E-P added this pull request to the merge queue Jun 27, 2025
Merged via the queue into Rust-GCC:master with commit 1f53118 Jun 27, 2025
13 checks passed
@P-E-P P-E-P deleted the fix-clang-warnings branch August 5, 2025 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant