diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-01-03 15:45:39 +0000 |
---|---|---|
committer | CohenArthur <arthur.cohen@embecosm.com> | 2025-01-16 14:00:31 +0000 |
commit | 955c4f7e587c082f0d364e4305c78b35822bd6ab (patch) | |
tree | 5eb4b0e62dc71d80a70a2c280c448713de1666b7 /gcc | |
parent | e530ccb311082eb2cde113f0873a62ce4aa82a5c (diff) | |
download | gcc-955c4f7e587c082f0d364e4305c78b35822bd6ab.zip gcc-955c4f7e587c082f0d364e4305c78b35822bd6ab.tar.gz gcc-955c4f7e587c082f0d364e4305c78b35822bd6ab.tar.bz2 |
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; } |