about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2018-08-16Add some commentsvarkor-2/+37
2018-08-16Refactor conditionvarkor-31/+27
2018-08-16Add guarded arms to testsvarkor-1/+19
2018-08-16No longer return value_constructors for all_constructorsvarkor-18/+15
2018-08-16Refactor for less allocationvarkor-67/+69
2018-08-16Refactor after miri api changesvarkor-12/+16
2018-08-16Replace ... with ..= in suggestionsvarkor-7/+7
As ... is "(silently) deprecated". Presumably this means we should be giving correct, up-to-date suggestions, though.
2018-08-16Introduce signed_bias methodvarkor-45/+21
The epitome of simplicity!
2018-08-16Inline encode and decode methodsvarkor-36/+27
2018-08-16Fix print_miri_value for signed integersvarkor-8/+4
2018-08-16Simplify bitwise operationsvarkor-27/+42
2018-08-16Special-case (RangeEnd::Included, Ordering::Equal) in lower_pattern_unadjustedvarkor-1/+6
2018-08-16Improve the commentsvarkor-11/+17
2018-08-16Fix sign conversion arithmetic errorsvarkor-33/+44
2018-08-16Refactor to remove explicit integer type matchingvarkor-46/+22
2018-08-16Add singleton patterns to testvarkor-3/+24
2018-08-16Fix integer overflowvarkor-4/+5
2018-08-16Use bit operators for min_max_tyvarkor-19/+27
2018-08-16Refactor interval conditionsvarkor-24/+19
2018-08-16Fix range splittingvarkor-6/+6
2018-08-16Require just the Unicode Scalar Values to be matched for a charvarkor-6/+19
2018-08-16Improve macros with reduced repetitionvarkor-15/+20
2018-08-16Add semi-exhaustive tests for exhaustivenessvarkor-0/+144
2018-08-16Fix handling of signed integersvarkor-12/+44
2018-08-16Add feature gate testvarkor-0/+25
2018-08-16Add feature gate and refactorvarkor-182/+164
2018-08-16Add support for all integer typesvarkor-16/+58
2018-08-16Give correct suggestionsvarkor-6/+39
2018-08-16Implement interval checkingvarkor-10/+164
2018-08-16Auto merge of #53304 - dtolnay:extend, r=dtolnaybors-16/+279
TokenStream::extend Two new insta-stable impls in libproc_macro: ```rust impl Extend<TokenTree> for TokenStream impl Extend<TokenStream> for TokenStream ``` `proc_macro::TokenStream` already implements `FromIterator<TokenTree>` and `FromIterator<TokenStream>` so I elected to support the same input types for `Extend`. **This commit reduces compile time of Serde derives by 60% (takes less than half as long to compile)** as measured by building our test suite: ```console $ git clone https://github.com/serde-rs/serde $ cd serde/test_suite $ cargo check --tests --features proc-macro2/nightly $ rm -f ../target/debug/deps/libtest_*.rmeta $ time cargo check --tests --features proc-macro2/nightly Before: 20.8 seconds After: 8.6 seconds ``` r? @alexcrichton
2018-08-16Auto merge of #53256 - ollie27:writeln, r=KodrAusbors-5/+56
Don't accept non-string literals for the format string in writeln This is to improve diagnostics. `println` and `eprintln` were already fixed by #52394. Fixes #30143
2018-08-16Auto merge of #53173 - alexcrichton:win-arm64, r=sfacklerbors-33/+201
Start adding an `aarch64-pc-windows-msvc` target This commit adds the necessary definitions for target specs and such as well as the necessary support in libstd to compile basic `aarch64-pc-windows-msvc` binaries. The target is not currently built on CI, but it can be built locally with: ./configure --target=aarch64-pc-windows-msvc --set rust.lld ./x.py build src/libstd --target aarch64-pc-windows-msvc Currently this fails to build `libtest` due to a linker bug (seemingly in LLD?) which hasn't been investigate yet. Otherwise though with libstd you can build a hello world program (linked with LLD). I've not tried to execute it yet, but it at least links! Full support for this target is still a long road ahead, but this is hopefully a good stepping stone to get started. Points of note about this target are: * Currently defaults to `panic=abort` as support is still landing in LLVM for SEH on AArch64. * Currently defaults to LLD as a linker as I was able to get farther with it than I was with `link.exe`
2018-08-16Auto merge of #53147 - ashtneoi:dont-suggest-ref, r=estebankbors-279/+3104
For move errors, suggest match ergonomics instead of `ref` Partially fixes issue #52423. Also makes errors and suggestions more consistent between move-from-place and move-from-value errors. Limitations: - Only the first pattern in a match arm can have a "consider removing this borrow operator" suggestion. - Suggestions don't always compile as-is (see the TODOs in the test for details). Sorry for the really long test. I wanted to make sure I handled every case I could think of, and it turned out there were a lot of them. Questions: - Is there any particular applicability I should set on those suggestions? - Are the notes about the `Copy` trait excessive?
2018-08-16Auto merge of #53295 - estebank:on-unimplemented, r=michaelwoeristerbors-26/+38
Various changes to `rustc_on_unimplemented` - Add `from_method` and `from_desugaring` to formatting options - Change wording of errors slightly
2018-08-15Split tests more and bless them againashtneoi-602/+653
2018-08-15Move tests into their own directoryashtneoi-0/+0
2018-08-16Auto merge of #53293 - petrochenkov:gramattr2, r=alexcrichtonbors-55/+128
syntax: Enforce attribute grammar in the parser Also fix feature-gating for `unrestricted_attribute_tokens` that was introduced in https://github.com/rust-lang/rust/pull/53270, but was actually broken. cc https://github.com/rust-lang/rust/pull/50911
2018-08-16Auto merge of #53289 - ljedrz:improve_lexer, r=michaelwoeristerbors-74/+134
A few cleanups and minor improvements for the lexer - improve readability by adjusting the formatting of some function signatures and adding some newlines - reorder some functions for easier reading - remove redundant `'static` in `const`s - remove some explicit `return`s - read directly to a `String` in `gather_comments_and_literals` - change `unwrap_or!` (macro) to `unwrap_or` (function) - move an `assert!`ion from `try_next_token` (called in a loop) to `try_real_token` after all calls to `try_next_token` - `#[inline]` some one-liner functions - assign directly from an `if-else` expression - refactor a `match` to `map_or` - add a `token::is_irrelevant` function to detect tokens that are not "`real`"
2018-08-15Start adding an `aarch64-pc-windows-msvc` targetAlex Crichton-33/+201
This commit adds the necessary definitions for target specs and such as well as the necessary support in libstd to compile basic `aarch64-pc-windows-msvc` binaries. The target is not currently built on CI, but it can be built locally with: ./configure --target=aarch64-pc-windows-msvc --set rust.lld ./x.py build src/libstd --target aarch64-pc-windows-msvc Currently this fails to build `libtest` due to a linker bug (seemingly in LLD?) which hasn't been investigate yet. Otherwise though with libstd you can build a hello world program (linked with LLD). I've not tried to execute it yet, but it at least links! Full support for this target is still a long road ahead, but this is hopefully a good stepping stone to get started. Points of note about this target are: * Currently defaults to `panic=abort` as support is still landing in LLVM for SEH on AArch64. * Currently defaults to LLD as a linker as I was able to get farther with it than I was with `link.exe`
2018-08-15Re-bless testashtneoi-0/+63
2018-08-15Add files I forgot to commit earlierashtneoi-0/+99
2018-08-15Change a method name and clarify a commentashtneoi-5/+6
2018-08-15Bless testsashtneoi-62/+178
2018-08-15Test move-into-Fn/FnMut errors tooashtneoi-2/+530
2018-08-15Fix compiletest JSON error messageashtneoi-2/+2
2018-08-15Allocate fewer Strings at a timeashtneoi-4/+8
2018-08-15Add another FIXME about suggestionsashtneoi-81/+83
2018-08-15Bless UI testsashtneoi-121/+231
2018-08-15Remove incorrect spaceashtneoi-1/+1
2018-08-15Remove unnecessary commentashtneoi-2/+0
Turns out I didn't read the original comment correctly and had some confusion about how MIR uses temporaries.