about summary refs log tree commit diff
path: root/src/test/run-pass
AgeCommit message (Collapse)AuthorLines
2019-06-09Auto merge of #61229 - Centril:stabilize-repr_align_enum, r=nagisabors-1/+0
Stabilize #![feature(repr_align_enum)] in Rust 1.37.0 On an `enum` item, you may now write: ```rust #[repr(align(X))] enum Foo { // ... } ``` This has equivalent effects to first defining: ```rust #[repr(align(X))] struct AlignX<T>(T); ``` and then using `AlignX<Foo>` in `Foo`'s stead. r? @nagisa
2019-06-10test more variants of enum-int-castingRalf Jung-2/+11
2019-06-09move stray run-pass const tests into const/ folderRalf Jung-0/+0
2019-06-09Add test for raw byte CRLF translationIgor Matuszewski-0/+3
2019-06-09Fix inaccurate comments in '?' Kleene operator tests.Mazdak Farrokhzad-26/+60
2019-06-09Update tests since ? macro op is supported on 2015.Mazdak Farrokhzad-0/+33
2019-06-09Rollup merge of #61660 - petrochenkov:nocusta, r=CentrilMazdak Farrokhzad-406/+1
Minimize use of `#![feature(custom_attribute)]` Some preparations before resurrecting https://github.com/rust-lang/rust/pull/57921.
2019-06-09Rollup merge of #61658 - RalfJung:const-tests, r=oli-obkMazdak Farrokhzad-72/+59
remove useless ident() functions in const tests and replace the useful ones by black_box (with a comment) r? @oli-obk
2019-06-08Move some run-pass attribute tests to uiVadim Petrochenkov-327/+0
2019-06-08Introduce `#[rustc_dummy]` attribute and use it in testsVadim Petrochenkov-132/+114
Unlike other built-in attributes, this attribute accepts any input
2019-06-08Turn `#[allocator]` into a built-in attribute and rename it to ↵Vadim Petrochenkov-59/+0
`#[rustc_allocator]`
2019-06-08Remove unused `#![feature(custom_attribute)]`sVadim Petrochenkov-2/+1
2019-06-08extra paranoid modeRalf Jung-3/+5
2019-06-08black-box the fn ptr, not the resultRalf Jung-3/+3
2019-06-08remove useless ident() functions in const tests and replace the useful ones ↵Ralf Jung-72/+57
by black_box (with a comment)
2019-06-08Auto merge of #61620 - SimonSapin:as_cell, r=RalfJungbors-1/+0
Stabilize Cell::from_mut and as_slice_of_cells FCP: https://github.com/rust-lang/rust/issues/43038#issuecomment-499900463
2019-06-07Add `const`-ness tests for `i32::signum`Dylan MacKenzie-2/+12
2019-06-07Stabilize Cell::from_mut and as_slice_of_cellsSimon Sapin-1/+0
FCP: https://github.com/rust-lang/rust/issues/43038#issuecomment-499900463
2019-06-06Add nested 'yield' expression to weird expressions testAaron Hill-0/+9
2019-06-06Auto merge of #61373 - tmandry:emit-storagedead-along-unwind, r=eddybbors-0/+44
Emit StorageDead along unwind paths for generators Completion of the work done in #60840. That PR made a change to implicitly consider a local `StorageDead` after Drop, but that was incorrect for DropAndReplace (see also #61060 which tried to fix this in a different way). This finally enables the optimization implemented in #60187. r? @eddyb cc @Zoxc @cramertj @RalfJung
2019-06-05Reblessed tests.Alexander Regueiro-1/+1
2019-06-05Added test suite.Alexander Regueiro-1/+1
2019-06-05Aggregation of drive-by cosmetic changes.Alexander Regueiro-4/+5
2019-06-05Auto merge of #61498 - TankhouseAle:const-fn-type-name, r=oli-obkbors-0/+37
Add "type_name" support in emulate_intrinsic() I did some dumb Git things and deleted my original fork repo semi-accidentally (but probably for the best as I'd messed up the history.) This is the same issue as #61399, which was obviously auto-closed, to be clear.
2019-06-04Add test for DropAndReplace bugTyler Mandry-0/+44
2019-06-04Fix integer overflow in rotate_leftLzu Tao-1/+35
2019-06-03Re-add test fileTankhouseAle-0/+37
2019-06-01Rollup merge of #61364 - lzutao:stabilize-reverse_bits, r=CentrilMazdak Farrokhzad-1/+1
Stabilize reverse_bits feature FCP done in https://github.com/rust-lang/rust/issues/48763#issuecomment-497349379 Closes #48763 r? @Centril
2019-06-01Rollup merge of #60729 - matthewjasper:leak-after-into, r=nikomatsakisMazdak Farrokhzad-1/+91
Expand dynamic drop tests for cases in #47949 Adds test cases for #47949
2019-06-01Auto merge of #61394 - pietroalbini:rollup-lzugnb4, r=pietroalbinibors-1/+24
Rollup of 11 pull requests Successful merges: - #60897 (error: remove StringError from Debug output) - #61304 (Speed up Azure CI installing Windows dependencies) - #61319 (Swap order of `unsafe async fn` to `async unsafe fn`) - #61342 (Set ellipsis_inclusive_range_patterns lint to warn) - #61344 (Add regression test for const generics ICE) - #61359 (Fix links in Deref documentation) - #61363 (Stabilize iter_nth_back feature) - #61369 (Fixed lifetime misspelling) - #61372 (Migrate some books to mdbook version 0.2) - #61374 (Explicitly suggest 'type_ascription' feature) - #61382 (Fixed a typo in core::convert::AsMut) Failed merges: r? @ghost
2019-05-31test: support both (`legacy` and `v0`) choices of mangling.Eduard-Mihai Burtescu-1/+16
2019-05-31rustc_codegen_utils: don't ignore `Ctor` path components in symbols.Eduard-Mihai Burtescu-0/+12
2019-05-31Stabilize reverse_bits featureLzu Tao-1/+1
2019-05-30Expand dynamic drop tests for cases in #47949Matthew Jasper-1/+91
2019-05-30Update ui and run-pass for ellipsis_inclusive_range_patterns lintmemoryruins-1/+24
2019-05-30Make the `type_name` intrinsic's output deterministicOliver Scherer-13/+56
2019-05-29Auto merge of #61203 - memoryruins:bare_trait_objects, r=Centrilbors-502/+502
Warn on bare_trait_objects by default The `bare_trait_objects` lint is set to `warn` by default. Most ui tests have been updated to use `dyn` to avoid creating noise in stderr files. r? @Centril cc #54910
2019-05-29Rollup merge of #60542 - timvermeulen:step_sub_usize, r=scottmcmMazdak Farrokhzad-0/+4
Add Step::sub_usize Required for #54054. I'm aware that the `Step` trait needs a rework, but this still seems like a reasonable addition? This currently doesn't compile because Chalk contains a type that implement this trait, and this is a breaking change. How can that be fixed?
2019-05-29Update run-pass test suite to use dynmemoryruins-502/+502
2019-05-28Changes the type `mir::Mir` into `mir::Body`Claude-Alban RANÉLY-VERGÉ-DÉPRÉ-4/+4
The commit should have changed comments as well. At the time of writting, it passes the tidy and check tool. Revisions asked by eddyb : - Renamed of all the occurences of {visit/super}_mir - Renamed test structures `CachedMir` to `Cached` Fixing the missing import on `AggregateKind`
2019-05-27Stabilize repr_align_enum in 1.37.0.Mazdak Farrokhzad-1/+0
2019-05-25Rollup merge of #61138 - varkor:async-await-tests, r=cramertjMazdak Farrokhzad-451/+0
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-25Add Step::sub_usizeTim Vermeulen-0/+4
2019-05-24Move async/await tests to test/ui/async-awaitvarkor-451/+0
2019-05-24Deprecate `FnBox`. `Box<dyn FnOnce()>` can be called directly, since 1.35Simon Sapin-0/+1
FCP completion: https://github.com/rust-lang/rust/issues/28796#issuecomment-439731515
2019-05-22Auto merge of #59445 - alexreg:ban-multi-trait-objects-via-aliases, r=oli-obkbors-93/+0
Ban multi-trait objects via trait aliases Obviously, multi-trait objects are not normally supported, so they should not be supported via trait aliases. This has been factored out from the previous PR https://github.com/rust-lang/rust/pull/55994 (see point 1). r? @Centril CC @nikomatsakis ------------------ ### RELNOTES: We now allow `dyn Send + fmt::Debug` with equivalent semantics to `dyn fmt::Debug + Send`. That is, the order of the mentioned traits does not matter wrt. principal/not-principal traits. This is a small change that might deserve a mention in the blog post because it is a language change but most likely not. See https://github.com/rust-lang/rust/blob/ce2ee305f9165c037ecddddb5792588a15ff6c37/src/test/ui/traits/wf-trait-object-reverse-order.rs. // @Centril
2019-05-21Auto merge of #60950 - taiki-e:arbitrary_self_types-tests, r=Centrilbors-988/+0
Move arbitrary self types's tests into ui/self https://github.com/rust-lang/rust/pull/60944#discussion_r285362006 r? @Centril
2019-05-20Update tests.Alexander Regueiro-93/+0
2019-05-20Auto merge of #60445 - RalfJung:maybe-uninit, r=Centrilbors-1/+1
stabilize core parts of MaybeUninit and deprecate mem::uninitialized in the future (1.40.0). This is part of implementing https://github.com/rust-lang/rfcs/pull/1892. Also expand the documentation a bit. This type is currently primarily useful when dealing with partially initialized arrays. In libstd, it is used e.g. in `BTreeMap` (with some unstable APIs that however can all be replaced, less ergonomically, by stable ones). What we stabilize should also be enough for `SmallVec` (Cc @bluss). Making this useful for structs requires https://github.com/rust-lang/rfcs/pull/2582 or a commitment that references to uninitialized data are not insta-UB.
2019-05-20stabilize core parts of MaybeUninit and deprecate mem::uninitialized in the ↵Ralf Jung-1/+1
future Also expand the documentation a bit