Skip to content

Commit

Permalink
Fix some small issues
Browse files Browse the repository at this point in the history
gcc/rust/ChangeLog:

	* backend/rust-compile-intrinsic.cc
	(assume_handler): Fix copy/paste error.
	* typecheck/rust-hir-type-check-pattern.cc
	(TypeCheckPattern::visit): Fix spelling mistake.

Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
  • Loading branch information
powerboat9 committed Mar 11, 2025
1 parent d6c5c64 commit 46a7474
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gcc/rust/backend/rust-compile-intrinsic.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1273,7 +1273,7 @@ assume_handler (Context *ctx, TyTy::FnType *fntype)
TREE_SIDE_EFFECTS (assume_expr) = 1;

ctx->add_statement (assume_expr);
// BUILTIN size_of FN BODY END
// BUILTIN assume FN BODY END

finalize_intrinsic_block (ctx, fndecl);

Expand Down
2 changes: 1 addition & 1 deletion gcc/rust/typecheck/rust-hir-type-check-pattern.cc
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,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 %<%s%>",
Expand Down

0 comments on commit 46a7474

Please sign in to comment.