summary refs log tree commit diff
path: root/src/test/ui/error-codes
AgeCommit message (Collapse)AuthorLines
2019-07-22Raise the default recursion limit to 128Simonas Kazlauskas-2/+66
2019-06-19Auto merge of #61172 - matthewjasper:cleanup-implied-bounds-lint, r=varkorbors-4/+4
Improve the explicit_outlives_requirements lint * Don't use Strings to compare parameters * Extend the lint to lifetime bounds * Extend the lint to enums and unions * Use the correct span for where clauses in tuple structs * Try to early-out where possible * Remove unnecessary bounds in rustc crates
2019-06-18Remove the HirId/NodeId from where clausesMatthew Jasper-4/+4
Also give them a span in the HIR
2019-06-18Auto merge of #59625 - immunant:copy_variadics_typealias, r=eddybbors-6/+6
Refactor C FFI variadics to more closely match their C counterparts, and add Clone implementation We had to make some changes to expose `va_copy` and `va_end` directly to users (mainly for C2Rust, but not exclusively): - redefine the Rust variadic structures to more closely correspond to C: `VaList` now matches `va_list`, and `VaListImpl` matches `__va_list_tag` - add `Clone` for `VaListImpl` - add explicit `as_va_list()` conversion function from `VaListImpl` to `VaList` - add deref coercion from `VaList` to `VaListImpl` - add support for the `asmjs` target All these changes were needed for use cases like: ```Rust let mut ap2 = va_copy(ap); vprintf(fmt, ap2); va_end(&mut ap2); ```
2019-06-17Expose `VaListImpl` as the Rust equivalent of `__va_list_tag` and implement ↵Andrei Homescu-6/+6
Clone for it.
2019-06-17Make use of `ptr::null(_mut)` instead of casting zeroLzu Tao-2/+2
2019-06-10Implement RFC 2645 (transparent enums and unions)Michael Bradshaw-4/+4
Tracking issue: #60405
2019-06-03Update tests for changes to cannot move errorsMatthew Jasper-2/+5
2019-06-02Rollup merge of #61438 - estebank:generics-span, r=varkorMazdak Farrokhzad-4/+25
Point at individual type args on arg count mismatch - Point at individual type arguments on arg count mismatch - Make generics always have a valid span, even when there are no args - Explain that `impl Trait` introduces an implicit type argument Fix #55991.
2019-06-02Add error for pattern-matching on arrays without a fixed sizevarkor-0/+26
2019-06-01Point at individual type arguments on arg count mismatchEsteban Küber-4/+25
2019-05-29Auto merge of #61203 - memoryruins:bare_trait_objects, r=Centrilbors-42/+42
Warn on bare_trait_objects by default The `bare_trait_objects` lint is set to `warn` by default. Most ui tests have been updated to use `dyn` to avoid creating noise in stderr files. r? @Centril cc #54910
2019-05-29Update ui test suite to use dynmemoryruins-42/+42
2019-05-25Reword malformed attribute input diagnosticsEsteban Küber-2/+2
- Handle empty `cfg_attr` attribute - Reword empty `derive` attribute error - Use consistend error message: "malformed `attrname` attribute input" - Provide suggestions when possible - Move note/help to label/suggestion - Use consistent wording "ill-formed" -> "malformed" - Move diagnostic logic out of parser
2019-05-24Move error code tests to error code foldervarkor-0/+591
2019-05-20Addressed more points raised in review.Alexander Regueiro-8/+14
2019-05-20Addressed points raised in review.Alexander Regueiro-2/+2
2019-05-20Update tests.Alexander Regueiro-3/+7
2019-05-20Update tests.Alexander Regueiro-2/+17
2019-05-12Change compare mode to use -Zborrowck=mirMatthew Jasper-0/+24
2019-05-02fix typoEsteban Küber-2/+2
2019-04-23Rollup merge of #60169 - varkor:tidy-unnecessary-ignore-newline, r=kennytmMazdak Farrokhzad-3/+1
Warn when ignore-tidy-linelength is present, but no lines are too long It's easy for a `// ignore-tidy-linelength` to be added when there is a genuine need to ignore a file's line length, but then after refactoring the need is gone, but the tidy directive is not removed. This means that in the future, further editing may accidentally add unnecessarily long lines. This change forces `// ignore-tidy-linelength` to be used exactly when necessary, to make sure such changes are intentional.
2019-04-23Update ui testsvarkor-1/+1
2019-04-23Remove unnecessary ignore-tidy-linelengthvarkor-2/+0
2019-04-22Never stop due to errors before borrow checkingEsteban Küber-7/+45
2019-04-22update tests for migrate mode by defaultMatthew Jasper-241/+58
2019-04-19Emit specific error for struct literal in conditionsEsteban Küber-43/+17
2019-04-19Rollup merge of #60052 - varkor:unused-parameter-diagnostic, r=estebankMazdak Farrokhzad-1/+1
Correct unused parameter diagnostic The message was incorrect for unused lifetime parameters. There's no need to be specific.
2019-04-18Update testsvarkor-1/+1
2019-04-18hide `--explain` hint if error has no extended infoAndy Russell-23/+17
2019-04-17Resolve inconsistency in error messages between "parameter" and "variable".Eduard-Mihai Burtescu-2/+2
2019-04-14Rollup merge of #59675 - SimonSapin:stable-alloc, r=alexcrichtonMazdak Farrokhzad-5/+3
Stabilize the `alloc` crate. This implements RFC 2480: * https://github.com/rust-lang/rfcs/pull/2480 * https://github.com/rust-lang/rfcs/blob/master/text/2480-liballoc.md Closes https://github.com/rust-lang/rust/issues/27783
2019-04-12Stabilize the `alloc` crate.Simon Sapin-5/+3
This implements RFC 2480: * https://github.com/rust-lang/rfcs/pull/2480 * https://github.com/rust-lang/rfcs/blob/master/text/2480-liballoc.md Closes https://github.com/rust-lang/rust/issues/27783
2019-04-11Reword tracking issue noteEsteban Küber-3/+3
2019-04-10Tweak unstable diagnostic outputEsteban Küber-4/+9
2019-03-28Rollup merge of #59408 - euclio:compiletest-normalization, r=oli-obkMazdak Farrokhzad-1/+1
compiletest: make path normalization smarter Fixes #59109.
2019-03-26Rollup merge of #59150 - estebank:type-ascription, r=varkorMazdak Farrokhzad-0/+16
Expand suggestions for type ascription parse errors Fix #51222. CC #48016, #47666, #54516, #34255.
2019-03-25compiletest: make path normalization smarterAndy Russell-1/+1
2019-03-23Hide obvious suggestion from cli outputEsteban Küber-4/+2
2019-03-23Swap primary/secondary spans for E0458Esteban Küber-2/+2
2019-03-23Swap const evaluation lint spans to point at problem in primary spanEsteban Küber-2/+2
2019-03-23Tweak spans for E0599Esteban Küber-1/+1
2019-03-22Reword type ascription note to reduce verbosityEsteban Küber-12/+2
2019-03-22Review commentEsteban Küber-2/+2
2019-03-22Expand suggestions for type ascription parse errorsEsteban Küber-0/+26
2019-03-20Update testsvarkor-4/+4
2019-03-11Update tests that don't run on my platformVadim Petrochenkov-16/+0
2019-03-11Update NLL testsVadim Petrochenkov-19/+19
2019-03-11Update testsVadim Petrochenkov-200/+200
2019-03-02Reword error messageEsteban Küber-1/+1