summary refs log tree commit diff
path: root/src/test/ui/const-generics
AgeCommit message (Collapse)AuthorLines
2019-05-13Rollup merge of #60710 - varkor:delay_span_bug-const-parent, r=matthewjasperMazdak Farrokhzad-0/+60
Use `delay_span_bug` for error cases when checking `AnonConst` parent Fixes #60704. Fixes #60650.
2019-05-11Add test for const implvarkor-0/+22
2019-05-10Add a test for failed inference of const typesvarkor-0/+26
2019-05-10Add a test for invalid const argumentsvarkor-0/+34
2019-05-09Rollup merge of #60550 - skinny121:concrete_const_tests, r=varkorMazdak Farrokhzad-0/+50
Add tests for concrete const types In response to the request for help in https://github.com/rust-lang/rust/issues/44580#issuecomment-488819344, I have added several ui tests around the use of concrete const types, i.e. A<2>. r? @varkor
2019-05-08Add tests for concrete const typesben-0/+50
2019-05-07Auto merge of #60612 - Centril:rollup-61drhqt, r=Centrilbors-8/+2
Rollup of 5 pull requests Successful merges: - #60489 (Remove hamburger button from source code page) - #60535 (Correct handling of arguments in async fn) - #60579 (Rename `ParamTy::idx` to `ParamTy::index`) - #60583 (Fix parsing issue with negative literals as const generic arguments) - #60609 (Be a bit more explicit asserting over the vec rather than the len) Failed merges: r? @ghost
2019-05-07Auto merge of #60277 - estebank:relate-ice, r=varkorbors-0/+21
Don't ICE when relating const type args Fix #60263. r? @varkor
2019-05-06`token::LArrow` can begin argumentsvarkor-8/+2
`<-` may indicate the start of a negative const argument.
2019-05-04Early error for mixing order of const and type parametersvarkor-10/+10
2019-05-04Add testsvarkor-0/+29
2019-05-02Don't ICE when relating const type argsEsteban Küber-0/+21
2019-05-01Add a test for const args that cannot be inferredvarkor-0/+25
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
2019-05-01Add a test for incorrect numbers of const argsvarkor-0/+32
2019-05-01Add a test for const argumentsvarkor-0/+19
2019-05-01Add `const-types` testvarkor-0/+22
2019-04-25Add comment explaining restrictionvarkor-4/+10
2019-04-25Add a test for const parameters with type parameters as typesvarkor-0/+31
2019-04-25Make sure const params with type params don't cause errors without a feature ↵varkor-0/+25
gate
2019-04-18hide `--explain` hint if error has no extended infoAndy Russell-1/+0
2019-04-18Auto merge of #60058 - varkor:const-generics-ty-refactor, r=cramertjbors-0/+14
Make const parameters enforce no variance constraints Fixes https://github.com/rust-lang/rust/issues/60047. Also includes some minor const refactoring for convenience.
2019-04-18Add a test for unused const parametersvarkor-0/+14
2019-04-17Resolve inconsistency in error messages between "parameter" and "variable".Eduard-Mihai Burtescu-1/+1
2019-03-22Fix ICE with const generic param in structvarkor-0/+21
2019-03-11Update testsVadim Petrochenkov-5/+5
2019-03-07Add a test for invalid const argumentsvarkor-0/+12
2019-03-05Fix negative integer literal testvarkor-19/+8
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
2019-03-05Update const generics testsvarkor-53/+30
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
2019-02-16Add a test for const parameter uppercase lintvarkor-0/+27
2019-02-16Don't abort early when collecting const genericsvarkor-1/+8
2019-02-07Add a test forbidding the use of const parameters in inner itemsvarkor-0/+37
2019-02-07Parse negative literals in const generic argumentsvarkor-0/+4
2019-02-07Adjust generic const param resolutionvarkor-28/+0
2019-02-07Adjust parser generic parameter errorsvarkor-0/+45
2019-02-07Fix ast_validation printing of const genericsvarkor-2/+2
2019-02-07Add test for const parameter before other generic parametersvarkor-0/+39
2019-02-07Add test for const parameter depending on type parametervarkor-0/+28
2019-02-07Add test forbidding const parameters in const fnvarkor-0/+36