about summary refs log tree commit diff
path: root/src/libstd/macros.rs
AgeCommit message (Collapse)AuthorLines
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-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
2018-09-20dbg!(expr) implementation.Mazdak Farrokhzad-0/+118
2018-09-19Remove spawning from task::ContextTaylor Cramer-1/+1
2018-09-19Auto merge of #53877 - withoutboats:compositional-pin, r=aturonbors-1/+1
Update to a new pinning API. ~~Blocked on #53843 because of method resolution problems with new pin type.~~ @r? @cramertj cc @RalfJung @pythonesque anyone interested in #49150
2018-09-01Update to a new pinning API.Without Boats-1/+1
2018-08-31use cfg(rustdoc) instead of cfg(dox) in std and friendsQuietMisdreavus-1/+1
2018-08-23move PinMut into pin module and export through stdNiv Kaminer-1/+1
2018-08-02Remove unnecessary local in await! macroTaylor Cramer-6/+9
2018-08-01Switch to bootstrapping from 1.29 betaMark Rousskov-12/+2
2018-07-23Rollup merge of #52581 - petrochenkov:bmacrodoc, r=alexcrichtonkennytm-17/+17
Avoid using `#[macro_export]` for documenting builtin macros Use a special `rustc_*` attribute instead. cc https://github.com/rust-lang/rust/pull/52234
2018-07-21fix tidy ~ againEsteban Küber-13/+0
2018-07-21Don't use the new `eprintln` for stage0 and stage1Esteban Küber-2/+2
I'm not entirely sure why (or if) this is needed.
2018-07-21Change `eprintln!()`Esteban Küber-2/+9
Address #30143 as well. `writeln!()` hasn't been changed.
2018-07-21Gate `format_args_nll` behind feature flagEsteban Küber-1/+1
2018-07-21Avoid using `#[macro_export]` for documenting builtin macrosVadim Petrochenkov-17/+17
2018-07-19rework printlnEsteban Küber-2/+24
2018-07-19Same change as `println` for `eprintln`Esteban Küber-2/+1
2018-07-19review comments: modify note wording and change `println`Esteban Küber-8/+1
- Don't print the newline on its own to avoid the possibility of printing it out of order due to `stdout` locking. - Modify wording of `concat!()` with non-literals to not mislead into believing that only `&str` literals are accepted. - Add test for `concat!()` with non-literals.
2018-07-19Improve suggestion for missing fmt str in printlnEsteban Küber-2/+8
Avoid using `concat!(fmt, "\n")` to improve the diagnostics being emitted when the first `println!()` argument isn't a formatting string literal.
2018-06-25Add sentence to compile_error!() docsBenjamin Sago-1/+3
It now details why using compile_error!() is different from just not having the final macro_rules!() branch.
2018-06-25Link the docs of panic!() and compile_error!()Benjamin Sago-1/+7
Fixes #47275. These two macros are similar, but different, and could do with documentation links to each other.
2018-06-22Remove impl trait names and move bits of await into a functionTaylor Cramer-3/+1
2018-06-22Review nits and updatesTaylor Cramer-5/+5
Move future_from_generator out of raw Update await to use $crate Renumber errors
2018-06-21Allow unsafe code inside of await macroTaylor Cramer-0/+1
2018-06-21async await desugaring and testsTaylor Cramer-0/+20
2018-05-24Add documentation about env! second argumentGuillaume Gomez-2/+15
2018-05-03update concat_idents doc stubsMichael Lamparski-2/+2
2018-04-16Remove unwanted auto-linking and updateGuillaume Gomez-2/+2
2018-04-03tweak format_args! docsAlex Burka-2/+2
Swap the variable names in the example.
2018-03-21document format_args! further wrt. Debug & Display"Mazdak Farrokhzad-0/+12
2018-03-16Auto merge of #48813 - sinkuu:build_in_assert_macro, r=alexcrichtonbors-0/+54
Make `assert` a built-in procedural macro Makes `assert` macro a built-in one without touching its functionality. This is a prerequisite for RFC 2011 (#44838).
2018-03-08Rollup merge of #48857 - Songbird0:improve_column_macro_documentation, ↵Manish Goregaokar-1/+1
r=joshtriplett Modify part of `column!` documentation. Just like `line!` documentation, I've replaced: > The returned column is not the invocation of the `column!` macro itself By > The returned column is *not necessarily* the line of the `column!` invocation itself See #46997.
2018-03-09Modify part of `column!` documentation.Anthony Defranceschi-1/+1
Just like `line!` documentation, I've replaced: > The returned column is not the invocation of the `column!` macro itself By > The returned column is *not necessarily* the line of the `column!` invocation itself See #46997.
2018-03-09Modify part of `line!` documentation.Anthony Defranceschi-1/+1
In accordance with #46997, I've replaced: > The returned line is not the invocation of the line! macro itself [...] By > The returned line is *not necessarily* the line of the `line!` invocation itself [...]
2018-03-07Make `assert` macro a built-in procedural macroShotaro Yamada-0/+54
2018-02-07update the builtin macro doc stubsMichael Lamparski-5/+20
2018-02-07libcore/libstd: fix commas in macro_rules! macrosMichael Lamparski-0/+3
BREAKING CHANGE: (or perhaps, *bugfix*) In #![no_std] applications, the following calls to `panic!` used to behave differently; they now behave the same. Old behavior: panic!("{{"); // panics with "{{" panic!("{{",); // panics with "{" New behavior: panic!("{{"); // panics with "{{" panic!("{{",); // panics with "{{" This only affects calls to `panic!` (and by proxy `assert` and `debug_assert`) with a single string literal followed by a trailing comma, and only in `#![no_std]` applications.