about summary refs log tree commit diff
path: root/src/test/run-pass/issues
AgeCommit message (Collapse)AuthorLines
2019-07-27tests: Move run-pass tests with naming conflicts to uiVadim Petrochenkov-172/+0
2019-07-27tests: Move run-pass tests without naming conflicts to uiVadim Petrochenkov-20870/+0
2019-07-27tests: Add missing run-pass annotationsVadim Petrochenkov-0/+22
2019-07-24Stabilize the type_name intrinsic in core::anySteven Fackler-5/+4
Closes rust-lang/rfcs#1428
2019-07-13Auto merge of #62584 - eddyb:circular-math-is-hard, r=pnkfelixbors-0/+64
rustc_codegen_ssa: fix range check in codegen_get_discr. Fixes #61696, see https://github.com/rust-lang/rust/issues/61696#issuecomment-505473018 for more details. In short, I had wanted to use `x - a <= b - a` to check whether `x` is in `a..=b` (as it's 1 comparison instead of 2 *and* `b - a` is guaranteed to fit in the same data type, while `b` itself might not), but I ended up with `x - a + c <= b - a + c` instead, because `x - a + c` was the final value needed. That latter comparison is equivalent to checking that `x` is in `(a - c)..=b`, i.e. it also includes `(a - c)..a`, not just `a..=b`, so if `c` is not `0`, it will cause false positives. This presented itself as the non-niche ("dataful") variant sometimes being treated like a niche variant, in the presence of uninhabited variants (which made `c`, aka the index of the first niche variant, arbitrarily large). r? @nagisa, @rkruppe or @oli-obk
2019-07-12rustc_codegen_ssa: fix range check in codegen_get_discr.Eduard-Mihai Burtescu-0/+64
2019-07-11Remove feature gate `dropck_parametricity` completelyLzu Tao-8/+5
Therefore we also remove `#[unsafe_destructor_blind_to_params]` attribute completly.
2019-07-11Replace unsafe_destructor_blind_to_params with may_dangleLzu Tao-26/+16
2019-07-04Permit use of mem::uninitialized via allow(deprecated)Mark Rousskov-0/+1
2019-06-30Fix run-pass testsvarkor-1/+3
2019-06-20rustc_mir: support type parameters by printing them as `_`.Eduard-Mihai Burtescu-0/+19
2019-06-19Rollup merge of #61896 - eddyb:correct-self-ctor, r=petrochenkovMazdak Farrokhzad-9/+0
rustc_typeck: correctly compute `Substs` for `Res::SelfCtor`. Fixes #61882. r? @petrochenkov cc @varkor
2019-06-18rustc_typeck: correctly compute `Substs` for `Res::SelfCtor`.Eduard-Mihai Burtescu-9/+0
2019-06-17Make use of `ptr::null(_mut)` instead of casting zeroLzu Tao-5/+5
2019-06-12Deprecate ONCE_INITSteven Fackler-2/+2
Once::new() has been a stable const fn for a while now. Closes #61746
2019-06-05Added test suite.Alexander Regueiro-1/+1
2019-06-01Auto merge of #61394 - pietroalbini:rollup-lzugnb4, r=pietroalbinibors-0/+1
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-30Update ui and run-pass for ellipsis_inclusive_range_patterns lintmemoryruins-0/+1
2019-05-30Make the `type_name` intrinsic's output deterministicOliver Scherer-12/+55
2019-05-29Update run-pass test suite to use dynmemoryruins-167/+167
2019-05-20Auto merge of #60921 - cuviper:remove-mpsc_select, r=SimonSapinbors-35/+0
Remove the unstable and deprecated mpsc_select This removes macro `select!` and `std::sync::mpsc::{Handle, Select}`, which were all unstable and have been deprecated since 1.32. Closes #27800 r? @SimonSapin
2019-05-18Auto merge of #60386 - Goirad:sgx-ignore-tests, r=nikomatsakisbors-1/+12
Added ignore-sgx for appropriate tests in src/test These are all the tests that make sense to ignore when targeting fortanix-unknonw-sgx, at least in test/runpass. Other suites not yet covered.
2019-05-17Remove the unstable and deprecated mpsc_selectJosh Stone-35/+0
This removes macro `select!` and `std::sync::mpsc::{Handle, Select}`, which were all unstable and have been deprecated since 1.32.
2019-05-16Added ignore-sgx for appropriate testsDario Gonzalez-1/+12
2019-05-12Remove feature(nll) when compare mode is sufficientMatthew Jasper-3/+0
2019-05-04Rollup merge of #60513 - chrisvittal:remove-borrowck-compare, r=matthewjasperMazdak Farrokhzad-3/+0
Remove -Z borrowck=compare flag This is the start of the work that needs to be done on #59193. It just removes the flag and updates the tests. r? @matthewjasper
2019-05-03Update testsChristopher Vittal-3/+0
2019-04-30Rename to RUSTC_LOGYuki OKUSHI-1/+1
2019-04-25ignore-tidy-filelength on all files with greater than 3000 linesvarkor-0/+4
2019-04-23Fix regression in line ending testvarkor-2/+2
2019-04-22Remove double trailing newlinesvarkor-20/+2
2019-04-22update tests for migrate mode by defaultMatthew Jasper-6/+6
2019-04-08Add must_use annotations to Result::is_ok and is_errAlex Gaynor-1/+1
2019-03-31Fix stack overflow when generating debuginfo for 'recursive' typeAaron Hill-0/+8
By using 'impl trait', it's possible to create a self-referential type as follows: fn foo() -> impl Copy { foo } This is a function which returns itself. Normally, the signature of this function would be impossible to write - it would look like 'fn foo() -> fn() -> fn() ...' e.g. a function which returns a function, which returns a function... Using 'impl trait' allows us to avoid writing this infinitely long type. While it's useless for practical purposes, it does compile and run However, issues arise when we try to generate llvm debuginfo for such a type. All 'impl trait' types (e.g. ty::Opaque) are resolved when we generate debuginfo, which can lead to us recursing back to the original 'fn' type when we try to process its return type. To resolve this, I've modified debuginfo generation to account for these kinds of weird types. Unfortunately, there's no 'correct' debuginfo that we can generate - 'impl trait' does not exist in debuginfo, and this kind of recursive type is impossible to directly represent. To ensure that we emit *something*, this commit emits dummy debuginfo/type names whenever it encounters a self-reference. In practice, this should never happen - it's just to ensure that we can emit some kind of debuginfo, even if it's not particularly meaningful Fixes #58463
2019-03-30Fix more testsFabian Drinck-2/+0
2019-03-16Rollup merge of #59025 - aoikonomopoulos:issue-57924, r=varkorkennytm-0/+9
Fix generic argument lookup for Self Rewrite the SelfCtor early and use the replacement Def when calculating the path_segs. Note that this also changes which def is seen by the code that computes user_self_ty and is_alias_variant_ctor; I don't see a immediate issue with that, but I'm not 100% clear on the implications. Fixes #57924 r? @eddyb
2019-03-14Moved issue tests to subdirs and normalised names.Alexander Regueiro-47/+318
2019-03-13Fix generic argument lookup for SelfAngelos Oikonomopoulos-0/+9
Rewrite the SelfCtor early and use the replacement Def when calculating the path_segs. Note that this also changes which def is seen by the code that computes user_self_ty and is_alias_variant_ctor; I don't see a immediate issue with that, but I'm not 100% clear on the implications. Fixes #57924
2019-03-04Regression test for #58435.Felix S. Klock II-0/+17
2019-02-26Normalize the type Self resolves to in an implAngelos Oikonomopoulos-0/+13
This is required at the very least in order to evaluate associated constants for arrays (see #58212).
2019-02-25Test that binop subtyping in rustc_typeck fixes #27949Jamie Turner-0/+41
2019-02-10tests: doc commentsAlexander Regueiro-1/+1
2019-01-26Replace deprecated ATOMIC_INIT constsMark Rousskov-2/+2
2019-01-04implement a hack to make traitobject 0.1.0 compileAriel Ben-Yehuda-47/+0
2018-12-25Remove licensesMark Rousskov-7910/+6
2018-12-25Auto merge of #56962 - nivkner:fixme_fixup4, r=pnkfelixbors-5/+56
address some FIXME whose associated issues were marked as closed part of #44366
2018-12-21Stabilize #[repr(packed(N))]Taylor Cramer-1/+0
2018-12-20Auto merge of #54125 - varkor:less-conservative-uninhabitedness-check, ↵bors-0/+1
r=nikomatsakis Less conservative uninhabitedness check Extends the uninhabitedness check to structs, non-empty enums, tuples and arrays. Pulled out of #47291 and #50262. Fixes https://github.com/rust-lang/rust/issues/54586. r? @nikomatsakis
2018-12-19Rollup merge of #56772 - ↵Pietro Albini-0/+5
pnkfelix:issue-54153-linkage-sometimes-requires-optimizations, r=nikic fix issue 54153 by not testing issue-18804 on Windows nor OS X. Fix #54153
2018-12-19FIXME(31702) remove fixme, move auxiliaries to the right place and fix ↵Niv Kaminer-5/+56
hr_lifetime_in_assoc_type warning