]> git.ipfire.org Git - thirdparty/gcc.git/commit
Add `#[track_caller]` as known attribute
authorbeamandala <mandalapubhavesh@gmail.com>
Thu, 20 Mar 2025 22:34:48 +0000 (17:34 -0500)
committerCohenArthur <arthur.cohen@embecosm.com>
Mon, 14 Apr 2025 09:32:06 +0000 (09:32 +0000)
commitecb649973a3b176f6a723c2f3d78c23ee121163d
tree4243a6749ad1500a6262819016403467ac145dc8
parenta283cdcf85e2f4bafe9d02ee6117bf46fcbb5a82
Add `#[track_caller]` as known attribute

gcc/rust/ChangeLog:

* expand/rust-macro-builtins.cc (MacroBuiltin::builtin_transcribers):
Add entry for track_caller.
* util/rust-attribute-values.h: add `TRACK_CALLER` attribute.
* util/rust-attributes.cc: add `track_caller` attribute definition.

gcc/testsuite/ChangeLog:

* rust/compile/track_caller.rs: New test.

Signed-off-by: Bhavesh Mandalapu <mandalapubhavesh@gmail.com>
gcc/rust/expand/rust-macro-builtins.cc
gcc/rust/util/rust-attribute-values.h
gcc/rust/util/rust-attributes.cc
gcc/testsuite/rust/compile/track_caller.rs [new file with mode: 0644]