about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2019-02-27Slowly figuring out how rustdoc actually works.Simon Heath-0/+3
Unfortunately trying to run doctests on my local machine is not really faster than letting Travis do it...
2019-02-27Fix some links in TryFrom docs.Simon Heath-7/+15
2019-02-27Fix a bunch of heckin' trailing whitespaceSimon Heath-17/+17
2019-02-27Add basic docs to integer TryFrom impl macros.Simon Heath-0/+16
They're not as good as `From` 'cause they don't stringify the types and generate examples and so on, but it's a start.
2019-02-27Started expanding docs for `TryFrom` and `TryInto`.Simon Heath-1/+43
The examples are still lacking for now, both for module docs and for methods/impl's.
2019-02-27ManuallyDrop != MaybeUninitRalf Jung-0/+8
2019-02-27Remove copy paste error in char testsOliver Middleton-1/+1
Co-Authored-By: xfix <konrad@borowski.pw>
2019-02-27Implement ExactSizeIterator for ToLowercase and ToUppercaseKonrad Borowski-0/+26
2019-02-27Rollup merge of #58761 - Mark-Simulacrum:add-feature-gate-unwind, r=CentrilMazdak Farrokhzad-3/+3
Add tracking issue for the unwind attribute cc https://github.com/rust-lang/rust/issues/58760
2019-02-27Rollup merge of #58757 - aoikonomopoulos:issue-58212, r=oli-obkMazdak Farrokhzad-1/+15
Normalize the type Self resolves to in an impl This is required at the very least in order to evaluate associated constants for arrays. Fixes #57796 Fixes #58212. r? @oli-obk cc @hellow554
2019-02-27Rollup merge of #58755 - tbu-:pr_doc_clarifyrotate, r=CentrilMazdak Farrokhzad-6/+8
Clarify `rotate_{left,right}` docs I wondered what the `<<!` operator is although the exclamation mark was only the end of the sentence.
2019-02-27Rollup merge of #58749 - kenta7777:reduce-repetition, r=oli-obkMazdak Farrokhzad-7/+8
Reduce Repetitions of (n << amt) >> amt Fixes part of [#49937](https://github.com/rust-lang/rust/issues/49937).
2019-02-27Rollup merge of #58748 - hellow554:scoped_tls, r=estebankMazdak Farrokhzad-4/+4
update scoped_tls to 1.0 scoped_tls has been updated to version 1.0 This PR will hopefully merge flawlessly :) This fixes, among others, https://github.com/alexcrichton/scoped-tls/issues/9 Note, that the nightly feature has been removed in https://github.com/alexcrichton/scoped-tls/commit/64bd7b84a1765fb72a32caed3c17c970bdc6ad57
2019-02-27Rollup merge of #58746 - ipetkov:std-process-docs, r=cramertjMazdak Farrokhzad-2/+2
std: docs: Disable running several Stdio doctests * A number of `Stdio` related doc examples include running the "rev" command to illustrate piping commands. The majority of these tests are marked as `no_run` except for two tests which were not * Not running these tests is unlikely to cause any negative impact, and doing so also allows the test suite to pass in environments where the "rev" command is unavailable
2019-02-27Rollup merge of #58703 - shepmaster:read_line_return, r=centrilMazdak Farrokhzad-1/+1
Fix copy-pasted typo for read_string return value
2019-02-27Rollup merge of #58680 - varkor:xpy-help-index-error, r=alexcrichtonMazdak Farrokhzad-1/+1
Fix an indexing error when using `x.py help` Fixes https://github.com/rust-lang/rust/issues/58640.
2019-02-27Rollup merge of #58678 - doctorn:refuse-async-fn-2015-edition, r=varkorMazdak Farrokhzad-62/+215
Deny `async fn` in 2015 edition This commit prevents code using `async fn` from being compiled in Rust 2015 edition. Compiling code of the form: ```rust async fn foo() {} ``` Will now result in the error: ``` error[E0670]: `async fn` is not permitted in the 2015 edition --> async.rs:1:1 | 1 | async fn foo() {} | ^^^^^ error: aborting due to error For more information about an error, try `rustc --explain E0670`. ``` This resolves #58652 and also resolves #53714. r? @varkor
2019-02-27Rollup merge of #58630 - nnethercote:fix-fold_clobber, r=petrochenkovMazdak Farrokhzad-2/+10
Make `visit_clobber` panic-safe. Local measurements indicate the performance effect is negligible. r? @petrochenkov
2019-02-27Rollup merge of #58627 - euclio:rustdoc-pass-order, r=QuietMisdreavusMazdak Farrokhzad-152/+106
rustdoc: move collapse and unindent docs passes earlier Moves these passes as early as possible so later passes will see the same markdown that is passed to the test collector. Fixes #58473, and a similar issue with the private-doc-tests lint. r? @QuietMisdreavus
2019-02-27Rollup merge of #58075 - asettouf:master, r=varkorMazdak Farrokhzad-8/+14
Fix for issue #58050 Hi, a quick PR to mention in the compiler error message that `?` is a macro operator, as according to issue #58050 It passed `python x.py test src/tools/tidy` locally, as well as the recommendation to run `/x.py test src/test/ui --stage 1 --bless`. Let me know if anything else is needed.
2019-02-27Add trailing newlineTim Vermeulen-1/+1
2019-02-27Auto merge of #58741 - varkor:lang-lib-feature-shared-name, r=alexregbors-4/+8
Allow lang and lib features to share names Fixes https://github.com/rust-lang/rust/issues/58715. I didn't add a test, because there's currently no standard lang test feature and I felt apprehensive about adding a permanently unstable feature. Instead, a shared lang/lib feature will be used in https://github.com/rust-lang/rust/pull/57760 and will essentially provide an immediately test.
2019-02-27Improve existing benchmarks to prevent extreme optimizationsTim Vermeulen-2/+2
2019-02-27Add relevant benchmarksTim Vermeulen-0/+28
2019-02-27Auto merge of #58709 - kornelski:book, r=QuietMisdreavusbors-1/+1
Update book submodule Updates the book to the latest commit This is to include [documentation SEO fix](https://github.com/rust-lang/book/pull/1788) ASAP.
2019-02-27Validate `#[unwind]` syntax regardless of platform-specific panic strategyVadim Petrochenkov-2/+5
2019-02-27Mention `unwind(aborts)` in diagnostics for `#[unwind]`Vadim Petrochenkov-32/+69
Simplify input validation for `#[unwind]`, add tests
2019-02-27Auto merge of #58321 - csmoe:substs, r=oli-obkbors-379/+385
[Step 1] Implement "small substs optimization" for substs of length 1 addresses part of #58310 r?@arielb1
2019-02-26Add tracking issue for the unwind attribute.Mark Rousskov-3/+3
2019-02-26Auto merge of #58675 - gnzlbg:usimd, r=alexcrichtonbors-0/+0
Update stdsimd This updates stdsimd to a Rust2015 / Rust2018 compatible version. Once this is merged it should be possible to migrate libcore and libstd to Rust2018. Once that happens, we can just require the 2018 edition in stdsimd.
2019-02-26Changing error message to reflect changes with the 2018 editionAdonis-8/+14
Signed-off-by: Adonis <adonis.settouf@gmail.com> Update src/libsyntax/ext/tt/quoted.rs Co-Authored-By: asettouf <adonis.settouf@gmail.com> Update src/libsyntax/ext/tt/quoted.rs Co-Authored-By: asettouf <adonis.settouf@gmail.com> Update src/libsyntax/ext/tt/quoted.rs Co-Authored-By: asettouf <adonis.settouf@gmail.com> Update src/libsyntax/ext/tt/quoted.rs Co-Authored-By: asettouf <adonis.settouf@gmail.com> Update src/libsyntax/ext/tt/quoted.rs Co-Authored-By: asettouf <adonis.settouf@gmail.com> Update src/libsyntax/ext/tt/quoted.rs Co-Authored-By: asettouf <adonis.settouf@gmail.com> Update src/test/ui/macros/macro-at-most-once-rep-2015-ques-rep.stderr Co-Authored-By: asettouf <adonis.settouf@gmail.com> Update src/test/ui/macros/macro-at-most-once-rep-2015-ques-rep.stderr Co-Authored-By: asettouf <adonis.settouf@gmail.com> Stabilize split_ascii_whitespace Tracking issue FCP to merge: https://github.com/rust-lang/rust/issues/48656#issuecomment-442372750 fix stabilization order of uniform_paths. hir: add HirId to main Hir nodes Fix `std::os::fortanix_sgx::usercalls::raw::UsercallNrs` Fixes https://github.com/fortanix/rust-sgx/issues/88 Update src/libsyntax/ext/tt/quoted.rs Co-Authored-By: asettouf <adonis.settouf@gmail.com> Revert "Merge remote-tracking branch 'upstream/master'" This reverts commit 751f05bd155e2c55d4177fe8211df634faf3a644, reversing changes made to 545a3e62b0cb473108869a61b271bc589afb49da.
2019-02-27rename Substs to InternalSubstscsmoe-187/+191
Change-Id: I3fa00e999a2ee4eb72db1fdf53a8633b49176a18
2019-02-26Normalize the type Self resolves to in an implAngelos Oikonomopoulos-1/+15
This is required at the very least in order to evaluate associated constants for arrays (see #58212).
2019-02-26rustc: Update LLVM, remove dead wasm codeAlex Crichton-151/+1
This commit updates the LLVM branch to the rebased version of the upstream release/8.x branch. This includes a wasm patch which means that the `rewrite_imports` pass in rustc is no longer needed (yay!) and we can instead rely on `wasm-import-module`, an attribute we're already emitting, to take care of all the work.
2019-02-26Clarify `rotate_{left,right}` docsTobias Bucher-6/+8
I wondered what the `<<!` operator is although the exclamation mark was only the end of the sentence.
2019-02-26replace &'tcx Substs with SubstsRefcsmoe-211/+213
2019-02-26reduce repetitions of (n << amt) >> amtkenta7777-7/+8
2019-02-26update scoped_tls to 1.0Marcel Hellwig-4/+4
2019-02-26Auto merge of #58561 - ljedrz:HirIdify_some_nodes, r=Zoxcbors-677/+646
Remove NodeId from some HIR nodes The next iteration of https://github.com/rust-lang/rust/pull/57578. Removes `NodeId` from: - [x] `Lifetime` - [x] `Ty` - [x] `GenericParam` - [x] `WhereClause` - [x] `WhereEqPredicate` - [x] `MacroDef` - [x] `Block` - [x] `Expr` r? @Zoxc
2019-02-25Disable running several Stdio doctestsIvan Petkov-2/+2
* A number of `Stdio` related doc examples include running the "rev" command to illustrate piping commands. The majority of these tests are marked as `no_run` except for two tests which were not * Not running these tests is unlikely to cause any negative impact, and doing so also allows the test suite to pass in environments where the "rev" command is unavailable
2019-02-26Auto merge of #58357 - sfackler:vectored-io, r=alexcrichtonbors-95/+1052
Add vectored read and write support This functionality has lived for a while in the tokio ecosystem, where it can improve performance by minimizing copies. r? @alexcrichton
2019-02-26Make `visit_clobber` panic-safe.Nicholas Nethercote-2/+10
2019-02-25Auto merge of #57367 - petrochenkov:unrestab, r=Centrilbors-87/+108
Stabilize `unrestricted_attribute_tokens` In accordance with a plan described in https://internals.rust-lang.org/t/unrestricted-attribute-tokens-feature-status/8561/3. Delimited non-macro non-builtin attributes now support the same syntax as macro attributes: ``` PATH PATH `(` TOKEN_STREAM `)` PATH `[` TOKEN_STREAM `]` PATH `{` TOKEN_STREAM `}` ``` Such attributes mostly serve as inert proc macro helpers or tool attributes. To some extent these attributes are de-facto stable due to a hole in feature gate checking (feature gating is done too late - after macro expansion.) So if macro *removes* such helper attributes during expansion (and it must remove them, unless it's a derive macro), then the code will work on stable. Key-value non-macro non-builtin attributes are now restricted to bare minimum required to support what we support on stable - unsuffixed literals (https://github.com/rust-lang/rust/issues/34981). ``` PATH `=` LITERAL ``` (Key-value macro attributes are not supported at all right now.) Crater run in https://github.com/rust-lang/rust/pull/57321 found no regressions for this change. There are multiple possible ways to extend key-value attributes (https://github.com/rust-lang/rust/pull/57321#issuecomment-451574065), but I'd expect an RFC for that and it's not a pressing enough issue to block stabilization of delimited attributes. Built-in attributes are still restricted to the "classic" meta-item syntax, nothing changes here. https://github.com/rust-lang/rust/pull/57321 goes further and adds some additional restrictions (more consistent input checking) to built-in attributes. Closes https://github.com/rust-lang/rust/issues/55208
2019-02-25Allow lang and lib features to share namesvarkor-4/+8
2019-02-25Auto merge of #58302 - SimonSapin:tryfrom, r=alexcrichtonbors-79/+163
Stabilize TryFrom and TryInto with a convert::Infallible empty enum This is the plan proposed in https://github.com/rust-lang/rust/issues/33417#issuecomment-423073898
2019-02-25Stabilize `unrestricted_attribute_tokens`Vadim Petrochenkov-74/+26
2019-02-25Restrict value in key-value attributes to literalsVadim Petrochenkov-18/+87
2019-02-25Fix copy-pasted typo for read_string return valueJake Goulding-1/+1
2019-02-25Update to last updatesGuillaume Gomez-3/+3
2019-02-25Move documentation build into bootstrapGuillaume Gomez-46/+58