summary refs log tree commit diff
path: root/src/test/ui
AgeCommit message (Collapse)AuthorLines
2019-04-10Update ui testLzu Tao-1/+1
2019-04-07bless the ui testsPietro Albini-3/+3
2019-04-07Only run SIMD tests on x86Oliver Scherer-3/+9
2019-04-07Add more regression tests for accidental promotionOliver Scherer-0/+37
2019-04-07Function arguments should never get promotedOliver Scherer-0/+18
2019-04-06Don't report deprecation lints in derive expansionsOliver Scherer-0/+18
2019-03-26Auto merge of #59259 - petrochenkov:bderval, r=estebankbors-83/+141
[beta] Do not accidentally treat multi-segment meta-items as single-segment Partial backport of https://github.com/rust-lang/rust/pull/58899 to beta
2019-03-19bless ui testsPietro Albini-2/+2
2019-03-19resolve: Account for new importable entitiesVadim Petrochenkov-0/+42
2019-03-17Do not accidentally treat multi-segment meta-items as single-segmentVadim Petrochenkov-83/+141
2019-03-16Add regression test for #58886Esteban Küber-0/+53
2019-03-16Collect unclosed delimiters in parent parserEsteban Küber-31/+32
2019-03-16Emit missing unclosed delimiter errorsEsteban Küber-40/+37
2019-03-16Reduce test caseEsteban Küber-18/+4
2019-03-16Emit unclosed delimiters during recoveryEsteban Küber-1/+13
2019-03-16Bail when encountering a second unexpected token in the same spanEsteban Küber-74/+15
2019-03-16Do not panic on missing close parenEsteban Küber-0/+107
Fix #58856.
2019-03-16Expand where negative supertrait specific error is shownEsteban Küber-0/+15
Fix #58857.
2019-03-16Make migrate mode work at item level granularityMatthew Jasper-0/+100
2019-03-16Don't promote function calls to nonpromotable thingsOliver Scherer-0/+18
2019-03-16Test illustrating that the nested_impl_trait lint should only catch shallow ↵Felix S. Klock II-0/+72
cases.
2019-03-16Unit (and regression) tests for warning cycle code.Felix S. Klock II-59/+140
2019-03-16Handle type annotations in promoted MIR correctlyMatthew Jasper-0/+29
Type annotations are shared between the MIR of a function and the promoted constants for that function, so keep them in the type checker when we check the promoted MIR.
2019-03-16Include bounds from promoted constants in NLLMatthew Jasper-3/+78
Previously, a promoted that contains a function item wouldn't have the function items bounds propagated to the main function body.
2019-02-25Auto merge of #57367 - petrochenkov:unrestab, r=Centrilbors-68/+86
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-25Auto merge of #58302 - SimonSapin:tryfrom, r=alexcrichtonbors-4/+3
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-60/+19
2019-02-25Restrict value in key-value attributes to literalsVadim Petrochenkov-13/+72
2019-02-25Rollup merge of #55632 - ollie27:deny_overflowing_literals, r=CentrilMazdak Farrokhzad-17/+30
Deny the `overflowing_literals` lint for all editions The `overflowing_literals` was made deny by default for the 2018 edition by #54507, however I'm not aware of any reason it can't be made deny by default for the 2015 edition as well.
2019-02-25Auto merge of #57609 - matthewjasper:more-restrictive-match, r=pnkfelixbors-90/+185
Use normal mutable borrows in matches `ref mut` borrows are currently two-phase with NLL enabled. This changes them to be proper mutable borrows. To accommodate this, first the position of fake borrows is changed: ```text [ 1. Pre-match ] | [ (old create fake borrows) ] [ 2. Discriminant testing -- check discriminants ] <-+ | | | (once a specific arm is chosen) | | | [ (old read fake borrows) ] | [ 3. Create "guard bindings" for arm ] | [ (create fake borrows) ] | | | [ 4. Execute guard code ] | [ (read fake borrows) ] --(guard is false)-----------+ | | (guard results in true) | [ 5. Create real bindings and execute arm ] | [ Exit match ] ``` The following additional changes are made to accommodate `ref mut` bindings: * We no longer create fake `Shared` borrows. These borrows are no longer needed for soundness, just to avoid some arguably strange cases. * `Shallow` borrows no longer conflict with existing borrows, avoiding conflicting access between the guard borrow access and the `ref mut` borrow. There is some further clean up done in this PR: * Avoid the "later used here" note for Shallow borrows (since it's not relevant with the message provided) * Make any use of a two-phase borrow activate it. * Simplify the cleanup_post_borrowck passes into a single pass. cc #56254 r? @nikomatsakis
2019-02-25Rollup merge of #58370 - nox:relax-bounds, r=dtolnayMazdak Farrokhzad-10/+11
Relax some Hash bounds on HashMap<K, V, S> and HashSet<T, S> Notably, hash iterators don't require any trait bounds to be iterated.
2019-02-24Auto merge of #58315 - gnzlbg:returns_twice, r=alexcrichtonbors-0/+33
Implement unstable ffi_return_twice attribute This PR implements [RFC2633](https://github.com/rust-lang/rfcs/pull/2633) r? @eddyb
2019-02-24Auto merge of #58691 - Centril:rollup, r=Centrilbors-0/+72
Rollup of 6 pull requests Successful merges: - #57364 (Improve parsing diagnostic for negative supertrait bounds) - #58183 (Clarify guarantees for `Box` allocation) - #58442 (Simplify the unix `Weak` functionality) - #58454 (Refactor Windows stdio and remove stdin double buffering ) - #58511 (Const to op simplification) - #58642 (rustdoc: support methods on primitives in intra-doc links) Failed merges: r? @ghost
2019-02-24Rollup merge of #57364 - hdhoang:33418_negative_bounds, r=estebankMazdak Farrokhzad-0/+72
Improve parsing diagnostic for negative supertrait bounds closes #33418 r? @estebank
2019-02-24Auto merge of #58304 - gnzlbg:simd_saturated, r=nagisabors-0/+53
Add generic simd saturated add/sub intrinsics r? @eddyb
2019-02-23Use E0724 instead of E0723 as an error codegnzlbg-2/+2
2019-02-23Correct error messagegnzlbg-3/+3
2019-02-23Implement ffi_returns_twice attributegnzlbg-0/+33
2019-02-23Rollup merge of #58658 - pmccarter:align_msg, r=matthewjasperMazdak Farrokhzad-6/+8
Add expected/provided byte alignments to validation error message Fixes #58617
2019-02-23Rollup merge of #58648 - pnkfelix:issue-23926-update-tests, r=nikomatsakisMazdak Farrokhzad-12/+24
Update tests to account for cross-platform testing and miri. Fix #23926
2019-02-23Rollup merge of #58526 - pmccarter:master, r=estebankMazdak Farrokhzad-0/+19
Special suggestion for illegal unicode curly quote pairs Fixes #58436 Did not end up expanding the error message span to include the full string literal since I figured the start of the token was the issue, while the help suggestion span would include up to the closing quotation mark. The look ahead logic does not affect the reader position, not sure if that is an issue (if eg it should still continue to parse after the closing quote without erroring out).
2019-02-23Rollup merge of #58353 - matthewjasper:typeck-pattern-constants, r=arielb1Mazdak Farrokhzad-20/+58
Check the Self-type of inherent associated constants r? @arielb1
2019-02-23Rollup merge of #58199 - clintfred:partial-move-err-msg, r=estebankMazdak Farrokhzad-10/+10
Add better error message for partial move closes #56657 r? @davidtwco
2019-02-23Improve parsing diagnostic for negative supertrait boundsHoàng Đức Hiếu-0/+72
2019-02-22#58658 bless after line split for tidyPatrick McCarter-5/+5
2019-02-22tidy line length override #58617Patrick McCarter-0/+1
2019-02-22Change byte align message wording #58617Patrick McCarter-2/+2
2019-02-22Invalid byte alignment expected/provided in message #58617Patrick McCarter-5/+6
2019-02-22Switch from error patterns to `//~ ERROR` markers.Felix S. Klock II-8/+11
AFAICT, we do not have the same const-eval issues that we used to when rust-lang/rust#23926 was filed. (Probably because of the switch to miri for const-evaluation.)
2019-02-22Make target pointer-width specific variants of (very old) ↵Felix S. Klock II-4/+13
huge-array-simple.rs test. (and now unignore the test since it shouldn't break tests of cross-compiles anymore.)