Skip to content

Rollup of 12 pull requests #62271

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

Closed
wants to merge 32 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
1e9e4b0
Add mention of VS 2019 in link error output.
crlf0710 Jun 21, 2019
19f8622
Just switch to English linker output using environment variable when …
crlf0710 Jun 24, 2019
9d798b7
Adjust warning of -C extra-filename with -o.
ehuss Jun 25, 2019
e1e95a8
Use force_bits when casting from a pointer
pvdrz Jun 26, 2019
8339211
Added comment description.
crlf0710 Jun 27, 2019
7f1e160
Reorganize code for readabilty and fixed problem with type sizes
pvdrz Jun 28, 2019
95bc720
Use pointer size as the source size
pvdrz Jun 29, 2019
51793bd
Simplify control flow
pvdrz Jun 29, 2019
dfb9f5b
Add missing links for TryFrom docs
GuillaumeGomez Jun 29, 2019
3e83728
Add missing type urls in Into trait
GuillaumeGomez Jun 27, 2019
92c28bf
Replace error by bug macro
pvdrz Jun 30, 2019
0ffb643
Make sure `#[rustc_doc_only_macro]` and other rustc attributes are re…
petrochenkov Jun 29, 2019
e4e7eb2
Feature gate `rustc` attributes harder
petrochenkov Jun 30, 2019
fc70c37
Improve box clone doctests to ensure the documentation is valid
czipperz Jun 30, 2019
f7061db
Update mem::replace example to not be identical to mem::take
czipperz Jun 30, 2019
de00ae7
Switch tracking issue for 'slice_patterns'.
Centril Jun 30, 2019
639e03b
Update RLS to disable spurious client_find_definitions test
Xanewok Jun 30, 2019
3f39dc1
syntax: Unsupport `foo! bar { ... }` macros in the parser
petrochenkov Jun 30, 2019
d0dc41a
Address review comments
petrochenkov Jul 1, 2019
8d6b1d1
Clean up inherent_impls
Zoxc Apr 16, 2019
548132b
Rollup merge of #62021 - crlf0710:msvc_link_output_improve, r=alexcri…
Centril Jul 1, 2019
f6b573c
Rollup merge of #62128 - ehuss:extra-filename-warning, r=matthewjasper
Centril Jul 1, 2019
e590677
Rollup merge of #62133 - petrochenkov:norustc, r=eddyb
Centril Jul 1, 2019
583c0ad
Rollup merge of #62161 - GuillaumeGomez:add-missing-tryfrom-links, r=…
Centril Jul 1, 2019
8a9a02d
Rollup merge of #62186 - GuillaumeGomez:add-missing-type-links-into, …
Centril Jul 1, 2019
9760229
Rollup merge of #62229 - christianpoveda:intptrcast-explicit-casts, r…
Centril Jul 1, 2019
56f2ac1
Rollup merge of #62250 - czipperz:improve-box-clone-doctests, r=Guill…
Centril Jul 1, 2019
631a58b
Rollup merge of #62252 - czipperz:change-mem-replace-doc-example, r=d…
Centril Jul 1, 2019
1948fac
Rollup merge of #62255 - Centril:slice-patterns-change-issue, r=varkor
Centril Jul 1, 2019
123c892
Rollup merge of #62258 - petrochenkov:idclean, r=Centril
Centril Jul 1, 2019
a46f705
Rollup merge of #62259 - Xanewok:update-rls, r=Mark-Simulacrum
Centril Jul 1, 2019
0783a2d
Rollup merge of #62268 - Zoxc:inherent_impls, r=eddyb
Centril Jul 1, 2019
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
Add missing type urls in Into trait
  • Loading branch information
GuillaumeGomez committed Jun 29, 2019
commit 3e83728ddde9d8cb2ae3b35b99d570e7a9c5fbd6
5 changes: 3 additions & 2 deletions src/libcore/convert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,12 +251,12 @@ pub trait AsMut<T: ?Sized> {
///
/// # Examples
///
/// [`String`] implements `Into<Vec<u8>>`:
/// [`String`] implements [`Into`]`<`[`Vec`]`<`[`u8`]`>>`:
///
/// In order to express that we want a generic function to take all arguments that can be
/// converted to a specified type `T`, we can use a trait bound of [`Into`]`<T>`.
/// For example: The function `is_hello` takes all arguments that can be converted into a
/// `Vec<u8>`.
/// [`Vec`]`<`[`u8`]`>`.
///
/// ```
/// fn is_hello<T: Into<Vec<u8>>>(s: T) {
Expand All @@ -274,6 +274,7 @@ pub trait AsMut<T: ?Sized> {
/// [`String`]: ../../std/string/struct.String.html
/// [`From`]: trait.From.html
/// [`Into`]: trait.Into.html
/// [`Vec`]: ../../std/vec/struct.Vec.html
#[stable(feature = "rust1", since = "1.0.0")]
pub trait Into<T>: Sized {
/// Performs the conversion.
Expand Down