about summary refs log tree commit diff
path: root/compiler/rustc_builtin_macros/src
AgeCommit message (Expand)AuthorLines
2021-01-20Force token collection to run when parsing nonterminalsAaron Hill-2/+3
2021-01-10resolve: Simplify built-in macro tableVadim Petrochenkov-10/+4
2021-01-09Don't set builtin_name for builtin macro implementations.Mara Bos-1/+1
2021-01-09Allow #[rustc_builtin_macro = "name"].Mara Bos-1/+1
2021-01-02reduce borrowing and (de)referencing around match patterns (clippy::match_ref...Matthias Krüger-5/+5
2021-01-01first pass at default values for const genericsJulian Knodt-1/+2
2020-12-30Rollup merge of #80495 - jyn514:rename-empty, r=petrochenkovMara Bos-1/+1
2020-12-30Rename kw::Invalid -> kw::EmptyJoshua Nelson-1/+1
2020-12-24use matches!() macro in more placesMatthias Krüger-26/+16
2020-12-22Add some intra-doc links to compiler docsJoshua Nelson-1/+4
2020-12-11fix clippy::unnecessary_filter_mapMatthias Krüger-4/+1
2020-11-26Properly handle attributes on statementsAaron Hill-2/+2
2020-11-24Handle `Annotatable::Stmt` in some builtin macrosAaron Hill-14/+70
2020-11-23Reduce boilerplate with the `?` operatorLingMan-10/+6
2020-11-20Auto merge of #78088 - fusion-engineering-forks:panic-fmt-lint, r=estebankbors-22/+30
2020-11-19expand: Mark some dead code in derive expansion as unreachableVadim Petrochenkov-20/+3
2020-11-19expand: Tell built-in macros whether we are currently in forced expansion modeVadim Petrochenkov-4/+7
2020-11-15Rollup merge of #79005 - petrochenkov:noinjected, r=davidtwcoJonas Schievink-3/+3
2020-11-13Reserve space in advanceDániel Buga-1/+1
2020-11-13cleanup: Remove `ParseSess::injected_crate_name`Vadim Petrochenkov-3/+3
2020-11-10Changed unwrap_or to unwrap_or_else in some places.Nicholas-Baron-1/+1
2020-11-10Rollup merge of #78875 - petrochenkov:cleantarg, r=Mark-SimulacrumJonas Schievink-1/+1
2020-11-08Collapse all uses of `target.options.foo` into `target.foo`Vadim Petrochenkov-1/+1
2020-11-03rustc_ast: `visit_mac` -> `visit_mac_call`Vadim Petrochenkov-1/+1
2020-11-03rustc_ast: Do not panic by default when visiting macro callsVadim Petrochenkov-12/+0
2020-10-21Unconditionally capture tokens for attributes.Aaron Hill-1/+1
2020-10-19Small cleanups in assert!() and panic_fmt lint.Mara Bos-31/+29
2020-10-18Expand assert!(expr) to panic() function instead of panic!() macro.Mara Bos-26/+36
2020-10-15Replace target.target with target and target.ptr_width with target.pointer_widthest31-1/+1
2020-10-13Rollup merge of #77831 - LingMan:use_std, r=jonas-schievinkYuki Okushi-23/+10
2020-10-11Simplify using is_ascii_alphabetic and is_ascii_alphanumericLingMan-8/+2
2020-10-11Don't duplicate char::is_ascii_digitLingMan-15/+8
2020-10-11Remove unnecessary unsafe block around calls to discriminant_valueTomasz Miąsko-15/+16
2020-10-07Auto merge of #77595 - petrochenkov:asmident, r=oli-obkbors-19/+19
2020-10-06rustc_parse: Make `Parser::unexpected` public and use it in built-in macrosVadim Petrochenkov-4/+3
2020-10-06builtin_macros: Fix use of interpolated identifiers in `asm!`Vadim Petrochenkov-16/+17
2020-10-04Remove extra indirection in LitKind::ByteStrRobin Schoonover-3/+1
2020-09-28expand: Stop un-interpolating `NtIdent`s before passing them to built-in macrosVadim Petrochenkov-8/+8
2020-09-26Auto merge of #76485 - estebank:format_arg_capture_spans, r=davidtwcobors-3/+6
2020-09-25Rollup merge of #77121 - duckymirror:html-root-url, r=jyn514Jonas Schievink-1/+1
2020-09-23/nightly/nightly-rustcErik Hofmayer-1/+1
2020-09-23Updated html_root_url for compiler cratesErik Hofmayer-1/+1
2020-09-23Merge two almost identical match armsLingMan-2/+1
2020-09-18use matches!() macro for simple if let conditionsMatthias Krüger-1/+1
2020-09-10Attach tokens to `ast::Stmt`Aaron Hill-1/+1
2020-09-10Attach `TokenStream` to `ast::Visibility`Aaron Hill-14/+26
2020-09-10Attach tokens to `NtMeta` (`ast::AttrItem`)Aaron Hill-1/+1
2020-09-10Attach `TokenStream` to `ast::Ty`Aaron Hill-0/+1
2020-09-10Attach `TokenStream` to `ast::Block`Aaron Hill-0/+1
2020-09-10use push(char) instead of push_str(&str) to add single chars to stringsMatthias Krüger-6/+6