aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/Make-lang.in
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-07-27 13:11:08 +0200
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 18:56:01 +0100
commitde7e34bdd6c62294831d867188807216e186ed03 (patch)
tree3099f625a00771e06479bdd144d57c758785243d /gcc/rust/Make-lang.in
parent1346a7652e8cf70b54f0b12f6844f0c929781c2f (diff)
downloadgcc-de7e34bdd6c62294831d867188807216e186ed03.zip
gcc-de7e34bdd6c62294831d867188807216e186ed03.tar.gz
gcc-de7e34bdd6c62294831d867188807216e186ed03.tar.bz2
gccrs: proc_macro: Refactor attribute search
Refactor attribute search with early return. Also fix the optional building an object with it's default empty constructor by explicitely using tl::null_opt. gcc/rust/ChangeLog: * checks/errors/privacy/rust-privacy-reporter.cc (find_proc_macro_attribute): Refactor the function to be safer and more efficient. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust/Make-lang.in')
0 files changed, 0 insertions, 0 deletions