aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/rust/checks/errors/rust-unsafe-checker.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/rust/checks/errors/rust-unsafe-checker.cc b/gcc/rust/checks/errors/rust-unsafe-checker.cc
index 12c9e86..7792b86 100644
--- a/gcc/rust/checks/errors/rust-unsafe-checker.cc
+++ b/gcc/rust/checks/errors/rust-unsafe-checker.cc
@@ -86,7 +86,8 @@ static void
check_unsafe_call (HIR::Function *fn, Location locus, const std::string &kind)
{
if (fn->get_qualifiers ().is_unsafe ())
- rust_error_at (locus, "call to unsafe %s requires unsafe function or block",
+ rust_error_at (locus, ErrorCode ("E0133"),
+ "call to unsafe %s requires unsafe function or block",
kind.c_str ());
}