summary refs log tree commit diff
path: root/src/libcore/macros
AgeCommit message (Collapse)AuthorLines
2020-01-06macros: typo fixLucas Pardue-1/+1
spotted while reviewing the todo!macro docs
2020-01-04core and std macros and panic internals use panic::Location::caller.Adam Perry-9/+3
2019-12-27Stabilize the `matches!` macroSimon Sapin-3/+1
Fixes https://github.com/rust-lang/rust/issues/65721 FCP: https://github.com/rust-lang/rust/issues/65721#issuecomment-569118119
2019-12-24Auto merge of #67445 - llogiq:todo, r=dtolnaybors-20/+25
Differentiate todo! and unimplemented! This updates the panic message and docs to make it clear that `todo!` is for unfinished code and `unimplemented!` is for partial trait or enum impls. r? @Centril
2019-12-24Differentiate todo! and unimplemented!Andre Bogus-20/+25
2019-12-23Rollup merge of #67466 - oli-obk:const_intrinsic, r=CentrilMazdak Farrokhzad-0/+1
Require const stability attributes on intrinsics to be able to use them in constant contexts r? @Centril finally fixes #61495 cc @RalfJung
2019-12-21Require issue = "none" over issue = "0" in unstable attributesRoss MacArthur-1/+1
2019-12-20Require const stability attributes on intrinsics to be able to use them in ↵Oliver Scherer-0/+1
constant contexts
2019-12-19Correct the todo! stabilization versionJakub Kądziołka-1/+1
2019-11-26Format libcore with rustfmtDavid Tolnay-64/+141
This commit applies rustfmt with default settings to files in src/libcore *that are not involved in any currently open PR* to minimize merge conflicts. The list of files involved in open PRs was determined by querying GitHub's GraphQL API with this script: https://gist.github.com/dtolnay/aa9c34993dc051a4f344d1b10e4487e8 With the list of files from the script in `outstanding_files`, the relevant commands were: $ find src/libcore -name '*.rs' | xargs rustfmt --edition=2018 $ rg libcore outstanding_files | xargs git checkout -- Repeating this process several months apart should get us coverage of most of the rest of libcore.
2019-11-14Centralize panic macro documentationChris Gregory-0/+1373