summary refs log tree commit diff
path: root/src/test/run-pass
AgeCommit message (Collapse)AuthorLines
2018-10-04Do not put noalias annotations by defaultSimonas Kazlauskas-0/+33
This will be re-enabled sooner or later depending on results of further investigation. Fixes #54462
2018-07-30Auto merge of #52823 - RalfJung:test, r=eddybbors-2/+21
invalid_const_promotion: check if we get the right signal r? @eddyb
2018-07-29invalid_const_promotion: check if we get the right signalRalf Jung-2/+21
2018-07-27Add the -Zcrate-attr=foo nightly rustc flag to inject crate attributesPietro Albini-0/+21
2018-07-26Rollup merge of #52635 - yodaldevoid:issue_18804, r=oli-obkMark Rousskov-0/+43
Fix #[linkage] propagation though generic functions Fixes #18804 In the non-local branch of `get_static` (where the fix was implemented) `span_fatal` had to be replaced with `bug!` as we have no span in that case.
2018-07-26Rollup merge of #52558 - wesleywiser:ice_melting, r=estebankMark Rousskov-0/+106
Add tests for ICEs which no longer repro Adds tests for some ICEs which no longer repro and closes the associated issues.
2018-07-25Place the ignore comments in the correct file for test issue-18804Gabriel Smith-3/+3
Signed-off-by: Gabriel Smith <ga29smith@gmail.com>
2018-07-24Disable regression test for issue #18804 on Emscripten and AsmjsGabriel Smith-0/+3
The Emscripten compiler does not support weak symbols at the moment. Signed-off-by: Gabriel Smith <ga29smith@gmail.com>
2018-07-24Add regression test for issue #18804Gabriel Smith-0/+40
Signed-off-by: Gabriel Smith <ga29smith@gmail.com>
2018-07-23Implement 2015 vs 2018 `?` kleene op + testmark-47/+2
2018-07-23Add run-pass test for #44005Wesley Wiser-0/+39
Closes #44005
2018-07-23Add test for #33264Wesley Wiser-0/+39
Closes #33264
2018-07-23Add tests for #34784Wesley Wiser-0/+28
Closes #34784
2018-07-23Auto merge of #50494 - F001:as_cell, r=alexcrichtonbors-0/+21
Implement rfc 1789: Conversions from `&mut T` to `&Cell<T>` I'm surprised that RFC 1789 has not been implemented for several months. Tracking issue: https://github.com/rust-lang/rust/issues/43038 Please note: when I was writing tests for `&Cell<[i32]>`, I found it is not easy to get the length of the contained slice. So I designed a `get_with` method which might be useful for similar cases. This method is not designed in the RFC, and it certainly needs to be reviewed by core team. I think it has some connections with `Cell::update` https://github.com/rust-lang/rust/issues/50186 , which is also in design phase.
2018-07-23use inherent method insteadF001-3/+2
2018-07-23Auto merge of #52571 - oli-obk:promotion_abort, r=nagisabors-0/+38
Abort if a promoted fails to be const evaluable and its runtime checks didn't trigger r? @eddyb cc @RalfJung @nagisa cc https://github.com/rust-lang/rust/issues/49760
2018-07-22Use correct exclusion commentOliver Schneider-1/+2
2018-07-21don't spawn processes on wasmOliver Schneider-0/+2
2018-07-21Rollup merge of #52527 - ljedrz:cleanup_13973, r=oli-obkkennytm-10/+0
Remove duplicate E0396 tests Resolves FIXME #13973 (erroneously marked as #13972). A test for E0396 already exists in `test/ui/const-deref-ptr.rs`.
2018-07-21Rollup merge of #52526 - ljedrz:cleanup_18800, r=alexcrichtonkennytm-1/+0
Enable run-pass/sepcomp-lib-lto.rs on Android #18800 is fixed, so it should be safe to restore this test.
2018-07-20Add trailing newlineOliver Schneider-1/+1
2018-07-20Add testOliver Schneider-0/+35
2018-07-20Auto merge of #52498 - oli-obk:const_prop, r=nikomatsakisbors-1/+6
Const propagate casts fixes #49760 So... This fixes the original issue about the missing warnings. But our test suite contains fun things like ```rust fn foo() {} assert_eq!(foo as i16, foo as usize as i16); ``` Which, will result in > a raw memory access tried to access part of a pointer value as raw bytes on both sides of the assertion. Because well... that's exactly what's going on! We're ripping out 16 bits of a pointer.
2018-07-20Remove duplicate E0396 testsljedrz-10/+0
2018-07-19Enable run-pass/sepcomp-lib-lto.rs on Androidljedrz-1/+0
2018-07-18Const-propagate castsOliver Schneider-1/+6
2018-07-18Adjust run pass test to stricter existential type rulesOliver Schneider-22/+3
2018-07-18Implement existential typesOliver Schneider-0/+113
2018-07-18revert DerefF001-1/+1
2018-07-17code style fixesF001-2/+3
2018-07-17impl `Deref` instead of `Index`F001-0/+1
2018-07-17remove "get_with" methodF001-2/+0
2018-07-17implement rfc 1789F001-0/+22
2018-07-15Auto merge of #52348 - oli-obk:bugfix, r=petrochenkovbors-1/+5
Reach the body of functions returning `impl Trait` but don't treat it as public fixes #52128 r? @pnkfelix cc @eddyb
2018-07-13Use the correct visibilityOliver Schneider-1/+5
2018-07-13Fix some RangeInclusive test cases.kennytm-10/+19
2018-07-12Auto merge of #52089 - eddyb:issue-51907, r=nagisabors-0/+26
rustc_codegen_llvm: replace the first argument early in FnType::new_vtable. Fixes #51907 by removing the vtable pointer before the `ArgType` is even created. This allows any ABI to support trait object method calls, regardless of how it passes `*dyn Trait`. r? @nikomatsakis
2018-07-11Rollup merge of #51952 - petrochenkov:transmark, r=alexcrichtonMark Rousskov-27/+0
hygiene: Decouple transparencies from expansion IDs And remove fallback to parent modules during resolution of names in scope. This is a breaking change for users of unstable macros 2.0 (both procedural and declarative), code like this: ```rust #![feature(decl_macro)] macro m($S: ident) { struct $S; mod m { type A = $S; } } fn main() { m!(S); } ``` or equivalent ```rust #![feature(decl_macro)] macro m($S: ident) { mod m { type A = $S; } } fn main() { struct S; m!(S); } ``` stops working due to module boundaries being properly enforced. For proc macro derives this is still reported as a compatibility warning to give `actix_derive`, `diesel_derives` and `palette_derive` time to fix their issues. Fixes https://github.com/rust-lang/rust/issues/50504 in accordance with [this comment](https://github.com/rust-lang/rust/issues/50504#issuecomment-399764767).
2018-07-11Auto merge of #51966 - alexcrichton:llvm7, r=michaelwoeristerbors-14/+32
Upgrade to LLVM's master branch (LLVM 7) ### Current status ~~Blocked on a [performance regression](https://github.com/rust-lang/rust/pull/51966#issuecomment-402320576). The performance regression has an [upstream LLVM issue](https://bugs.llvm.org/show_bug.cgi?id=38047) and has also [been bisected](https://reviews.llvm.org/D44282) to an LLVM revision.~~ Ready to merge! --- This commit upgrades the main LLVM submodule to LLVM's current master branch. The LLD submodule is updated in tandem as well as compiler-builtins. Along the way support was also added for LLVM 7's new features. This primarily includes the support for custom section concatenation natively in LLD so we now add wasm custom sections in LLVM IR rather than having custom support in rustc itself for doing so. Some other miscellaneous changes are: * We now pass `--gc-sections` to `wasm-ld` * The optimization level is now passed to `wasm-ld` * A `--stack-first` option is passed to LLD to have stack overflow always cause a trap instead of corrupting static data * The wasm target for LLVM switched to `wasm32-unknown-unknown`. * The syntax for aligned pointers has changed in LLVM IR and tests are updated to reflect this. * ~~The `thumbv6m-none-eabi` target is disabled due to an [LLVM bug][llbug]~~ Nowadays we've been mostly only upgrading whenever there's a major release of LLVM but enough changes have been happening on the wasm target that there's been growing motivation for quite some time now to upgrade out version of LLD. To upgrade LLD, however, we need to upgrade LLVM to avoid needing to build yet another version of LLVM on the builders. The revision of LLVM in use here is arbitrarily chosen. We will likely need to continue to update it over time if and when we discover bugs. Once LLVM 7 is fully released we can switch to that channel as well. [llbug]: https://bugs.llvm.org/show_bug.cgi?id=37382 cc #50543
2018-07-10Upgrade to LLVM's master branch (LLVM 7)Alex Crichton-14/+32
This commit upgrades the main LLVM submodule to LLVM's current master branch. The LLD submodule is updated in tandem as well as compiler-builtins. Along the way support was also added for LLVM 7's new features. This primarily includes the support for custom section concatenation natively in LLD so we now add wasm custom sections in LLVM IR rather than having custom support in rustc itself for doing so. Some other miscellaneous changes are: * We now pass `--gc-sections` to `wasm-ld` * The optimization level is now passed to `wasm-ld` * A `--stack-first` option is passed to LLD to have stack overflow always cause a trap instead of corrupting static data * The wasm target for LLVM switched to `wasm32-unknown-unknown`. * The syntax for aligned pointers has changed in LLVM IR and tests are updated to reflect this. * The `thumbv6m-none-eabi` target is disabled due to an [LLVM bug][llbug] Nowadays we've been mostly only upgrading whenever there's a major release of LLVM but enough changes have been happening on the wasm target that there's been growing motivation for quite some time now to upgrade out version of LLD. To upgrade LLD, however, we need to upgrade LLVM to avoid needing to build yet another version of LLVM on the builders. The revision of LLVM in use here is arbitrarily chosen. We will likely need to continue to update it over time if and when we discover bugs. Once LLVM 7 is fully released we can switch to that channel as well. [llbug]: https://bugs.llvm.org/show_bug.cgi?id=37382
2018-07-10Auto merge of #52191 - SimonSapin:alloc_error_handler, r=alexcrichtonbors-0/+28
Implement #[alloc_error_handler] This to-be-stable attribute is equivalent to `#[lang = "oom"]`. It is required when using the `alloc` crate without the `std` crate. It is called by `handle_alloc_error`, which is in turned called by "infallible" allocations APIs such as `Vec::push`.
2018-07-09Add a test for the default allocation error hookSimon Sapin-0/+28
2018-07-09bump minimum LLVM version to 5.0gnzlbg-11/+0
2018-07-08Remove fallback to parent modules from lexical resolutionVadim Petrochenkov-27/+0
2018-07-06Rollup merge of #52058 - davidtwco:issue-51345, r=nikomatsakisMark Rousskov-0/+17
Use of unimplemented!() causing ICE with NLL Fixes #51345. r? @nikomatsakis
2018-07-07Add a test for Weak::new() not crashing for uninhabited typesSimon Sapin-0/+15
2018-07-06Auto merge of #52018 - flip1995:rfc2103, r=oli-obkbors-0/+31
Implementation of tool lints. Tracking issue: #44690
2018-07-06Auto merge of #51894 - mikhail-m1:8636, r=nikomatsakisbors-0/+33
fix for issue #8636 r? @nikomatsakis Fix #8636 also fixes #42291
2018-07-06rustc_codegen_llvm: replace the first argument early in FnType::new_vtable.Eduard-Mihai Burtescu-0/+26
2018-07-05fix for issue #8636Mikhail Modin-0/+33