Chris Gregory
6fc18a9964
Centralize panic macro documentation
2019-11-14 01:33:45 +01:00
Vadim Petrochenkov
263e3c5950
Remove __rust_unstable_column
2019-08-15 22:58:57 +03:00
Vadim Petrochenkov
a9ecfd7295
Hygienize use of built-in macros in the standard library
2019-08-15 22:58:50 +03:00
OptimisticPeach
3d38187afd
Fixes #63477
...
Adds a closing parenthesis.
2019-08-12 00:15:14 -04:00
Vadim Petrochenkov
8eaf17bca2
Introduce built-in macros through libcore
2019-07-26 13:09:54 +03:00
Vadim Petrochenkov
15042a3c1c
#[rustc_doc_only_macro]
-> #[rustc_builtin_macro]
2019-07-06 16:59:08 +03:00
Mazdak Farrokhzad
ca06f8896b
Rollup merge of #61720 - alexcrichton:libstd-cfg-if-dep, r=sfackler
...
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-13 14:51:56 +02:00
Vadim Petrochenkov
eb09daa762
Hygienize macros in the standard library
2019-06-12 20:27:29 +03:00
Alex Crichton
8eb7f36a3b
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-10 10:58:44 -07:00
0x1793d1
b3fdde431b
Fix missing semicolon in doc
...
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-06-02 10:23:33 +02:00
Josh Stone
f950193d74
Remove the unstable and deprecated mpsc_select
...
This removes macro `select!` and `std::sync::mpsc::{Handle, Select}`,
which were all unstable and have been deprecated since 1.32.
2019-05-17 12:16:52 -07:00
Taylor Cramer
df41e4f695
Remove the old await! macro
...
This doesn't work anymore, and its continued
presence is cause for confusion.
2019-05-09 10:49:39 -07:00
Andre Bogus
b641fd374e
extend ui test
2019-04-19 21:12:50 +02:00
Mazdak Farrokhzad
08a4628bf6
Apply suggestions from code review
...
Use dbg! recursively on each item
Co-Authored-By: llogiq <bogusandre@gmail.com>
2019-04-10 05:47:44 +02:00
Andre Bogus
8816a9ac1f
allow multiple args to dbg!(..)
2019-04-10 05:43:31 +02:00
bors
474e7a6486
Auto merge of #59765 - lzutao:patch-1, r=Centril
...
Add reference to cfg attr
r? @QuietMisdreavus
2019-04-07 18:06:01 +00:00
lzutao
cd9bea3317
Add reference to cfg attr
2019-04-07 11:48:14 +07:00
Taylor Cramer
1691e06db6
Future-proof the Futures API
2019-04-05 15:03:33 -07:00
Christian
66e920ea5c
Added a missing !.
2019-03-30 14:35:51 +01:00
Christian
33bc6ad8c0
Added an example that shows how the remainder function on floating point values is computed internally.
2019-03-30 14:26:54 +01:00
Mazdak Farrokhzad
183afcd8c8
Rollup merge of #59528 - DevQps:improve-dbg-macro-docs, r=Centril
...
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-30 07:51:43 +01:00
Mazdak Farrokhzad
8705de49e1
Update src/libstd/macros.rs
...
Removed duplicate line.
Co-Authored-By: DevQps <46896178+DevQps@users.noreply.github.com>
2019-03-29 16:25:38 +01:00
Mazdak Farrokhzad
fe210d0df1
Update src/libstd/macros.rs
...
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-29 16:24:13 +01:00
Christian
9240092fe3
Adjusted the indentation.
2019-03-29 16:18:24 +01:00
Christian
f10e44420a
Edited the dbg! docs stating that dbg! works the same way in release builds.
2019-03-29 15:56:22 +01:00
Nikhil Benesch
3e0db7cecd
Clarify behavior of dbg macro
2019-03-27 11:22:55 -04:00
Nikhil Benesch
d339b89644
Use consistent phrasing for all macro summaries
2019-03-26 18:22:25 -04:00
Mazdak Farrokhzad
d4ef74b2da
Rollup merge of #57847 - clarcharr:dbg_no_params, r=Centril
...
dbg!() without parameters
Fixes #57845 .
2019-03-19 15:16:46 +01:00
Mark Rousskov
2870015b7b
Bootstrap compiler update for 1.35 release
2019-03-02 09:05:34 -07:00
Taiki Endo
93b6d9e086
libstd => 2018
2019-02-28 04:06:15 +09:00
Mazdak Farrokhzad
734cc3e79e
Rollup merge of #57693 - king6cong:word, r=Centril
...
Doc rewording
None
2019-02-13 04:36:55 +01:00
bors
b244f61b77
Auto merge of #58341 - alexreg:cosmetic-2-doc-comments, r=steveklabnik
...
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-12 19:09:24 +00:00
king6cong
b284c8d608
Doc rewording
2019-02-12 16:45:19 +08:00
Oliver Scherer
d3c212c552
Require a list of features to allow in allow_internal_unstable
2019-02-11 15:08:16 +01:00
Alexander Regueiro
b87363e763
tests: doc comments
2019-02-10 23:42:32 +00:00
Clar Fon
6fb5b73cf4
dbg!() without parameters.
2019-01-22 17:52:03 -05:00
Guillaume Gomez
47e294e758
check missing docs for reexported macros as well
2019-01-06 18:55:55 +01:00
Mark Rousskov
2a663555dd
Remove licenses
2018-12-25 21:08:33 -07:00
Mazdak Farrokhzad
f4cde5bc4e
stabilize std::dbg!(...)
2018-12-01 02:54:09 +01:00
Steve Klabnik
d7b3f5c6ae
update various stdlib docs
2018-11-21 06:50:17 -05:00
Dale Wijnand
20ef40ae50
Fix a typo in std::panic
2018-11-11 07:36:10 +00:00
Stjepan Glavina
d75dae3069
Deprecate channel selection
2018-11-08 22:51:46 +01:00
Diana
1b355a8976
Fix incorrect link in println! documentation
...
The eprintln! link was incorrectly linking to eprint! instead
2018-10-14 08:14:21 -04:00
bors
e7416d5650
Auto merge of #54317 - Centril:feature/dbg_macro, r=SimonSapin
...
Implement the dbg!(..) macro
Implements the `dbg!(..)` macro due to #54306 .
cc https://github.com/rust-lang/rfcs/pull/2361
r? @alexcrichton
2018-09-25 07:06:15 +00:00
Mazdak Farrokhzad
1d2a1bfa7d
dbg_macro: notes about VCS and log::debug!(..)
2018-09-20 17:39:09 +02:00
Mazdak Farrokhzad
000be8fe83
dbg!(expr) implementation.
2018-09-20 17:39:09 +02:00
Taylor Cramer
1b00f0b9fa
Remove spawning from task::Context
2018-09-19 15:01:19 -07:00
bors
1e21c9a297
Auto merge of #53877 - withoutboats:compositional-pin, r=aturon
...
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-19 06:56:19 +00:00
Without Boats
974bdc80fe
Update to a new pinning API.
2018-09-01 06:57:58 +02:00
QuietMisdreavus
ad2169c095
use cfg(rustdoc) instead of cfg(dox) in std and friends
2018-08-31 13:29:10 -05:00