| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2019-10-20 | Fix resolve_type_vars_with_obligations not resolving const inference | ben | -8/+8 | |
| variables. | ||||
| 2019-10-16 | update ui tests | Guillaume Gomez | -0/+1 | |
| 2019-10-14 | Rollup merge of #65398 - estebank:capitalization-only, r=varkor | Tyler Mandry | -1/+1 | |
| Bring attention to suggestions when the only difference is capitalization CC #65386. | ||||
| 2019-10-15 | Include const generic arguments in metadata. | ben | -0/+52 | |
| 2019-10-13 | Bring attention to suggestions when the only difference is capitalization | Esteban Küber | -1/+1 | |
| 2019-10-11 | Rollup merge of #65191 - varkor:const-generics-test-cases, r=nikomatsakis | Tyler Mandry | -0/+32 | |
| Add some regression tests - Add a test for #62187. - Clean up the directory structure in `src/test/ui/const-generics` - Closes #64792. - Closes #57399. - Closes #57271. | ||||
| 2019-10-10 | Pretty print raw pointers in consts as '{pointer}'. | ben | -3/+3 | |
| 2019-10-09 | Update ui tests | ben | -6/+6 | |
| 2019-10-09 | Refactor pretty print const to use a big match statement | ben | -2/+2 | |
| 2019-10-09 | Gate use of raw and function pointers in const generics behind | ben | -4/+60 | |
| const_compare_raw_pointers. | ||||
| 2019-10-09 | Pretty print function pointer const values. | ben | -4/+4 | |
| 2019-10-09 | Fix calling function pointer const parameters. Also fixes inference of | ben | -0/+99 | |
| function pointer const parameters. | ||||
| 2019-10-07 | Add a regression test for issue 62187 | varkor | -0/+32 | |
| 2019-10-07 | Move const generic regression tests to their old folder | varkor | -0/+0 | |
| 2019-10-07 | Test diagnostic output of type mismatches for types that have const | ben | -0/+48 | |
| generics arguments. | ||||
| 2019-10-06 | Fix const arguments not displaying in types mismatch diagnostic. | ben | -6/+6 | |
| 2019-10-03 | typo: fix typo in E0392 | Ben Boeckel | -1/+1 | |
| See #64931. | ||||
| 2019-10-03 | Rollup merge of #64931 - estebank:missing-param-ref, r=matthewjasper,Centril | Mazdak Farrokhzad | -1/+1 | |
| Reword E0392 slightly Make it clearer that a type or lifetime argument not being used can be fixed by referencing it in a struct's fields, not just using `PhathomData`. CC #53589. | ||||
| 2019-10-02 | review comment | Esteban Küber | -1/+1 | |
| 2019-09-30 | Reword E0392 slightly | Esteban Küber | -1/+1 | |
| Make it clearer that a type or lifetime argument not being used can be fixed by referencing it in a struct's fields, not just using `PhathomData`. | ||||
| 2019-09-29 | Add a couple more test cases, including non-ascii strings. | ben | -3/+16 | |
| 2019-09-28 | Added test for mismatched slices, and byte slices. | ben | -1/+47 | |
| 2019-09-28 | Add support for relating slices in `super_relate_consts`. | ben | -0/+20 | |
| 2019-09-23 | Rollup merge of #64679 - skinny121:const-infer, r=varkor | Mazdak Farrokhzad | -0/+29 | |
| Infer consts more consistently Moved some duplicated logic in `TypeRelation` methods into `super_combined_consts`. Before some `TypeRelation`s like `Lub` wasn't using `replace_if_possible`, meaning some inference types were staying around longer than they should be. Fixes https://github.com/rust-lang/rust/issues/64519 r? @varkor | ||||
| 2019-09-22 | Infer consts consistently. Moved some logic into super_combined_consts, | ben | -0/+29 | |
| also removed some duplicated logic from TypeRelation methods. | ||||
| 2019-09-19 | When possible point at argument causing item obligation failure | Esteban Küber | -2/+2 | |
| 2019-09-12 | Auto merge of #64360 - varkor:foreign-items-diagnostic-const-generics, ↵ | bors | -0/+37 | |
| r=cramertj Correct the polymorphic extern fn error for const parameters Before, any polymorphism on extern functions was assumed to be type polymorphism. | ||||
| 2019-09-11 | Make wording less confusing | varkor | -2/+2 | |
| 2019-09-10 | Correct the polymorphic extern fn error for const parameters | varkor | -0/+37 | |
| 2019-09-09 | Auto merge of #64237 - estebank:tweak-method-not-found, r=Centril | bors | -1/+1 | |
| Give method not found a primary span label | ||||
| 2019-09-08 | Give method not found a primary span label | Esteban Küber | -1/+1 | |
| 2019-09-08 | Update test stderr with results of enabling unused lints | Mark Rousskov | -5/+7 | |
| 2019-08-19 | test: add test for #61432. | Eduard-Mihai Burtescu | -0/+25 | |
| 2019-08-05 | Add implementations for converting boxed slices into boxed arrays | Jake Goulding | -0/+101 | |
| This mirrors the implementations of reference slices into arrays. | ||||
| 2019-07-30 | --bless tests due to INCOMPLETE_FEATURES being a lint. | Mazdak Farrokhzad | -31/+90 | |
| 2019-07-28 | Add tests for Vec(Deque) array PartialEq impls. | Mazdak Farrokhzad | -0/+131 | |
| 2019-07-18 | Auto merge of #61749 - davidtwco:rfc-2203-const-array-repeat-exprs, r=eddyb | bors | -16/+22 | |
| rustc/rustc_mir: Implement RFC 2203. This PR implements RFC 2203, allowing constants in array repeat expressions. Part of #49147. r? @eddyb | ||||
| 2019-07-09 | normalize use of backticks in compiler messages for libsyntax/feature_gate | Samy Kacimi | -3/+3 | |
| https://github.com/rust-lang/rust/issues/60532 | ||||
| 2019-07-07 | rustc/rustc_mir: Implement RFC 2203. | David Wood | -16/+22 | |
| This commit implements RFC 2203, allowing constants in array repeat expressions. Firstly, the check that the array repeat expression implements `Copy` is removed and re-implemented in `rustc_mir::borrow_check::nll::type_check` by emitting an error when the MIR contains a `Operand::Move` and the type does not implement `Copy`. Next, the `qualify_consts` pass is modified to construct a `Candidate::Repeat` when it would be correct to promote a array repeat expression. Finally, the `promote_consts` pass is modified to promote the candidates previously identified. | ||||
| 2019-07-07 | Use const generics for array impls, restricted to 0..=32 | Scott McMurray | -8/+158 | |
| - uses a never-stable core::array::LengthAtMost32 to bound the impls - includes a custom error message to avoid mentioning LengthAtMost32 too often - doesn't use macros for the slice implementations to avoid #62433 | ||||
| 2019-07-04 | Permit use of mem::uninitialized via allow(deprecated) | Mark Rousskov | -0/+1 | |
| 2019-07-03 | Migrate compile-pass annotations to build-pass | Yuki Okushi | -2/+2 | |
| 2019-06-13 | typeck: Fix ICE for blocks in repeat expr count. | David Wood | -0/+34 | |
| This commit extends the work in #61698 to get the `DefId` of const parameters from block that resolve to a const parameter (as well as const parameters directly, as it was previously). | ||||
| 2019-06-11 | Rollup merge of #61698 - davidtwco:ice-const-generic-length, r=varkor | Mazdak Farrokhzad | -0/+60 | |
| typeck: Fix const generic in repeat param ICE. Fixes #61336. Turns out this wasn't related to #49147 after all. r? @varkor | ||||
| 2019-06-10 | typeck: Fix const generic in repeat param ICE. | David Wood | -0/+60 | |
| This commit fixes an ICE that occured when a const generic was used in a repeat expression. This was due to the code expecting the length of the repeat expression to be const evaluatable to a constant, but a const generic parameter is not (however, it can be made into a constant). | ||||
| 2019-06-07 | Add test for deriving Debug for const generics | varkor | -0/+28 | |
| 2019-06-07 | Add test for const generics struct constructor | varkor | -0/+21 | |
| 2019-06-04 | Rollup merge of #61409 - varkor:condition-trait-param-ice, r=oli-obk | Mazdak Farrokhzad | -0/+18 | |
| Fix an ICE with a const argument in a trait This goes some way towards fixing https://github.com/rust-lang/rust/issues/61383 (the reduced test case is fixed). | ||||
| 2019-06-03 | Allow `true` and `false` in const generic arguments | varkor | -0/+2 | |
| 2019-06-02 | Rollup merge of #61380 - varkor:expected-usize-got-param, r=eddyb | Mazdak Farrokhzad | -0/+63 | |
| Fix some issues with `unwrap_usize` instead of `assert_usize` Fixes https://github.com/rust-lang/rust/issues/61337. Fixes https://github.com/rust-lang/rust/issues/61341. Fixes https://github.com/rust-lang/rust/issues/61422. r? @eddyb | ||||
