diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-01-03 15:45:39 +0000 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-03-21 12:56:57 +0100 |
commit | 20d4c59e248faf86d34c2525901951ee88163a66 (patch) | |
tree | 7165261cec0775c93c3039eb9dd09920a19a48f9 /gcc | |
parent | 1d0be889267e3b3c58d97148640c0d46bc19253e (diff) | |
download | gcc-20d4c59e248faf86d34c2525901951ee88163a66.zip gcc-20d4c59e248faf86d34c2525901951ee88163a66.tar.gz gcc-20d4c59e248faf86d34c2525901951ee88163a66.tar.bz2 |
gccrs: collect-lang-items: Display attribute upon error finding it
gcc/rust/ChangeLog:
* ast/rust-collect-lang-items.cc (get_lang_item_attr): Show unknown attribute upon error.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/rust/ast/rust-collect-lang-items.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/rust/ast/rust-collect-lang-items.cc b/gcc/rust/ast/rust-collect-lang-items.cc index 50d134a..168123e 100644 --- a/gcc/rust/ast/rust-collect-lang-items.cc +++ b/gcc/rust/ast/rust-collect-lang-items.cc @@ -36,7 +36,8 @@ get_lang_item_attr (const T &maybe_lang_item) const auto &str_path = attr.get_path ().as_string (); if (!Analysis::Attributes::is_known (str_path)) { - rust_error_at (attr.get_locus (), "unknown attribute"); + rust_error_at (attr.get_locus (), "unknown attribute %qs", + str_path.c_str ()); continue; } |