dtor 0.11.0

__attribute__((destructor)) for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
error: Unexpected meta attribute: 'ctor (link_section = ".ctors", used(linker))'
       ...expected one of:
       anonymous; crate_path = $path : pat;
       ctor(export_name_prefix = $ctor_export_name_prefix_str : literal);
       ctor(link_section = $ctor_link_section_name : literal); export_name_prefix =
       $export_name_prefix_str : literal; link_section = $section : literal; method =
       $method_id : ident; unsafe; used(linker);
 --> tests/errors/dtor_bad_nesting.rs:3:1
  |
3 | #[dtor(unsafe, link_section = ".dtors", ctor(link_section = ".ctors", used(linker)))]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: this error originates in the macro `$crate::__extract_meta` which comes from the expansion of the attribute macro `dtor` (in Nightly builds, run with -Z macro-backtrace for more info)