1
Fork 0
rust/compiler/rustc_builtin_macros/src
Jonas Schievink e8ef15d9d1
Rollup merge of #80855 - m-ou-se:assert-2021, r=petrochenkov
Expand assert!(expr, args..) to include $crate for hygiene on 2021.

This makes `assert!(expr, args..)` properly hygienic in Rust 2021.

This is part of rust-lang/rfcs#3007, see #80162.

Before edition 2021, this was a breaking change, as `std::panic` and `core::panic` are different. In edition 2021 they will be identical, making it possible to apply proper hygiene here.
2021-01-24 22:09:53 +01:00
..
deriving reduce borrowing and (de)referencing around match patterns (clippy::match_ref_pats) 2021-01-02 20:09:17 +01:00
format_foreign
asm.rs rustc_parse: Make Parser::unexpected public and use it in built-in macros 2020-10-06 00:23:36 +03:00
assert.rs Only call span.rust_2021() when necessary. 2021-01-24 14:19:05 +01:00
cfg.rs
cfg_accessible.rs expand: Tell built-in macros whether we are currently in forced expansion mode 2020-11-19 19:25:20 +03:00
cmdline_attrs.rs Unconditionally capture tokens for attributes. 2020-10-21 18:57:29 -04:00
compile_error.rs
concat.rs
concat_idents.rs expand: Stop un-interpolating NtIdents before passing them to built-in macros 2020-09-28 23:10:44 +03:00
env.rs
format.rs use matches!() macro in more places 2020-12-24 13:35:12 +01:00
format_foreign.rs use matches!() macro in more places 2020-12-24 13:35:12 +01:00
global_allocator.rs Handle Annotatable::Stmt in some builtin macros 2020-11-24 14:04:32 -05:00
global_asm.rs Attach TokenStream to ast::Visibility 2020-09-10 17:33:06 -04:00
lib.rs resolve: Simplify built-in macro table 2021-01-10 14:48:47 +03:00
llvm_asm.rs Rollup merge of #80495 - jyn514:rename-empty, r=petrochenkov 2020-12-30 20:56:58 +00:00
log_syntax.rs
proc_macro_harness.rs use matches!() macro in more places 2020-12-24 13:35:12 +01:00
source_util.rs Force token collection to run when parsing nonterminals 2021-01-20 18:09:32 -05:00
standard_library_imports.rs cleanup: Remove ParseSess::injected_crate_name 2020-11-13 00:59:57 +03:00
test.rs Handle Annotatable::Stmt in some builtin macros 2020-11-24 14:04:32 -05:00
test_harness.rs Changed unwrap_or to unwrap_or_else in some places. 2020-11-10 20:07:47 -08:00
trace_macros.rs
util.rs