rust/compiler/rustc_resolve/src
Yuki Okushi 3e735c6e93
Rollup merge of #80850 - m-ou-se:rustc-builtin-macro-name, r=petrochenkov
Allow #[rustc_builtin_macro = "name"]

This adds the option of specifying the name of a builtin macro in the `#[rustc_builtin_macro]` attribute: `#[rustc_builtin_macro = "name"]`.

This makes it possible to have both `std::panic!` and `core::panic!` as a builtin macro, by using different builtin macro names for each. This is needed to implement the edition-specific behaviour of the panic macros of RFC 3007.

Also removes `SyntaxExtension::is_derive_copy`, as the macro name (e.g. `sym::Copy`) is now tracked and provides that information directly.

r? ``@petrochenkov``
2021-01-10 16:56:05 +09:00
..
late Consistently call editions "Rust 20xx" in messages. 2020-12-31 19:06:09 +01:00
build_reduced_graph.rs resolve/expand: Improve attribute expansion on macro definitions and calls 2021-01-09 18:43:01 +03:00
check_unused.rs Attach TokenStream to ast::Visibility 2020-09-10 17:33:06 -04:00
def_collector.rs resolve/expand: Improve attribute expansion on macro definitions and calls 2021-01-09 18:43:01 +03:00
diagnostics.rs Use correct span for structured suggestion 2021-01-07 16:52:44 -08:00
imports.rs Move lev_distance to rustc_ast, make non-generic 2020-11-24 16:12:23 -08:00
late.rs Rollup merge of #80012 - sasurau4:feature/point-constant-identifier-E0435, r=petrochenkov 2021-01-08 02:05:58 +09:00
lib.rs Rollup merge of #80850 - m-ou-se:rustc-builtin-macro-name, r=petrochenkov 2021-01-10 16:56:05 +09:00
macros.rs Allow #[rustc_builtin_macro = "name"]. 2021-01-09 19:50:06 +01:00