Skip to content

Commit 3621c8d

Browse files
powerboat9philberty
authored andcommitted
Fix some small issues
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 <[email protected]>
1 parent d6c5c64 commit 3621c8d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

gcc/rust/backend/rust-compile-intrinsic.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1273,7 +1273,7 @@ assume_handler (Context *ctx, TyTy::FnType *fntype)
12731273
TREE_SIDE_EFFECTS (assume_expr) = 1;
12741274

12751275
ctx->add_statement (assume_expr);
1276-
// BUILTIN size_of FN BODY END
1276+
// BUILTIN assume FN BODY END
12771277

12781278
finalize_intrinsic_block (ctx, fndecl);
12791279

gcc/rust/typecheck/rust-hir-type-check-pattern.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ TypeCheckPattern::visit (HIR::PathInExpression &pattern)
109109
rich_location rich_locus (
110110
line_table, pattern.get_final_segment ().get_locus ());
111111
rich_locus.add_fixit_replace (
112-
"not a unit struct, unit variant or constatnt");
112+
"not a unit struct, unit variant or constant");
113113
rust_error_at (rich_locus, ErrorCode::E0532,
114114
"expected unit struct, unit variant or constant, "
115115
"found %s %<%s%>",

0 commit comments

Comments
 (0)