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 12 pull requests #75797

Merged
merged 56 commits into from
Aug 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
c159e17
Use intra-doc links for Ordering::*
denisvasilik Aug 18, 2020
69e5a4c
Use intra-doc links for AtomicBool::*
denisvasilik Aug 18, 2020
076ae25
Use intra-doc links for AtomicIsize::*
denisvasilik Aug 18, 2020
2373dbc
Use intra-doc links for AtomicI32::*
denisvasilik Aug 19, 2020
7b5ec9e
Use intra-doc links for AtomicU32::*
denisvasilik Aug 19, 2020
a929738
Use intra-doc links for u32::*
denisvasilik Aug 19, 2020
fb7d917
Use intra-doc links for f32::* and f64::*
denisvasilik Aug 19, 2020
45b4e14
Use intra-doc links for sync::*
denisvasilik Aug 19, 2020
2c79987
Use intra-doc links for mem::*
denisvasilik Aug 19, 2020
d339cfe
Use intra-doc links for ptr::*
denisvasilik Aug 19, 2020
751e343
Use intra-doc linkks
denisvasilik Aug 19, 2020
d1838f6
Use intra-doc links for compare_exchange and compare_exchange_weak
denisvasilik Aug 19, 2020
6e2f076
Use intra-doc links for links with anchors
denisvasilik Aug 19, 2020
f71919c
Fix anchor links
denisvasilik Aug 19, 2020
d468a81
Remove duplication in `fold_item`
jyn514 Aug 20, 2020
3307ba8
Ignore code examples on given items where it doesn't make sense
GuillaumeGomez Aug 19, 2020
6fb7e02
Update rustdoc coverage UI test
GuillaumeGomez Aug 19, 2020
f5d7848
Remove duplicate binding in match
jyn514 Aug 20, 2020
631c806
Remove "total" columns in --show-coverage output
GuillaumeGomez Aug 20, 2020
9c254c1
Update how doc examples are counted
GuillaumeGomez Aug 20, 2020
d108bd5
Add documentation for --show-coverage option
GuillaumeGomez Aug 20, 2020
5e9cc4e
fmt
GuillaumeGomez Aug 20, 2020
1ababd8
Use intra-doc-links in `alloc`
LeSeulArtichaut Aug 20, 2020
6fca004
Another motivation for CFG: return-oriented programming
koutheir Aug 20, 2020
3b995cc
Extend normalization in const-eval-query-stack test
tmiasko Aug 21, 2020
5673b0e
Switched ROP link to Desktop layout instead of mobile layout
koutheir Aug 21, 2020
10a880d
Improve wording
GuillaumeGomez Aug 21, 2020
e6642e4
astconv: Split astconv.rs into its own module with submodules
CohenArthur Aug 19, 2020
35994db
Minor, remove double nesting of a test module
matklad Aug 21, 2020
b20b6f8
Ignore more kind of items for doc examples
GuillaumeGomez Aug 21, 2020
adeedf5
Show line even if there is no code examples
GuillaumeGomez Aug 21, 2020
0bccd98
Incorporate suggestions from review
denisvasilik Aug 21, 2020
0f6d95d
Apply auto-formatter
denisvasilik Aug 21, 2020
37b6c24
Rework imports used solely for docs
denisvasilik Aug 21, 2020
97072c6
Apply suggestions from code review
LeSeulArtichaut Aug 21, 2020
60b7c2a
More inline asm register name fixups for LLVM
Amanieu Aug 21, 2020
a3b45f3
Convert links to intra-doc links format
GuillaumeGomez Aug 21, 2020
ec9657a
Fixed a typo
koutheir Aug 21, 2020
8ae3384
Added link to Microsoft's documentation of CFG
koutheir Aug 21, 2020
4fe4c3b
Add regression test
Amanieu Aug 21, 2020
215822a
MIR call terminator represents diverging calls too
nagisa Aug 21, 2020
8e009bc
Use intra-doc-links in `core::ops::*`
LeSeulArtichaut Aug 21, 2020
9424ac7
Remove links that get imported from the prelude
LeSeulArtichaut Aug 21, 2020
385a1b2
Add more links
GuillaumeGomez Aug 21, 2020
8af33ad
Rollup merge of #75705 - denisvasilik:intra-doc-links-intrinsics, r=j…
Dylan-DPC Aug 22, 2020
6cb98e3
Rollup merge of #75711 - CohenArthur:split-up-astconv, r=oli-obk
Dylan-DPC Aug 22, 2020
441c835
Rollup merge of #75718 - GuillaumeGomez:coverage-ui-doc-examples-coun…
Dylan-DPC Aug 22, 2020
ec62980
Rollup merge of #75725 - LeSeulArtichaut:alloc-intra-doc, r=jyn514
Dylan-DPC Aug 22, 2020
17d60e4
Rollup merge of #75745 - jyn514:refactor-resolve, r=Manishearth
Dylan-DPC Aug 22, 2020
cc1e5c0
Rollup merge of #75753 - koutheir:patch-1, r=steveklabnik
Dylan-DPC Aug 22, 2020
ad15dc2
Rollup merge of #75769 - matklad:flatten, r=petrochenkov
Dylan-DPC Aug 22, 2020
d826229
Rollup merge of #75771 - tmiasko:const-eval-query-stack-normalize, r=…
Dylan-DPC Aug 22, 2020
cb9ef09
Rollup merge of #75781 - Amanieu:asm-fix, r=nagisa
Dylan-DPC Aug 22, 2020
2ea6379
Rollup merge of #75782 - GuillaumeGomez:more-links, r=jyn514
Dylan-DPC Aug 22, 2020
13dfa9c
Rollup merge of #75787 - LeSeulArtichaut:core-intra-doc, r=jyn514
Dylan-DPC Aug 22, 2020
2ab6fef
Rollup merge of #75788 - nagisa:mir-call-doccomment, r=wesleywiser
Dylan-DPC Aug 22, 2020
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
18 changes: 0 additions & 18 deletions library/alloc/src/alloc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ extern "Rust" {
///
/// Note: while this type is unstable, the functionality it provides can be
/// accessed through the [free functions in `alloc`](index.html#functions).
///
/// [`AllocRef`]: trait.AllocRef.html
#[unstable(feature = "allocator_api", issue = "32838")]
#[derive(Copy, Clone, Default, Debug)]
pub struct Global;
Expand All @@ -55,10 +53,6 @@ pub struct Global;
///
/// See [`GlobalAlloc::alloc`].
///
/// [`Global`]: struct.Global.html
/// [`AllocRef`]: trait.AllocRef.html
/// [`GlobalAlloc::alloc`]: trait.GlobalAlloc.html#tymethod.alloc
///
/// # Examples
///
/// ```
Expand Down Expand Up @@ -92,10 +86,6 @@ pub unsafe fn alloc(layout: Layout) -> *mut u8 {
/// # Safety
///
/// See [`GlobalAlloc::dealloc`].
///
/// [`Global`]: struct.Global.html
/// [`AllocRef`]: trait.AllocRef.html
/// [`GlobalAlloc::dealloc`]: trait.GlobalAlloc.html#tymethod.dealloc
#[stable(feature = "global_alloc", since = "1.28.0")]
#[inline]
pub unsafe fn dealloc(ptr: *mut u8, layout: Layout) {
Expand All @@ -114,10 +104,6 @@ pub unsafe fn dealloc(ptr: *mut u8, layout: Layout) {
/// # Safety
///
/// See [`GlobalAlloc::realloc`].
///
/// [`Global`]: struct.Global.html
/// [`AllocRef`]: trait.AllocRef.html
/// [`GlobalAlloc::realloc`]: trait.GlobalAlloc.html#method.realloc
#[stable(feature = "global_alloc", since = "1.28.0")]
#[inline]
pub unsafe fn realloc(ptr: *mut u8, layout: Layout, new_size: usize) -> *mut u8 {
Expand All @@ -137,10 +123,6 @@ pub unsafe fn realloc(ptr: *mut u8, layout: Layout, new_size: usize) -> *mut u8
///
/// See [`GlobalAlloc::alloc_zeroed`].
///
/// [`Global`]: struct.Global.html
/// [`AllocRef`]: trait.AllocRef.html
/// [`GlobalAlloc::alloc_zeroed`]: trait.GlobalAlloc.html#method.alloc_zeroed
///
/// # Examples
///
/// ```
Expand Down
26 changes: 10 additions & 16 deletions library/alloc/src/boxed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,13 @@
//! described in [rust-lang/unsafe-code-guidelines#198][ucg#198].
//!
//! [ucg#198]: https://github.com/rust-lang/unsafe-code-guidelines/issues/198
//! [dereferencing]: ../../std/ops/trait.Deref.html
//! [`Box`]: struct.Box.html
//! [`Box<T>`]: struct.Box.html
//! [`Box::<T>::from_raw(value)`]: struct.Box.html#method.from_raw
//! [`Box::<T>::into_raw`]: struct.Box.html#method.into_raw
//! [`Global`]: ../alloc/struct.Global.html
//! [`Layout`]: ../alloc/struct.Layout.html
//! [`Layout::for_value(&*value)`]: ../alloc/struct.Layout.html#method.for_value
//! [dereferencing]: core::ops::Deref
//! [`Box<T>`]: Box
//! [`Box::<T>::from_raw(value)`]: Box::from_raw
//! [`Box::<T>::into_raw`]: Box::into_raw
//! [`Global`]: crate::alloc::Global
//! [`Layout`]: crate::alloc::Layout
//! [`Layout::for_value(&*value)`]: crate::alloc::Layout::for_value

#![stable(feature = "rust1", since = "1.0.0")]

Expand Down Expand Up @@ -240,7 +239,6 @@ impl<T> Box<T> {
/// Converts a `Box<T>` into a `Box<[T]>`
///
/// This conversion does not allocate on the heap and happens in place.
///
#[unstable(feature = "box_into_boxed_slice", issue = "71582")]
pub fn into_boxed_slice(boxed: Box<T>) -> Box<[T]> {
// *mut T and *mut [T; 1] have the same size and alignment
Expand Down Expand Up @@ -386,9 +384,8 @@ impl<T: ?Sized> Box<T> {
/// }
/// ```
///
/// [memory layout]: index.html#memory-layout
/// [`Layout`]: ../alloc/struct.Layout.html
/// [`Box::into_raw`]: struct.Box.html#method.into_raw
/// [memory layout]: self#memory-layout
/// [`Layout`]: crate::Layout
#[stable(feature = "box_raw", since = "1.4.0")]
#[inline]
pub unsafe fn from_raw(raw: *mut T) -> Self {
Expand Down Expand Up @@ -433,8 +430,7 @@ impl<T: ?Sized> Box<T> {
/// }
/// ```
///
/// [memory layout]: index.html#memory-layout
/// [`Box::from_raw`]: struct.Box.html#method.from_raw
/// [memory layout]: self#memory-layout
#[stable(feature = "box_raw", since = "1.4.0")]
#[inline]
pub fn into_raw(b: Box<T>) -> *mut T {
Expand Down Expand Up @@ -478,8 +474,6 @@ impl<T: ?Sized> Box<T> {
/// to call it as `Box::leak(b)` instead of `b.leak()`. This
/// is so that there is no conflict with a method on the inner type.
///
/// [`Box::from_raw`]: struct.Box.html#method.from_raw
///
/// # Examples
///
/// Simple usage:
Expand Down
15 changes: 4 additions & 11 deletions library/alloc/src/collections/linked_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//! array-based containers are generally faster,
//! more memory efficient, and make better use of CPU cache.
//!
//! [`Vec`]: ../../vec/struct.Vec.html
//! [`VecDeque`]: ../vec_deque/struct.VecDeque.html
//! [`Vec`]: crate::vec::Vec
//! [`VecDeque`]: super::vec_deque::VecDeque

#![stable(feature = "rust1", since = "1.0.0")]

Expand Down Expand Up @@ -50,11 +50,8 @@ struct Node<T> {

/// An iterator over the elements of a `LinkedList`.
///
/// This `struct` is created by the [`iter`] method on [`LinkedList`]. See its
/// This `struct` is created by [`LinkedList::iter()`]. See its
/// documentation for more.
///
/// [`iter`]: struct.LinkedList.html#method.iter
/// [`LinkedList`]: struct.LinkedList.html
#[stable(feature = "rust1", since = "1.0.0")]
pub struct Iter<'a, T: 'a> {
head: Option<NonNull<Node<T>>>,
Expand All @@ -80,11 +77,8 @@ impl<T> Clone for Iter<'_, T> {

/// A mutable iterator over the elements of a `LinkedList`.
///
/// This `struct` is created by the [`iter_mut`] method on [`LinkedList`]. See its
/// This `struct` is created by [`LinkedList::iter_mut()`]. See its
/// documentation for more.
///
/// [`iter_mut`]: struct.LinkedList.html#method.iter_mut
/// [`LinkedList`]: struct.LinkedList.html
#[stable(feature = "rust1", since = "1.0.0")]
pub struct IterMut<'a, T: 'a> {
// We do *not* exclusively own the entire list here, references to node's `element`
Expand All @@ -109,7 +103,6 @@ impl<T: fmt::Debug> fmt::Debug for IterMut<'_, T> {
/// (provided by the `IntoIterator` trait). See its documentation for more.
///
/// [`into_iter`]: struct.LinkedList.html#method.into_iter
/// [`LinkedList`]: struct.LinkedList.html
#[derive(Clone)]
#[stable(feature = "rust1", since = "1.0.0")]
pub struct IntoIter<T> {
Expand Down
35 changes: 13 additions & 22 deletions library/alloc/src/fmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -501,31 +501,23 @@
//! it would internally pass around this structure until it has been determined
//! where output should go to.
//!
//! [`usize`]: ../../std/primitive.usize.html
//! [`isize`]: ../../std/primitive.isize.html
//! [`i8`]: ../../std/primitive.i8.html
//! [`Display`]: trait.Display.html
//! [`Binary`]: trait.Binary.html
//! [`fmt::Result`]: type.Result.html
//! [`Result`]: ../../std/result/enum.Result.html
//! [`std::fmt::Error`]: struct.Error.html
//! [`Formatter`]: struct.Formatter.html
//! [`write!`]: ../../std/macro.write.html
//! [`Debug`]: trait.Debug.html
//! [`format!`]: ../../std/macro.format.html
//! [`to_string`]: ../../std/string/trait.ToString.html
//! [`writeln!`]: ../../std/macro.writeln.html
//! [`fmt::Result`]: Result
//! [`Result`]: core::result::Result
//! [`std::fmt::Error`]: Error
//! [`write!`]: core::write
//! [`write`]: core::write
//! [`format!`]: crate::format
//! [`to_string`]: crate::string::ToString
//! [`writeln!`]: core::writeln
//! [`write_fmt`]: ../../std/io/trait.Write.html#method.write_fmt
//! [`std::io::Write`]: ../../std/io/trait.Write.html
//! [`print!`]: ../../std/macro.print.html
//! [`println!`]: ../../std/macro.println.html
//! [`eprint!`]: ../../std/macro.eprint.html
//! [`eprintln!`]: ../../std/macro.eprintln.html
//! [`write!`]: ../../std/macro.write.html
//! [`format_args!`]: ../../std/macro.format_args.html
//! [`fmt::Arguments`]: struct.Arguments.html
//! [`write`]: fn.write.html
//! [`format`]: fn.format.html
//! [`format_args!`]: core::format_args
//! [`fmt::Arguments`]: Arguments
//! [`format`]: crate::format

#![stable(feature = "rust1", since = "1.0.0")]

Expand Down Expand Up @@ -576,9 +568,8 @@ use crate::string;
/// assert_eq!(s, "Hello, world!");
/// ```
///
/// [`Arguments`]: struct.Arguments.html
/// [`format_args!`]: ../../std/macro.format_args.html
/// [`format!`]: ../../std/macro.format.html
/// [`format_args!`]: core::format_args
/// [`format!`]: crate::format
#[stable(feature = "rust1", since = "1.0.0")]
pub fn format(args: Arguments<'_>) -> string::String {
let capacity = args.estimated_capacity();
Expand Down
10 changes: 5 additions & 5 deletions library/alloc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@
//! The [`alloc`](alloc/index.html) module defines the low-level interface to the
//! default global allocator. It is not compatible with the libc allocator API.
//!
//! [`Arc`]: sync/index.html
//! [`Box`]: boxed/index.html
//! [`Cell`]: ../core/cell/index.html
//! [`Rc`]: rc/index.html
//! [`RefCell`]: ../core/cell/index.html
//! [`Arc`]: sync
//! [`Box`]: boxed
//! [`Cell`]: core::cell
//! [`Rc`]: rc
//! [`RefCell`]: core::cell

#![allow(unused_attributes)]
#![stable(feature = "alloc", since = "1.36.0")]
Expand Down
11 changes: 5 additions & 6 deletions library/alloc/src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@
/// to the same boxed integer value, not five references pointing to independently
/// boxed integers.
///
/// [`Vec`]: ../std/vec/struct.Vec.html
/// [`Clone`]: ../std/clone/trait.Clone.html
/// [`Vec`]: crate::vec::Vec
#[cfg(not(test))]
#[macro_export]
#[stable(feature = "rust1", since = "1.0.0")]
Expand Down Expand Up @@ -81,11 +80,11 @@ macro_rules! vec {
/// To convert a single value to a string, use the [`to_string`] method. This
/// will use the [`Display`] formatting trait.
///
/// [fmt]: ../std/fmt/index.html
/// [fmt]: core::fmt
/// [`print!`]: ../std/macro.print.html
/// [`write!`]: ../std/macro.write.html
/// [`to_string`]: ../std/string/trait.ToString.html
/// [`Display`]: ../std/fmt/trait.Display.html
/// [`write!`]: core::write
/// [`to_string`]: crate::string::ToString
/// [`Display`]: core::fmt::Display
///
/// # Panics
///
Expand Down
Loading