[gccrs COMMIT 1/2] Fix a typo
gerris.rs@gmail.com
gerris.rs@gmail.com
Sun Mar 22 20:58:07 GMT 2026
From: Owen Avery <powerboat9.gamer@gmail.com>
gcc/rust/ChangeLog:
* typecheck/rust-hir-type-check-pattern.cc
(TypeCheckPattern::visit): Fix typo "constatnt".
Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
---
This change was merged into the gccrs repository and is posted here for
upstream visibility and potential drive-by review, as requested by GCC
release managers.
Each commit email contains a link to its details on github from where you can
find the Pull-Request and associated discussions.
Commit on github: https://github.com/Rust-GCC/gccrs/commit/376d9da47fa9f4d533277d5c966c52efd57e37e7
The commit has been mentioned in the following pull-request(s):
- https://github.com/Rust-GCC/gccrs/pull/4480
gcc/rust/typecheck/rust-hir-type-check-pattern.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/rust/typecheck/rust-hir-type-check-pattern.cc b/gcc/rust/typecheck/rust-hir-type-check-pattern.cc
index 4f484ca0d..32b137141 100644
--- a/gcc/rust/typecheck/rust-hir-type-check-pattern.cc
+++ b/gcc/rust/typecheck/rust-hir-type-check-pattern.cc
@@ -135,7 +135,7 @@ TypeCheckPattern::visit (HIR::PathInExpression &pattern)
rich_location rich_locus (line_table,
pattern.get_final_segment ().get_locus ());
rich_locus.add_fixit_replace (
- "not a unit struct, unit variant or constatnt");
+ "not a unit struct, unit variant or constant");
rust_error_at (rich_locus, ErrorCode::E0532,
"expected unit struct, unit variant or constant, "
"found %s variant %<%s::%s%>",
base-commit: 29f1bf1ff31d3e885d7b8ec85fbd1615ba7680de
--
2.53.0
More information about the Gcc-rust
mailing list