summary refs log tree commit diff
path: root/src/test/ui/error-codes
AgeCommit message (Collapse)AuthorLines
2019-08-05Don't recommend `extern crate` syntaxKornel-1/+1
2019-07-30--bless tests due to INCOMPLETE_FEATURES being a lint.Mazdak Farrokhzad-0/+2
2019-07-28Auto merge of #63090 - Centril:rollup-xnjwm2h, r=Centrilbors-1/+1
Rollup of 8 pull requests Successful merges: - #61856 (Lint attributes on function arguments) - #62360 (Document that ManuallyDrop::drop should not called more than once) - #62392 (Update minifier-rs version) - #62871 (Explicit error message for async recursion.) - #62995 (Avoid ICE when suggestion span is at Eof) - #63053 (SystemTime docs: recommend Instant for elapsed time) - #63081 (tidy: Cleanup the directory whitelist) - #63088 (Remove anonymous_parameters from unrelated test) Failed merges: r? @ghost
2019-07-28Remove anonymous_parameters from unrelated testDavid Tolnay-1/+1
2019-07-28Remove lint annotations in specific crates that are already enforced by ↵Vadim Petrochenkov-6/+3
rustbuild Remove some random unnecessary lint `allow`s
2019-07-28--bless tests due to new subslice syntax.Mazdak Farrokhzad-2/+2
2019-07-28Use new 'p @ ..' syntax in tests.Mazdak Farrokhzad-1/+1
2019-07-27Fix issues with git converting CRLF to CRVadim Petrochenkov-4/+12
UI tests now run on asmjs-unknown-emscripten, ignore tests with inline assembly which is not supported on emscripten targets
2019-07-25Rollup merge of #62921 - iluuu1994:improve-help-for-method-disambiguation, ↵Mazdak Farrokhzad-0/+2
r=estebank Add method disambiguation help for trait implementation Closes #51046 Closes #40471
2019-07-24Auto merge of #62908 - ↵bors-3/+3
fakenine:normalize_use_of_backticks_compiler_messages_p17, r=alexreg normalize use of backticks for compiler messages in remaining modules https://github.com/rust-lang/rust/issues/60532
2019-07-24Adjust tests for method disambiguation helpIlija Tovilo-0/+2
2019-07-23normalize use of backticks for compiler messages in remaining modulesSamy Kacimi-3/+3
https://github.com/rust-lang/rust/issues/60532
2019-07-23Rollup merge of #62804 - lundibundi:help-infer-const-static, r=eddybMark Rousskov-1/+4
rustc_typeck: improve diagnostics for _ const/static declarations This continues https://github.com/rust-lang/rust/pull/62694 and adds type suggestions to const/static declarations with `_` type. r? @eddyb
2019-07-19normalize use of backticks in compiler messages for librustc_metadataSamy Kacimi-3/+3
https://github.com/rust-lang/rust/issues/60532
2019-07-19fixup! rustc_typeck: improve diagnostics for _ const/static declarationsDenys Otrishko-1/+1
2019-07-19fixup! rustc_typeck: improve diagnostics for _ const/static declarationsDenys Otrishko-1/+4
2019-07-19Auto merge of #62694 - lundibundi:help-infer-fn-ret, r=eddybbors-1/+4
rustc_typeck: improve diagnostics for -> _ fn return type This should implement IIUC the mentioned issue. ~~I'm not sure if there is a better way than `get_infer_ret_ty` to get/check the return type without code duplication.~~ ~~Also, is this unwrap be okay `ty::Binder::bind(*tables.liberated_fn_sigs().get(hir_id).unwrap())`?~~ r? @eddyb Closes: https://github.com/rust-lang/rust/issues/56132
2019-07-17normalize use of backticks in compiler messages for librustc/lintSamy Kacimi-1/+1
https://github.com/rust-lang/rust/issues/60532
2019-07-17rustc_typeck: improve diagnostics for -> _ fn return typeDenys Otrishko-1/+4
Closes: https://github.com/rust-lang/rust/issues/56132
2019-07-09Rollup merge of #62526 - ↵Mazdak Farrokhzad-3/+3
fakenine:normalize_use_of_backticks_compiler_messages_p4, r=Centril normalize use of backticks in compiler messages for libsyntax/feature_gate.rs https://github.com/rust-lang/rust/issues/60532
2019-07-09Rollup merge of #62450 - nagisa:reclimit, r=pnkfelixMazdak Farrokhzad-2/+66
Raise the default recursion limit to 128 The previous limit of 64 is being (just) barely hit by genuine code out there, which is causing issues like https://github.com/rust-lang/rust/issues/62059 to rear their end. Ideally, we wouldn’t have such arbitrary limits at all, but while we do, it makes a lot of sense to just raise this limit whenever genuine use-cases end up hitting it. r? @pnkfelix Fixes https://github.com/rust-lang/rust/issues/62059
2019-07-09normalize use of backticks in compiler messages for libsyntax/feature_gateSamy Kacimi-3/+3
https://github.com/rust-lang/rust/issues/60532
2019-07-07Raise the default recursion limit to 128Simonas Kazlauskas-2/+66
2019-07-06normalize use of backticks/lowercase in compiler messages for librustc_mirSamy Kacimi-2/+2
https://github.com/rust-lang/rust/issues/60532 r? @alexreg
2019-07-03Migrate compile-pass annotations to build-passYuki Okushi-1/+1
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