Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 13 pull requests #104428

Merged
merged 33 commits into from
Nov 15, 2022
Merged
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
e1636b8
Adding Fuchsia compiler testing script, docs
andrewpollack Nov 1, 2022
ce10ac0
remove leading newlines from `NonZero*` doc examples
Nov 13, 2022
cd2fb43
Update compiler-builtins
Ayush1325 Nov 13, 2022
409c3ce
Remove unused diagnostic items
WaffleLapkin Nov 13, 2022
4ed2bf6
Remove unused symbols
WaffleLapkin Nov 13, 2022
25acee5
Remove dead NoneError error handling
Nov 13, 2022
2575e4d
rustdoc: remove unused CSS `code { opacity: 1 }`
notriddle Nov 13, 2022
29fe28f
Fix clippy and rustdoc
WaffleLapkin Nov 13, 2022
9985f46
Clarify `expand_struct_method_body`.
nnethercote Nov 14, 2022
96280b6
Remove `addr_of` argument from `create_struct_pattern_fields`.
nnethercote Nov 14, 2022
111db7d
Remove TraitDef::generics.
nnethercote Nov 14, 2022
a9e4176
Specify language of code comment to generate document
koka831 Nov 14, 2022
e6baae5
Fix missing minification for static files
GuillaumeGomez Nov 14, 2022
212ce1f
[llvm-wrapper] adapt for LLVM API change
krasimirgg Nov 14, 2022
3f697b8
Drive-by: actual -> rcvr_ty
compiler-errors Nov 14, 2022
bf607da
Move logic into method
compiler-errors Nov 14, 2022
5497317
Do autoderef to match impl against rcvr
compiler-errors Nov 14, 2022
540e12f
Add regression test
compiler-errors Nov 14, 2022
7b00534
rustdoc: fix corner case in search keyboard commands
notriddle Nov 14, 2022
9214673
Add test for #102154
aDotInTheVoid Nov 14, 2022
98be657
Rollup merge of #103842 - andrewpollack:add-fuchsia-test-script, r=tm…
matthiaskrgr Nov 15, 2022
1b41a38
Rollup merge of #104354 - lukas-code:blank-lines-2, r=JohnTitor
matthiaskrgr Nov 15, 2022
83b6e85
Rollup merge of #104372 - Ayush1325:compiler-builtins, r=JohnTitor
matthiaskrgr Nov 15, 2022
2eee3a6
Rollup merge of #104380 - rust-lang:notriddle/code-opacity, r=Guillau…
matthiaskrgr Nov 15, 2022
0a3cb1e
Rollup merge of #104381 - mejrs:none_error, r=compiler-errors
matthiaskrgr Nov 15, 2022
2c29b05
Rollup merge of #104383 - WaffleLapkin:rustc_undiagnostic_item, r=com…
matthiaskrgr Nov 15, 2022
aea4c0c
Rollup merge of #104391 - nnethercote:deriving-cleanups, r=jackh726
matthiaskrgr Nov 15, 2022
da2beab
Rollup merge of #104403 - koka831:lint-doc, r=Dylan-DPC
matthiaskrgr Nov 15, 2022
f0978ee
Rollup merge of #104404 - GuillaumeGomez:fix-missing-minification, r=…
matthiaskrgr Nov 15, 2022
f17828d
Rollup merge of #104413 - krasimirgg:llvm-16-mref, r=nikic
matthiaskrgr Nov 15, 2022
5e753ca
Rollup merge of #104415 - notriddle:notriddle/search-keyboard-command…
matthiaskrgr Nov 15, 2022
ce263b7
Rollup merge of #104422 - compiler-errors:fix-suggest_associated_call…
matthiaskrgr Nov 15, 2022
7c7cb71
Rollup merge of #104426 - aDotInTheVoid:test-102154, r=compiler-errors
matthiaskrgr Nov 15, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove leading newlines from NonZero* doc examples
Lukas Markeffsky committed Nov 13, 2022
commit ce10ac0d6a047d9a537b68b75c89ddc6859c7d4d
26 changes: 6 additions & 20 deletions library/core/src/num/nonzero.rs
Original file line number Diff line number Diff line change
@@ -321,7 +321,6 @@ macro_rules! nonzero_unsigned_operations {
///
/// ```
#[doc = concat!("# use std::num::", stringify!($Ty), ";")]
///
/// # fn main() { test().unwrap(); }
/// # fn test() -> Option<()> {
#[doc = concat!("let one = ", stringify!($Ty), "::new(1)?;")]
@@ -356,7 +355,6 @@ macro_rules! nonzero_unsigned_operations {
///
/// ```
#[doc = concat!("# use std::num::", stringify!($Ty), ";")]
///
/// # fn main() { test().unwrap(); }
/// # fn test() -> Option<()> {
#[doc = concat!("let one = ", stringify!($Ty), "::new(1)?;")]
@@ -391,8 +389,8 @@ macro_rules! nonzero_unsigned_operations {
///
/// ```
/// #![feature(nonzero_ops)]
#[doc = concat!("# use std::num::", stringify!($Ty), ";")]
///
#[doc = concat!("# use std::num::", stringify!($Ty), ";")]
/// # fn main() { test().unwrap(); }
/// # fn test() -> Option<()> {
#[doc = concat!("let one = ", stringify!($Ty), "::new(1)?;")]
@@ -420,7 +418,6 @@ macro_rules! nonzero_unsigned_operations {
///
/// ```
#[doc = concat!("# use std::num::", stringify!($Ty), ";")]
///
/// # fn main() { test().unwrap(); }
/// # fn test() -> Option<()> {
#[doc = concat!("let two = ", stringify!($Ty), "::new(2)?;")]
@@ -461,7 +458,6 @@ macro_rules! nonzero_unsigned_operations {
///
/// ```
#[doc = concat!("# use std::num::", stringify!($Ty), ";")]
///
#[doc = concat!("assert_eq!(", stringify!($Ty), "::new(7).unwrap().ilog2(), 2);")]
#[doc = concat!("assert_eq!(", stringify!($Ty), "::new(8).unwrap().ilog2(), 3);")]
#[doc = concat!("assert_eq!(", stringify!($Ty), "::new(9).unwrap().ilog2(), 3);")]
@@ -486,7 +482,6 @@ macro_rules! nonzero_unsigned_operations {
///
/// ```
#[doc = concat!("# use std::num::", stringify!($Ty), ";")]
///
#[doc = concat!("assert_eq!(", stringify!($Ty), "::new(99).unwrap().ilog10(), 1);")]
#[doc = concat!("assert_eq!(", stringify!($Ty), "::new(100).unwrap().ilog10(), 2);")]
#[doc = concat!("assert_eq!(", stringify!($Ty), "::new(101).unwrap().ilog10(), 2);")]
@@ -526,7 +521,6 @@ macro_rules! nonzero_signed_operations {
///
/// ```
#[doc = concat!("# use std::num::", stringify!($Ty), ";")]
///
/// # fn main() { test().unwrap(); }
/// # fn test() -> Option<()> {
#[doc = concat!("let pos = ", stringify!($Ty), "::new(1)?;")]
@@ -556,7 +550,6 @@ macro_rules! nonzero_signed_operations {
///
/// ```
#[doc = concat!("# use std::num::", stringify!($Ty), ";")]
///
/// # fn main() { test().unwrap(); }
/// # fn test() -> Option<()> {
#[doc = concat!("let pos = ", stringify!($Ty), "::new(1)?;")]
@@ -591,7 +584,6 @@ macro_rules! nonzero_signed_operations {
///
/// ```
#[doc = concat!("# use std::num::", stringify!($Ty), ";")]
///
/// # fn main() { test().unwrap(); }
/// # fn test() -> Option<()> {
#[doc = concat!("let pos = ", stringify!($Ty), "::new(1)?;")]
@@ -626,7 +618,6 @@ macro_rules! nonzero_signed_operations {
///
/// ```
#[doc = concat!("# use std::num::", stringify!($Ty), ";")]
///
/// # fn main() { test().unwrap(); }
/// # fn test() -> Option<()> {
#[doc = concat!("let pos = ", stringify!($Ty), "::new(1)?;")]
@@ -662,7 +653,6 @@ macro_rules! nonzero_signed_operations {
///
/// ```
#[doc = concat!("# use std::num::", stringify!($Ty), ";")]
///
/// # fn main() { test().unwrap(); }
/// # fn test() -> Option<()> {
#[doc = concat!("let pos = ", stringify!($Ty), "::new(1)?;")]
@@ -905,7 +895,6 @@ macro_rules! nonzero_unsigned_signed_operations {
///
/// ```
#[doc = concat!("# use std::num::", stringify!($Ty), ";")]
///
/// # fn main() { test().unwrap(); }
/// # fn test() -> Option<()> {
#[doc = concat!("let two = ", stringify!($Ty), "::new(2)?;")]
@@ -941,7 +930,6 @@ macro_rules! nonzero_unsigned_signed_operations {
///
/// ```
#[doc = concat!("# use std::num::", stringify!($Ty), ";")]
///
/// # fn main() { test().unwrap(); }
/// # fn test() -> Option<()> {
#[doc = concat!("let two = ", stringify!($Ty), "::new(2)?;")]
@@ -986,8 +974,8 @@ macro_rules! nonzero_unsigned_signed_operations {
///
/// ```
/// #![feature(nonzero_ops)]
#[doc = concat!("# use std::num::", stringify!($Ty), ";")]
///
#[doc = concat!("# use std::num::", stringify!($Ty), ";")]
/// # fn main() { test().unwrap(); }
/// # fn test() -> Option<()> {
#[doc = concat!("let two = ", stringify!($Ty), "::new(2)?;")]
@@ -1014,7 +1002,6 @@ macro_rules! nonzero_unsigned_signed_operations {
///
/// ```
#[doc = concat!("# use std::num::", stringify!($Ty), ";")]
///
/// # fn main() { test().unwrap(); }
/// # fn test() -> Option<()> {
#[doc = concat!("let three = ", stringify!($Ty), "::new(3)?;")]
@@ -1058,7 +1045,6 @@ macro_rules! nonzero_unsigned_signed_operations {
///
/// ```
#[doc = concat!("# use std::num::", stringify!($Ty), ";")]
///
/// # fn main() { test().unwrap(); }
/// # fn test() -> Option<()> {
#[doc = concat!("let three = ", stringify!($Ty), "::new(3)?;")]
@@ -1162,8 +1148,8 @@ macro_rules! nonzero_min_max_unsigned {
///
/// ```
/// #![feature(nonzero_min_max)]
#[doc = concat!("# use std::num::", stringify!($Ty), ";")]
///
#[doc = concat!("# use std::num::", stringify!($Ty), ";")]
#[doc = concat!("assert_eq!(", stringify!($Ty), "::MIN.get(), 1", stringify!($Int), ");")]
/// ```
#[unstable(feature = "nonzero_min_max", issue = "89065")]
@@ -1177,8 +1163,8 @@ macro_rules! nonzero_min_max_unsigned {
///
/// ```
/// #![feature(nonzero_min_max)]
#[doc = concat!("# use std::num::", stringify!($Ty), ";")]
///
#[doc = concat!("# use std::num::", stringify!($Ty), ";")]
#[doc = concat!("assert_eq!(", stringify!($Ty), "::MAX.get(), ", stringify!($Int), "::MAX);")]
/// ```
#[unstable(feature = "nonzero_min_max", issue = "89065")]
@@ -1204,8 +1190,8 @@ macro_rules! nonzero_min_max_signed {
///
/// ```
/// #![feature(nonzero_min_max)]
#[doc = concat!("# use std::num::", stringify!($Ty), ";")]
///
#[doc = concat!("# use std::num::", stringify!($Ty), ";")]
#[doc = concat!("assert_eq!(", stringify!($Ty), "::MIN.get(), ", stringify!($Int), "::MIN);")]
/// ```
#[unstable(feature = "nonzero_min_max", issue = "89065")]
@@ -1223,8 +1209,8 @@ macro_rules! nonzero_min_max_signed {
///
/// ```
/// #![feature(nonzero_min_max)]
#[doc = concat!("# use std::num::", stringify!($Ty), ";")]
///
#[doc = concat!("# use std::num::", stringify!($Ty), ";")]
#[doc = concat!("assert_eq!(", stringify!($Ty), "::MAX.get(), ", stringify!($Int), "::MAX);")]
/// ```
#[unstable(feature = "nonzero_min_max", issue = "89065")]