about summary refs log tree commit diff
path: root/src/libstd/macros.rs
AgeCommit message (Collapse)AuthorLines
2020-07-27mv std libs to library/mark-313/+0
2020-03-04Update macros.rs: fix documentation typo.Penelope Phippen-1/+1
2020-01-31Drop cfg(bootstrap) codeMark Rousskov-21/+0
2020-01-04core and std macros and panic internals use panic::Location::caller.Adam Perry-2/+16
2019-11-29Format libstd with rustfmtDavid Tolnay-4/+3
This commit applies rustfmt with rust-lang/rust's default settings to files in src/libstd *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/libstd -name '*.rs' \ | xargs rustfmt --edition=2018 --unstable-features --skip-children $ rg libstd outstanding_files | xargs git checkout -- Repeating this process several months apart should get us coverage of most of the rest of libstd. To confirm no funny business: $ git checkout $THIS_COMMIT^ $ git show --pretty= --name-only $THIS_COMMIT \ | xargs rustfmt --edition=2018 --unstable-features --skip-children $ git diff $THIS_COMMIT # there should be no difference
2019-11-14Centralize panic macro documentationChris Gregory-47/+1
2019-08-15Remove `__rust_unstable_column`Vadim Petrochenkov-1/+1
2019-08-15Hygienize use of built-in macros in the standard libraryVadim Petrochenkov-9/+9
2019-08-12Fixes #63477OptimisticPeach-1/+1
Adds a closing parenthesis.
2019-07-26Introduce built-in macros through libcoreVadim Petrochenkov-531/+0
2019-07-06`#[rustc_doc_only_macro]` -> `#[rustc_builtin_macro]`Vadim Petrochenkov-16/+16
2019-06-13Rollup merge of #61720 - alexcrichton:libstd-cfg-if-dep, r=sfacklerMazdak Farrokhzad-36/+0
std: Remove internal definitions of `cfg_if!` macro This is duplicated in a few locations throughout the sysroot to work around issues with not exporting a macro in libstd but still wanting it available to sysroot crates to define blocks. Nowadays though we can simply depend on the `cfg-if` crate on crates.io, allowing us to use it from there!
2019-06-12Hygienize macros in the standard libraryVadim Petrochenkov-8/+8
2019-06-10std: Remove internal definitions of `cfg_if!` macroAlex Crichton-36/+0
This is duplicated in a few locations throughout the sysroot to work around issues with not exporting a macro in libstd but still wanting it available to sysroot crates to define blocks. Nowadays though we can simply depend on the `cfg-if` crate on crates.io, allowing us to use it from there!
2019-06-02Fix missing semicolon in doc0x1793d1-1/+1
A semicolon is missing in the examples of compile_error. Macros that expand to items must be delimited with braces or followed by a semicolon.
2019-05-17Remove the unstable and deprecated mpsc_selectJosh Stone-55/+0
This removes macro `select!` and `std::sync::mpsc::{Handle, Select}`, which were all unstable and have been deprecated since 1.32.
2019-05-09Remove the old await! macroTaylor Cramer-23/+0
This doesn't work anymore, and its continued presence is cause for confusion.
2019-04-19extend ui testAndre Bogus-1/+12
2019-04-10Apply suggestions from code review Mazdak Farrokhzad-2/+2
Use dbg! recursively on each item Co-Authored-By: llogiq <bogusandre@gmail.com>
2019-04-10allow multiple args to `dbg!(..)`Andre Bogus-0/+10
2019-04-07Auto merge of #59765 - lzutao:patch-1, r=Centrilbors-1/+3
Add reference to cfg attr r? @QuietMisdreavus
2019-04-07Add reference to cfg attrlzutao-1/+3
2019-04-05Future-proof the Futures APITaylor Cramer-1/+1
2019-03-30Added a missing !.Christian-1/+1
2019-03-30Added an example that shows how the remainder function on floating point ↵Christian-3/+3
values is computed internally.
2019-03-30Rollup merge of #59528 - DevQps:improve-dbg-macro-docs, r=CentrilMazdak Farrokhzad-1/+7
Improve the dbg! macro docs # Description As stated has been discussed in #58383 the docs do not clearly state why it is useful to have the option to use `dbg!` in release builds as well. This PR should change that. closes #58383
2019-03-29Update src/libstd/macros.rs Mazdak Farrokhzad-1/+0
Removed duplicate line. Co-Authored-By: DevQps <46896178+DevQps@users.noreply.github.com>
2019-03-29Update src/libstd/macros.rs Mazdak Farrokhzad-1/+2
Wrapped lines earlier such that it is more coherent with the rest of the text. Co-Authored-By: DevQps <46896178+DevQps@users.noreply.github.com>
2019-03-29Adjusted the indentation.Christian-2/+3
2019-03-29Edited the dbg! docs stating that dbg! works the same way in release builds.Christian-1/+6
2019-03-27Clarify behavior of dbg macroNikhil Benesch-1/+2
2019-03-26Use consistent phrasing for all macro summariesNikhil Benesch-22/+23
2019-03-19Rollup merge of #57847 - clarcharr:dbg_no_params, r=CentrilMazdak Farrokhzad-0/+6
dbg!() without parameters Fixes #57845.
2019-03-02Bootstrap compiler update for 1.35 releaseMark Rousskov-12/+6
2019-02-28libstd => 2018Taiki Endo-1/+1
2019-02-13Rollup merge of #57693 - king6cong:word, r=CentrilMazdak Farrokhzad-1/+1
Doc rewording None
2019-02-12Auto merge of #58341 - alexreg:cosmetic-2-doc-comments, r=steveklabnikbors-14/+14
Cosmetic improvements to doc comments This has been factored out from https://github.com/rust-lang/rust/pull/58036 to only include changes to documentation comments (throughout the rustc codebase). r? @steveklabnik Once you're happy with this, maybe we could get it through with r=1, so it doesn't constantly get invalidated? (I'm not sure this will be an issue, but just in case...) Anyway, thanks for your advice so far!
2019-02-12Doc rewordingking6cong-1/+1
2019-02-11Require a list of features to allow in `allow_internal_unstable`Oliver Scherer-6/+12
2019-02-10tests: doc commentsAlexander Regueiro-14/+14
2019-01-22dbg!() without parameters.Clar Fon-0/+6
2019-01-06check missing docs for reexported macros as wellGuillaume Gomez-0/+1
2018-12-25Remove licensesMark Rousskov-10/+0
2018-12-01stabilize std::dbg!(...)Mazdak Farrokhzad-10/+2
2018-11-21update various stdlib docsSteve Klabnik-6/+5
2018-11-11Fix a typo in std::panicDale Wijnand-1/+1
2018-11-08Deprecate channel selectionStjepan Glavina-0/+2
2018-10-14Fix incorrect link in println! documentationDiana-1/+1
The eprintln! link was incorrectly linking to eprint! instead
2018-09-25Auto merge of #54317 - Centril:feature/dbg_macro, r=SimonSapinbors-0/+120
Implement the dbg!(..) macro Implements the `dbg!(..)` macro due to #54306. cc https://github.com/rust-lang/rfcs/pull/2361 r? @alexcrichton
2018-09-20dbg_macro: notes about VCS and log::debug!(..)Mazdak Farrokhzad-3/+5