about summary refs log tree commit diff
path: root/tests/rustdoc/source-code-pages/check-source-code-urls-to-def.rs
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2025-09-19 14:53:16 +0200
committerNikita Popov <npopov@redhat.com>2025-09-25 10:04:40 +0200
commitd226e7aa93425ba2090f423642341a99ab047838 (patch)
treec3637a3064bf9f53334ec613efd29eed417bde71 /tests/rustdoc/source-code-pages/check-source-code-urls-to-def.rs
parentcaccb4d0368bd918ef6668af8e13834d07040417 (diff)
downloadrust-d226e7aa93425ba2090f423642341a99ab047838.tar.gz
rust-d226e7aa93425ba2090f423642341a99ab047838.zip
Use standard attribute logic for allocator shim
Use llfn_attrs_from_instance() to generate the attributes for the
allocator shim. This ensures that we generate all the usual
attributes (and don't get to find out one-by-one that a certain
attribute is important for a certain target). Additionally this
will enable emitting the allocator-specific attributes (not
included here).

This change is quite awkward because the allocator shim uses
SimpleCx, while llfn_attrs_from_instance uses CodegenCx. I've
switched it to use SimpleCx plus tcx/sess arguments where necessary.
If there's a simpler way to do this, I'd love to know about it...
Diffstat (limited to 'tests/rustdoc/source-code-pages/check-source-code-urls-to-def.rs')
0 files changed, 0 insertions, 0 deletions