Skip to content

Builtin macros #927

Open
Open
@CohenArthur

Description

Bang macros

Attribute macros

  • bench
  • cfg_accessible
  • cfg_eval
  • derive
  • global_allocator
  • test
  • test_case

Derive macros

Directly taken from https://github.com/rust-lang/rust/blob/a240ccd81c74c105b6f5fe84c46f8d36edb7e306/compiler/rustc_builtin_macros/src/lib.rs#L52-L119

Thanks a lot to @bjorn3 for the corrections

Builtin macros which are declared and/or used in libcore 1.49:

  • format_args
  • format_args_nl
  • RustcDecodable
  • RustcEncodable
  • cfg_accessible
  • global_allocator
  • test
  • test_case
  • bench
  • option_env
  • concat_idents
  • module_path
  • asm
  • llvm_asm
  • global_asm
  • log_syntax
  • trace_macros

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    • Status

      Todo
    • Status

      Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions