about summary refs log tree commit diff
path: root/src/test/run-pass
AgeCommit message (Collapse)AuthorLines
2018-06-26Auto merge of #49469 - Nokel81:allow-irrefutable-let-patterns, r=nikomatsakisbors-0/+21
Implementation of RFC 2086 - Allow Irrefutable Let patterns This is the set of changes for RFC2086. Tracking issue #44495. Rendered [here](https://github.com/rust-lang/rfcs/pull/2086)
2018-06-26Auto merge of #50966 - leodasvacas:self-in-where-clauses-is-not-object-safe, ↵bors-37/+0
r=nikomatsakis `Self` in where clauses may not be object safe Needs crater, virtually certain to cause regressions. In #50781 it was discovered that our object safety rules are not sound because we allow `Self` in where clauses without restrain. This PR is a direct fix to the rules so that we disallow methods with unsound where clauses. This currently uses hard error to measure impact, but we will want to downgrade it to a future compat error. Part of #50781. r? @nikomatsakis
2018-06-25`Self` in where clauses may not be object safeleonardo.yvens-37/+0
This is virtually certain to cause regressions, needs crater. In #50781 it was discovered that our object safety rules are not sound because we allow `Self` in where clauses without restrain. This PR is a direct fix to the rules so that we disallow methods with unsound where clauses. This currently uses hard error to measure impact, but we will want to downgrade it to a future compat error. Fixes #50781. r? @nikomatsakis
2018-06-23add `dyn` to display of dynamic (trait) type namesZack M. Davis-1/+1
The `dyn Trait` syntax was stabilized in 199ee327. Resolves #49277.
2018-06-23Fix an ICE when matching over const slicesvarkor-0/+23
2018-06-21Async methodsTaylor Cramer-2/+8
2018-06-21Parse `unsafe async fn` instead of `async unsafe fn`Taylor Cramer-0/+13
2018-06-21async await desugaring and testsTaylor Cramer-0/+133
2018-06-20Rename PathParameter(s) to GenericArg(s)varkor-2/+2
2018-06-18Rename OOM to allocation errorSimon Sapin-7/+11
The acronym is not descriptive unless one has seen it before. * Rename the `oom` function to `handle_alloc_error`. It was **stabilized in 1.28**, so if we do this at all we need to land it this cycle. * Rename `set_oom_hook` to `set_alloc_error_hook` * Rename `take_oom_hook` to `take_alloc_error_hook` Bikeshed: `alloc` v.s. `allocator`, `error` v.s. `failure`
2018-06-18Auto merge of #51414 - oli-obk:impl_trait_type_def, r=pnkfelixbors-2/+88
Add existential type definitions Note: this does not allow creating named existential types, it just desugars `impl Trait` to a less (but still very) hacky version of actual `existential type` items. r? @nikomatsakis
2018-06-16rustc_codegen_llvm: don't treat i1 as signed, even for #[repr(i8)] enums.Eduard-Mihai Burtescu-0/+27
2018-06-15fix `allow(irrefutable_let_patterns)`Niko Matsakis-2/+1
2018-06-13TidyOliver Schneider-1/+1
2018-06-13Various cleanupsOliver Schneider-0/+32
2018-06-11Remove some '#[feature]' attributes for stabilized featuresSimon Sapin-5/+2
2018-06-11Remove some unneeded castsSimon Sapin-2/+2
2018-06-11Replace `impl GlobalAlloc for Global` with a set of free functionsMike Hommey-3/+3
2018-06-11Remove alloc::Opaque and use *mut u8 as pointer type for GlobalAllocMike Hommey-8/+8
2018-06-10Enable fall through past $:lifetime matcherDavid Tolnay-0/+43
2018-06-10Auto merge of #51196 - Havvy:remove-keywords, r=petrochenkovbors-0/+22
Implement RFC 2421, 'Keyword unreservations (pure, sizeof, alignof, offsetof) On my local machine I was getting failures in `test/ui-fulldeps`, but I was also getting them again after reverting the change, so I'm hoping that this works. I removed the test because that's what the other PR that unreserved a keyword did and I feel that it doesn't make sense/keep value to keep a test for something removed years ago.
2018-06-10Auto merge of #51320 - tmccombs:step-by, r=SimonSapinbors-3/+0
Stabilize Iterator::step_by Fixes #27741
2018-06-09Test keyword unreservationsHavvy-0/+22
2018-06-09Auto merge of #51400 - xfix:patch-6, r=kennytmbors-16/+19
Increase number of usages of `u8` in weird expressions u8 test
2018-06-08Rollup merge of #51276 - Havvy:dyn-trait-send-send, r=nikomatsakisMark Rousskov-0/+53
Dedup auto traits in trait objects. Fixes #47010 Note that the test file `run-pass/trait-object-auto-dedup.rs` passes before and after this change. It's the `ui` test that changed from compiling to not compiling. Which does make this a breaking change, but I cannot imagine anybody actually being broken by it.
2018-06-08Rollup merge of #50143 - petrochenkov:mexuniq, r=nikomatsakisMark Rousskov-2/+17
Add deprecation lint for duplicated `macro_export`s cc https://github.com/rust-lang/rust/issues/35896#issuecomment-381370556
2018-06-08rename `irrefutable_let_pattern` to `irrefutable_let_patterns`Niko Matsakis-4/+4
2018-06-08Add a sanity test for nesting other items inside the existential typeOliver Schneider-0/+22
2018-06-07Add existential type definitonsOliver Schneider-2/+34
2018-06-07Revert "Auto merge of #49719 - mark-i-m:no_sep, r=petrochenkov"Pietro Albini-6/+23
This reverts commit d6ba1b9b021c408fcad60ee52acf8af5e1b2eb00, reversing changes made to 8de5353f75dcde04abe947e0560dc5edd861cf3a.
2018-06-06Auto merge of #51263 - cramertj:futures-in-core, r=aturonbors-0/+95
Add Future and task system to the standard library This adds preliminary versions of the `std::future` and `std::task` modules in order to unblock development of async/await (https://github.com/rust-lang/rust/issues/50547). These shouldn't be considered as final forms of these libraries-- design questions about the libraries should be left on https://github.com/rust-lang/rfcs/pull/2418. Once that RFC (or a successor) is merged, these APIs will be adjusted as necessary. r? @aturon
2018-06-06Add Future and task system to the standard libraryTaylor Cramer-0/+95
2018-06-06Increase number of usages of `u8` in weird expressions u8 testKonrad Borowski-16/+19
2018-06-05Rollup merge of #51358 - barzamin:tests-39963, r=oli-obkMark Simulacrum-0/+29
Tests that #39963 is fixed on MIR borrowck As title. fixes #39963
2018-06-05Implementation of RFC 2086 - Allow Irrefutable Let patternsSebastian Malton-0/+22
2018-06-04tests that #39963 is fixed on MIR borrowckErin Moon-0/+29
2018-06-04test: Ignore some problematic tests on sparc and sparc64John Paul Adrian Glaubitz-0/+4
2018-06-04Auto merge of #51328 - oli-obk:no_union_promotion, r=eddybbors-48/+11
Do not promote union field accesses r? @eddyb technically a breaking change, but the code errored on the previous stable and produces UB + a warning on the current stable. I don't think we need a crater run in that case.
2018-06-03Deduplicate and fix a testOliver Schneider-48/+11
2018-06-03Ignore i128 test on asmjsLinus Färnstrand-4/+9
2018-06-02Stabilize Iterator::step_byThayne McCombs-3/+0
Fixes #27741
2018-06-03Pass literal through black_boxLinus Färnstrand-4/+8
2018-06-02Add test for const endianess conversionLinus Färnstrand-0/+23
2018-06-01Dedup auto traits in trait objectsHavvy-0/+53
2018-06-01Auto merge of #51181 - mbrubeck:prelude, r=petrochenkovbors-0/+49
Add std/core to prelude if extern_prelude enabled Fixes #50605
2018-05-31Add test for intrinsics::bswapLinus Färnstrand-0/+23
2018-05-31Add std/core to prelude if extern_prelude enabledMatt Brubeck-0/+49
Fixes #50605
2018-05-30rustc: don't visit lifetime parameters through visit_lifetime.Eduard-Mihai Burtescu-0/+17
2018-05-30Prohibit duplicate `macro_export`sVadim Petrochenkov-2/+17
2018-05-30Auto merge of #50880 - glandium:oom, r=SimonSapinbors-7/+7
OOM handling changes As discussed in https://github.com/rust-lang/rust/issues/49668#issuecomment-384893456 and subsequent. This does have codegen implications. Even without the hooks, and with a handler that ignores the arguments, the compiler doesn't eliminate calling `rust_oom` with the `Layout`. Even if it managed to eliminate that, with the hooks, I don't know if the compiler would be able to figure out it can skip it if the hook is never set. A couple implementation notes: - I went with explicit enums rather than bools because it makes it clearer in callers what is being requested. - I didn't know what `feature` to put the hook setting functions behind. (and surprisingly, the compile went through without any annotation on the functions) - There's probably some bikeshedding to do on the naming. Cc: @Simonsapin, @sfackler