about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2019-05-25Update ui testsOliver Scherer-1/+23
2019-05-25Print types for unevaluated constantsOliver Scherer-2/+2
2019-05-25Fix rebase falloutOliver Scherer-7/+7
2019-05-25Break cycle during array length printingOliver Scherer-1/+1
2019-05-25rustc: integrate ty::Const into ty::print as print_const.Eduard-Mihai Burtescu-107/+160
2019-05-25Update ui testsOliver Scherer-1/+1
2019-05-25Print unevaluted constants as `_` or as their source representationOliver Scherer-4/+13
2019-05-25Use `write_char` to skip the formatting infrastructureOliver Scherer-1/+1
2019-05-25Fix tidyOliver Scherer-0/+1
2019-05-25Print generic args in function calls in MIROliver Scherer-7/+7
2019-05-25Group common printing code during constant pretty printingOliver Scherer-56/+73
2019-05-25Render unresolved anon consts like closuresOliver Scherer-4/+10
2019-05-25`u8` is printed as a number, not a characterOliver Scherer-3/+3
2019-05-25Render const byte slices in MIROliver Scherer-22/+34
2019-05-25Make `ConstValue::Slice` solely take `[u8]` and `str`Oliver Scherer-162/+157
2019-05-25Refactor string constant printing to prep for byte string printingOliver Scherer-3/+3
2019-05-25Add test showing how byte slices are printed in MIROliver Scherer-0/+15
2019-05-25Don't use `ty::Const` without immediately interningOliver Scherer-182/+114
2019-05-25Print const chars escaped with surrounding quotesOliver Scherer-1/+1
2019-05-25Merge the string printing paths of ty::ConstOliver Scherer-8/+12
2019-05-25There's a tcx in scope, don't use the tls oneOliver Scherer-15/+11
2019-05-25Reuse the pretty printing architecture for printing of constantsOliver Scherer-80/+100
2019-05-25Remove unnecessary secondary recursionOliver Scherer-1/+1
2019-05-25Auto merge of #61150 - Centril:rollup-wmm7qga, r=Centrilbors-174/+418
Rollup of 13 pull requests Successful merges: - #61026 (Tweak macro parse errors when reaching EOF during macro call parse) - #61095 (Update cargo) - #61096 (tidy: don't short-circuit on license error) - #61107 (Fix a couple docs typos) - #61110 (Revert edition-guide toolstate override) - #61111 (Fixed type-alias-bounds lint doc) - #61113 (Deprecate `FnBox`. `Box<dyn FnOnce()>` can be called directly, since 1.35) - #61116 (Remove the incorrect warning from README.md) - #61118 (Dont ICE on an attempt to use GAT without feature gate) - #61121 (improve debug-printing of scalars) - #61125 (Updated my mailmap entry) - #61134 (Annotate each `reverse_bits` with `#[must_use]`) - #61138 (Move async/await tests to their own folder) Failed merges: r? @ghost
2019-05-25Rollup merge of #61138 - varkor:async-await-tests, r=cramertjMazdak Farrokhzad-2/+74
Move async/await tests to their own folder This moves run-pass and ui async/await tests to their own folder `src/test/ui/async-await` and organises some into subfolders. (It does not move rustdoc tests for async/await.) I also did some drive-by cleaning up of issues/error code tests into their own folders (which already existed). These are in separate commits, so easy to separate out if that's more desirable. r? @cramertj
2019-05-25Rollup merge of #61134 - nvzqz:reverse_bits-must_use, r=varkorMazdak Farrokhzad-0/+3
Annotate each `reverse_bits` with `#[must_use]` Because the name sounds like an in-place mutation like `[T]::reverse(&mut self)`, it may be confused for one. This change was requested at https://github.com/rust-lang/rust/issues/48763#issuecomment-493743741.
2019-05-25Rollup merge of #61121 - RalfJung:miri-value-printing, r=oli-obkMazdak Farrokhzad-3/+47
improve debug-printing of scalars * Prettier printing for `Pointer` and `Bits`. * Don't print the `ScalarMaybeUndef(...)` around `Scalar`. Before: `Immediate(ScalarMaybeUndef(Scalar(Ptr(Pointer { alloc_id: AllocId(3401), offset: Size { raw: 4 }, tag: Tagged(7723) }))))` After: `Immediate(Scalar(AllocId(3401).0x4[<7723>]))` Before: `Immediate(ScalarMaybeUndef(Scalar(Bits { size: 8, bits: 10 })))` After: `Immediate(Scalar(0x000000000000000A))` Before: `Immediate(ScalarMaybeUndef(Scalar(Bits { size: 1, bits: 1 })))` After: `Immediate(Scalar(0x01))` r? @oli-obk
2019-05-25Rollup merge of #61118 - pnkfelix:issue-60654-dont-ice-on-gat, r=varkorMazdak Farrokhzad-10/+40
Dont ICE on an attempt to use GAT without feature gate Fix #60654
2019-05-25Rollup merge of #61113 - SimonSapin:fnbox, r=alexcrichtonMazdak Farrokhzad-35/+54
Deprecate `FnBox`. `Box<dyn FnOnce()>` can be called directly, since 1.35 FCP completion: https://github.com/rust-lang/rust/issues/28796#issuecomment-439731515
2019-05-25Rollup merge of #61111 - Cerberuser:patch-1, r=steveklabnikMazdak Farrokhzad-4/+7
Fixed type-alias-bounds lint doc The example code under type-alias-bounds lint produced two warnings - one from the lint itself and another from the dead_code lint, and only the second one was in the doc. This looked like an error, so I've added `#[allow(dead_code)]` and replaced the example output with the expected one. [Playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&code=%23%5Ballow(dead_code)%5D%0Atype%20SendVec%3CT%3A%20Send%3E%20%3D%20Vec%3CT%3E%3B) According to guidelines, r? @steveklabnik
2019-05-25Rollup merge of #61110 - ehuss:revert-edition-override, r=Mark-SimulacrumMazdak Farrokhzad-3/+1
Revert edition-guide toolstate override Closes #60929
2019-05-25Rollup merge of #61107 - blkerby:docs_typos, r=CentrilMazdak Farrokhzad-2/+4
Fix a couple docs typos Also add a link to env::split_paths.
2019-05-25Rollup merge of #61096 - ehuss:tidy-license-short-circuit, r=CentrilMazdak Farrokhzad-1/+1
tidy: don't short-circuit on license error If there is more than one license error, tidy would only print the first error. This changes it so that all license errors are printed.
2019-05-25Rollup merge of #61095 - ehuss:update-cargo, r=alexcrichtonMazdak Farrokhzad-0/+3
Update cargo Update cargo 14 commits in c4fcfb725b4be00c72eb9cf30c7d8b095577c280..545f354259be4e9745ea00a524c0e4c51df01aa6 2019-05-15 19:48:47 +0000 to 2019-05-23 17:45:30 +0000 - Bump to 0.38.0 (rust-lang/cargo#6979) - cargo package: detect new empty directories (rust-lang/cargo#6973) - Add message caching. (rust-lang/cargo#6933) - Fix typo (rust-lang/cargo#6974) - Set `Finished` line correctly for debug=0. (rust-lang/cargo#6971) - Clippy fixes (rust-lang/cargo#6970) - Remove rustdoc `can_add_color_process`. (rust-lang/cargo#6968) - Document new `doctest` field. (rust-lang/cargo#6965) - Update some man pages that missed --offline. (rust-lang/cargo#6964) - add public & private prop tests. (rust-lang/cargo#6962) - zsh completion: Pull list of commands from cargo --list (rust-lang/cargo#6956) - Change docs "inequality" for semver requirement. (rust-lang/cargo#6963) - Update im-rc requirement from 12.1.0 to 13.0.0 (rust-lang/cargo#6959) - Add `doctest` field into metadata (rust-lang/cargo#6953)
2019-05-25Rollup merge of #61026 - estebank:macro-eof-spans, r=petrochenkovMazdak Farrokhzad-114/+184
Tweak macro parse errors when reaching EOF during macro call parse Add detail on origin of current parser when reaching EOF, stop saying "found `<eof>`" and point at the end of macro calls. Fix #27569.
2019-05-25Auto merge of #60441 - vext01:try-to-kill-projection-params, r=oli-obkbors-67/+55
Make place projections concrete. **I'm not sure if we want this. I'm raising the PR for discussion** Whilst doing some work on our Rust fork, I noticed the following: Once upon a time (commit 9bd35c07c26) there were two kinds of projection: one for places, and one for constants. It therefore made sense to share the `Projection` struct for both. Although the different use-cases used different concrete types, sharing was made possible by type-parameterisation of `Projection`. Since then, however, the usage of projections in constants has disappeared, meaning that (forgetting lifetimes for a moment) the parameterised type is only every instantiated under one guise. So it may as well be a concrete type. Right? What do people think? This is entirely untested, although it does check. If we *don't* want this, then we should at least update the incorrect comment against `Projection`. Thanks
2019-05-25Add extra arc_wakevarkor-0/+64
2019-05-24Revert changes that belong to separate PREsteban Küber-39/+16
2019-05-24Delete stray .stderrvarkor-10/+0
2019-05-24Move error code tests to error code foldervarkor-0/+0
2019-05-24Add issues folder in async-awaitvarkor-0/+12
2019-05-24Add drop-order folder in test/ui/async-awaitvarkor-12/+0
2019-05-24Add auxiliary issue filevarkor-0/+0
2019-05-24Move some issues into the issues foldervarkor-0/+0
2019-05-24Move async/await tests to test/ui/async-awaitvarkor-2/+20
2019-05-24Annotate each `reverse_bits` with `#[must_use]`Nikolai Vazquez-0/+3
Because the name sounds like an in-place mutation like `[T]::reverse(&mut self)`, it may be confused for one.
2019-05-24Auto merge of #60777 - pietroalbini:azure-pipelines, r=alexcrichtonbors-18/+50
Add Azure Pipelines configuration Huge thanks to @johnterickson and @willsmythe for writing the initial config! :heart: I applied some changes to the initial config and disabled most of the builders since we're not going to run all of them during the initial step for the evaluation. [More details about our plans for the Azure Pipelines evaluation.](https://internals.rust-lang.org/t/update-on-the-ci-investigation/10056) r? @alexcrichton @kennytm cc @rust-lang/infra @ethomson @rylev
2019-05-24Move diagnostic logic out of parserEsteban Küber-19/+20
2019-05-24Fix rebaseEsteban Küber-4/+6
2019-05-24review commentsEsteban Küber-66/+73