| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2023-01-11 | Move /src/test to /tests | Albert Larsan | -1650/+0 | |
| 2022-12-24 | ignore some targets | Ralf Jung | -0/+2 | |
| 2022-12-22 | abort immediately on bad mem::zeroed/uninit | Ralf Jung | -16/+34 | |
| 2022-12-13 | Avoid rendering empty annotations | Oli Scherer | -16/+0 | |
| 2022-12-13 | Make some diagnostics not depend on the source of what they reference being ↵ | Oli Scherer | -12/+16 | |
| available | ||||
| 2022-10-22 | Stabilize arbitrary_enum_discriminant, take 2 | Deadbeef | -1/+1 | |
| 2022-10-07 | make const_err a hard error | Ralf Jung | -3/+1 | |
| 2022-10-05 | change might_permit_raw_init to fully detect LLVM UB, but not more than that | Ralf Jung | -82/+168 | |
| 2022-09-28 | rustc_safe_intrinsic: Add UI test | Arthur Cohen | -0/+25 | |
| 2022-09-27 | core: Mark all safe intrinsics with #[rustc_safe_intrinsic] | Arthur Cohen | -0/+1 | |
| 2022-09-27 | attributes: Add #[rustc_safe_intrinsic] builtin | Arthur Cohen | -0/+6 | |
| 2022-09-23 | Rollup merge of #102134 - flba-eb:master, r=bjorn3 | Matthias Krüger | -1/+0 | |
| Detect panic strategy using `rustc --print cfg` Instead of relying on a command line parameter, detect if a target is able to unwind or not. Ignore tests that require unwinding on targets that don't support it. I did not find any place where the removed parameter has been used, but it feels a bit risky as I'm new to this test framework. r? bjorn3 | ||||
| 2022-09-23 | Restore ignore tag | Florian Bartels | -1/+0 | |
| This test case actually requires std::process. | ||||
| 2022-09-21 | Set 'exec-env:RUST_BACKTRACE=0' in const-eval-select tests | Aaron Hill | -2/+4 | |
| This allows the tests to pass even if the user has RUST_BACKTRACE set when running 'x.py' | ||||
| 2022-09-04 | Make `const_eval_select` a real intrinsic | Deadbeef | -30/+89 | |
| 2022-08-29 | Make the trait bound is not satisfied specify kind | Obei Sideg | -1/+1 | |
| 2022-08-14 | Point to argument if it's self type of unsatisfied projection predicate | Michael Goulet | -2/+4 | |
| 2022-08-08 | Adjust wording | Michael Goulet | -2/+2 | |
| 2022-08-07 | Implement special-cased projection error message for some common traits | Michael Goulet | -2/+2 | |
| 2022-07-30 | Rollup merge of #99862 - WaffleLapkin:type_mismatch_fix, r=compiler-errors | Dylan DPC | -2/+4 | |
| Improve type mismatch w/ function signatures This PR makes use of `note: expected/found` (instead of labeling types in labels) in type mismatch with function signatures. Pros: it's easier to compare the signatures, cons: the error is a little more verbose now. This is especially nice when - The signatures differ in a small subset of parameters (same parameters are elided) - The difference is in details, for example `isize` vs `usize` (there is a better chance that the types align) Also this PR fixes the inconsistency in variable names in the edited code (`expected` and `found`). A zulip thread from which this pr started: [[link]](https://rust-lang.zulipchat.com/#narrow/stream/147480-t-compiler.2Fwg-diagnostics/topic/Type.20error.20regression.3F.2E.2E.2E/near/289756602). An example diagnostic: <table> <tr> <th>this pr</th> <th>nightly</th> </tr> <tr> <td> ```text error[E0631]: type mismatch in function arguments --> ./t.rs:4:12 | 4 | expect(&f); | ------ ^^ expected due to this | | | required by a bound introduced by this call ... 10 | fn f(_: isize, _: u8, _: Vec<u32>) {} | ---------------------------------- found signature defined here | = note: expected function signature `fn(usize, _, Vec<u64>) -> _` found function signature `fn(isize, _, Vec<u32>) -> _` note: required because of the requirements on the impl of `Trait` for `fn(isize, u8, Vec<u32>) {f}` --> ./t.rs:8:9 | 8 | impl<F> Trait for F where F: Fn(usize, u8, Vec<u64>) -> u8 {} | ^^^^^ ^ = note: required for the cast from `fn(isize, u8, Vec<u32>) {f}` to the object type `dyn Trait` ``` </td> <td> ```text error[E0631]: type mismatch in function arguments --> ./t.rs:4:12 | 4 | expect(&f); | ------ ^^ expected signature of `fn(usize, u8, Vec<u64>) -> _` | | | required by a bound introduced by this call ... 10 | fn f(_: isize, _: u8, _: Vec<u32>) {} | ---------------------------------- found signature of `fn(isize, u8, Vec<u32>) -> _` | note: required because of the requirements on the impl of `Trait` for `fn(isize, u8, Vec<u32>) {f}` --> ./t.rs:8:9 | 8 | impl<F> Trait for F where F: Fn(usize, u8, Vec<u64>) -> u8 {} | ^^^^^ ^ = note: required for the cast to the object type `dyn Trait` ``` </td> </tr> </table> <details><summary>code</summary> <p> ```rust fn main() { fn expect(_: &dyn Trait) {} expect(&f); } trait Trait {} impl<F> Trait for F where F: Fn(usize, u8, Vec<u64>) -> u8 {} fn f(_: isize, _: u8, _: Vec<u32>) {} ``` </p> </details> r? `@compiler-errors` | ||||
| 2022-07-28 | --bless tests | Maybe Waffle | -2/+4 | |
| 2022-07-26 | bless tests, remove nonexistent E0395 | Deadbeef | -2/+2 | |
| 2022-07-14 | Use constant eval to do strict validity checks | 5225225 | -22/+44 | |
| 2022-07-08 | fix stderr output file after rebase | Jane Losare-Lusby | -23/+5 | |
| 2022-07-08 | Support unstable moves via stable in unstable items | Jane Lusby | -5/+27 | |
| 2022-07-08 | Auto merge of #98482 - cjgillot:short-struct-span-closure, r=estebank | bors | -5/+5 | |
| Shorten def_span of closures to just their header Continuation of https://github.com/rust-lang/rust/pull/93967. | ||||
| 2022-07-07 | Shorten span for closures. | Camille GILLOT | -5/+5 | |
| 2022-07-06 | interpret: use AllocRange in UninitByteAccess | Ralf Jung | -1/+1 | |
| also use nice new format string syntax in interpret/error.rs | ||||
| 2022-06-28 | Rename/restructure memory ordering intrinsics. | Mara Bos | -119/+119 | |
| 2022-05-24 | Add flag for stricter checks on uninit/zeroed | 5225225 | -6/+38 | |
| 2022-04-26 | Revert "add `DefId` to unsafety violations and display function path in E0133" | Oli Scherer | -3/+3 | |
| This reverts commit 8b8f6653cfd54525714f02efe7af0a0f830e185c. | ||||
| 2022-04-24 | only show a simple description in E0133 span label | Emil Gardström | -6/+6 | |
| 2022-04-24 | add `DefId` to unsafety violations and display function path in E0133 | Emil Gardström | -12/+12 | |
| this enables consumers to access the function definition that was reported to be unsafe | ||||
| 2022-04-09 | Rollup merge of #95374 - RalfJung:assert_uninit_valid, r=Mark-Simulacrum | Dylan DPC | -0/+28 | |
| assert_uninit_valid: ensure we detect at least arrays of uninhabited types We can't easily extend this check to *all* arrays (Cc https://github.com/rust-lang/rust/pull/87041), but it turns out the existing check already catches arrays of uninhabited types. So let's make sure it stays that way by adding them to the test. | ||||
| 2022-04-06 | bless tests | Pietro Albini | -2/+2 | |
| 2022-03-27 | assert_uninit_valid: ensure we detect at least arrays of uninhabited types | Ralf Jung | -0/+28 | |
| 2022-03-21 | Rename `~const Drop` to `~const Destruct` | Deadbeef | -2/+2 | |
| 2022-01-26 | add note suggesting that predicate is satisfied but is not const | Michael Goulet | -0/+5 | |
| 2022-01-26 | Improve selection errors for `~const` trait bounds | Deadbeef | -6/+6 | |
| 2021-12-09 | Add needs-unwind to tests that depend on panicking | David Koloski | -0/+1 | |
| This directive isn't automatically set by compiletest or x.py, but can be turned on manually for targets that require it. | ||||
| 2021-11-04 | treat illumos like solaris in failing ui tests which need it | Richard Lowe | -0/+1 | |
| 2021-10-25 | fix(rustc_typeck): report function argument errors on matching type | Michael Howell | -8/+25 | |
| Fixes #90101 | ||||
| 2021-10-14 | Revert "Stabilize `arbitrary_enum_discriminant`" | Mark Rousskov | -1/+1 | |
| This reverts commit 7a62f29f3171767090949778ce0f161e930706b9. | ||||
| 2021-10-14 | Fix const stability | Deadbeef | -0/+30 | |
| 2021-10-14 | Avoid tupling at the callee | Deadbeef | -30/+32 | |
| 2021-10-12 | Add const_eval_select intrinsic | Deadbeef | -0/+164 | |
| 2021-09-26 | Remove box syntax from most places in src/test outside of the issues dir | est31 | -2/+1 | |
| 2021-09-21 | Disable visible path calculation for PrettyPrinter in Ok path of compiler | Alik Aslanyan | -5/+6 | |
| 2021-07-28 | Stabilize `arbitrary_enum_discriminant` | Deadbeef | -1/+1 | |
| 2021-07-14 | adjust tests | Ralf Jung | -1/+1 | |
