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 16 pull requests #62294

Closed
wants to merge 63 commits into from
Closed
Changes from 2 commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
0ae61d8
in which the `non_ascii_idents` lint appears (RFC 2457)
zackmdavis Jun 16, 2019
bb26e07
Add debug assertions to write_bytes and copy*
nitnelave Feb 27, 2019
0533f12
Handle null from LLVMRustGetSectionName
nitnelave Mar 27, 2019
8a4573f
format a bit
RalfJung Jun 24, 2019
4159b27
order things more traditionally
RalfJung Jun 24, 2019
a68afc5
ignore some codegen tests in debug mode
RalfJung Jun 25, 2019
d3e1bf9
nits
RalfJung Jun 25, 2019
7262e64
Make FlowAtLocation support borrowing flow data
tmandry Jun 18, 2019
4a8a552
Add DataflowResultsCursor
tmandry Jun 18, 2019
9969417
Add RequiresStorage pass to decide which locals to save in generators
tmandry Jun 18, 2019
c932518
Don't use lift to detect local types
Zoxc May 31, 2019
8465daf
Check for local types in writeback with debug assertions
Zoxc Jun 15, 2019
b2aeb0f
Move some tests in src/test/compile-fail -> src/test/ui.
Centril Jun 27, 2019
2a37582
std: Move a process test out of libstd
alexcrichton Jun 27, 2019
a0e5fcf
import gdb for explicit access to gdb.current_objfile()
cclauss Jun 28, 2019
9527565
Add Vec::leak
cramertj Jun 27, 2019
11b09e7
Add size tests for moved locals in generators
tmandry Jun 21, 2019
aee1357
Remove Clone requirement
tmandry Jun 26, 2019
d8ed2e7
Use RequiresStorage to determine which locals can overlap
tmandry Jun 29, 2019
e2d7df5
Privatize a bunch of methods
Mark-Simulacrum Jun 24, 2019
209bde1
Delete now-unused methods
Mark-Simulacrum Jun 24, 2019
1aff8af
Replace pretty-printer Box<dyn Write> with &mut String
Mark-Simulacrum Jun 24, 2019
da5c835
Remove io::Result from syntax::print
Mark-Simulacrum Jun 24, 2019
ff27756
Remove unused import
Mark-Simulacrum Jun 24, 2019
d26c4b7
Inline rust_printer
Mark-Simulacrum Jun 24, 2019
6d4c642
Use ignore/keep-wasm32 where appropriate.
Centril 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
9e2714a
Update rustfmt to 1.3.1
topecongiro 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
ac4e109
Remove needless lifetimes
jeremystucki Jun 21, 2019
4e184ec
Remove needless lifetimes
jeremystucki Jun 21, 2019
01d8121
Remove needless lifetimes
jeremystucki Jun 21, 2019
a3dda49
Remove needless lifetimes
jeremystucki Jun 21, 2019
69e8a77
Remove needless lifetimes
jeremystucki Jun 21, 2019
856b427
Remove needless lifetimes
jeremystucki Jun 21, 2019
1552d8d
Add missing lifetime specifier
jeremystucki Jun 23, 2019
17c2d6b
Add missing lifetime specifier
jeremystucki Jun 23, 2019
0bee0fb
Add missing lifetime specifier
jeremystucki Jun 23, 2019
37f6aa7
Add missing lifetime specifier
jeremystucki Jun 24, 2019
4c221b3
Revert changes to the standard library
jeremystucki Jun 25, 2019
7e5f6c7
rustc: always keep `hir::Path` behind a `P<...>`.
eddyb Jun 19, 2019
25a9206
syntax: use `box` instead of `Box::new` in `ptr::P`.
eddyb Jun 12, 2019
c6374cf
rustc: use a separate copy of P for HIR than for AST.
eddyb Jun 12, 2019
734d31a
Update phf to get rid of rand 0.4
mati865 Jun 21, 2019
a68e2c7
Clean up extra lifetime, add assertions
tmandry Jul 1, 2019
e58fbbb
Rollup merge of #61871 - Zoxc:no-lift-branch, r=eddyb
Manishearth Jul 2, 2019
af4b62b
Rollup merge of #61883 - zackmdavis:non_ascii_idents_lint, r=Manishearth
Manishearth Jul 2, 2019
2a2d71f
Rollup merge of #61922 - tmandry:moar-generator-optimization, r=matth…
Manishearth Jul 2, 2019
e3204bc
Rollup merge of #61995 - eddyb:hir-sep-ptr, r=petrochenkov
Manishearth Jul 2, 2019
e988c42
Rollup merge of #62026 - mati865:deps, r=alexcrichton
Manishearth Jul 2, 2019
1381760
Rollup merge of #62039 - jeremystucki:needless_lifetimes, r=eddyb
Manishearth Jul 2, 2019
77124e3
Rollup merge of #62099 - Mark-Simulacrum:syntax-print-clean-2, r=eddyb
Manishearth Jul 2, 2019
7982092
Rollup merge of #62103 - RalfJung:debug-assert, r=alexcrichton
Manishearth Jul 2, 2019
62b38c1
Rollup merge of #62133 - petrochenkov:norustc, r=eddyb
Manishearth Jul 2, 2019
b9d4b3b
Rollup merge of #62161 - GuillaumeGomez:add-missing-tryfrom-links, r=…
Manishearth Jul 2, 2019
42d0eb5
Rollup merge of #62177 - Centril:move-some-compile-fail-tests, r=petr…
Manishearth Jul 2, 2019
99d52f7
Rollup merge of #62183 - alexcrichton:fix-tests, r=nikomatsakis
Manishearth Jul 2, 2019
179ed23
Rollup merge of #62186 - GuillaumeGomez:add-missing-type-links-into, …
Manishearth Jul 2, 2019
91376ec
Rollup merge of #62196 - cramertj:vec-leak, r=centril,withoutboats
Manishearth Jul 2, 2019
eef6248
Rollup merge of #62199 - cclauss:patch-1, r=nikomatsakis
Manishearth Jul 2, 2019
fddcb19
Rollup merge of #62244 - topecongiro:rustfmt-1.3.1, r=alexcrichton
Manishearth Jul 2, 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
5 changes: 3 additions & 2 deletions src/libcore/convert.rs
Original file line number Diff line number Diff line change
@@ -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) {
@@ -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.