summary refs log tree commit diff
path: root/src/test
AgeCommit message (Collapse)AuthorLines
2019-04-10Update ui testLzu Tao-1/+1
2019-04-08Move rustdoc-js testing into compiletestGuillaume Gomez-0/+1
2019-04-08Rename rustdoc js test suitesGuillaume Gomez-17/+17
2019-04-08Add rustdoc JS non-std testsGuillaume Gomez-0/+8
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-04-02Revert "Allow a dirty MirBuilt for make_extern and make_method_extern"Josh Stone-2/+2
This reverts commit b4a6f597934f16f89e27058a32a514c9572f148f.
2019-04-02Permit unwinding through FFI by defaultMark Rousskov-0/+2
See #58794 for context.
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-70/+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-8/+6
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-62/+19
2019-02-25Restrict value in key-value attributes to literalsVadim Petrochenkov-13/+72
2019-02-25Rollup merge of #58725 - jamwt:fix-27949, r=CentrilMazdak Farrokhzad-0/+41
Test that binop subtyping in rustc_typeck fixes #27949
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-25Test that binop subtyping in rustc_typeck fixes #27949Jamie Turner-0/+41
2019-02-25Auto merge of #57609 - matthewjasper:more-restrictive-match, r=pnkfelixbors-361/+441
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/+45
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/+75
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 #58642 - tspiteri:intra-rustdoc-prim-method, r=GuillaumeGomezMazdak Farrokhzad-0/+3
rustdoc: support methods on primitives in intra-doc links Fixes #58598.
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/+830
Add generic simd saturated add/sub intrinsics r? @eddyb
2019-02-24Auto merge of #58232 - ljedrz:HirIdification_continued, r=Zoxcbors-3/+3
HirId-ify intravisit A big step towards https://github.com/rust-lang/rust/pull/57578. This affects mostly `hir::{collector, intravisit}` and `rustc::lint`.
2019-02-23rustdoc: support methods on primitives in intra-doc linksTrevor Spiteri-0/+3
2019-02-23Use E0724 instead of E0723 as an error codegnzlbg-2/+2
2019-02-23Fix attribute checkgnzlbg-2/+3
2019-02-23Use pattern to match attributesgnzlbg-9/+5
2019-02-23Correct error messagegnzlbg-3/+3
2019-02-23Implement ffi_returns_twice attributegnzlbg-0/+48