about summary refs log tree commit diff
path: root/src/test/ui/error-codes
AgeCommit message (Collapse)AuthorLines
2019-09-22Point at correct span for parenthesized typesEsteban Küber-5/+5
2019-09-22On obligation errors point at the unfulfilled binding when possibleEsteban Küber-3/+3
2019-09-22Point at definition when misusing ADTEsteban Küber-0/+3
When given `struct Foo(usize)` and using it as `Foo {}` or `Foo`, point at `Foo`'s definition in the error.
2019-09-22Fixes #63962. Hint about missing tuple parentheses in patternsSam Radhakrishan-4/+19
2019-09-19When possible point at argument causing item obligation failureEsteban Küber-2/+2
2019-09-14Rollup merge of #64290 - Mark-Simulacrum:span-no-main, r=estebankMazdak Farrokhzad-3/+5
Provide a span if main function is not present in crate Unfortunately, the diagnostic machinery does not cope well with an empty span which can happen if the crate is empty, in which case we merely set a spanless note. Tests are already updated for this change, so a dedicated test is not added. Resolves #36561.
2019-09-14Provide a span if main function is not present in crateMark Rousskov-3/+5
Unfortunately, the diagnotic machinery does not cope well with an empty span which can happen if the crate is empty, in which case we merely set a spanless note.
2019-09-12Auto merge of #64360 - varkor:foreign-items-diagnostic-const-generics, ↵bors-2/+2
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-11Make wording less confusingvarkor-2/+2
2019-09-08Tests: No longer emitting 0008, E0301, E0302.Mazdak Farrokhzad-36/+0
2019-09-08Update tests wrt. bind_by_by_move_pattern_guards stabilization.Mazdak Farrokhzad-39/+5
2019-09-06Rollup merge of #64161 - estebank:point-variant, r=CentrilMazdak Farrokhzad-0/+9
Point at variant on pattern field count mismatch
2019-09-04Point at variant on pattern field count mismatchEsteban Küber-0/+9
2019-09-02account for DUMMY_SP and correct wordingEsteban Küber-1/+1
2019-09-02On object safety violation, point at source when possibleEsteban Küber-12/+13
2019-09-02Refer to "`self` type" instead of "receiver type"Esteban Küber-4/+4
2019-08-31Use span label instead of note for cause in E0631Esteban Küber-27/+15
2019-08-21improve diagnostics: break/continue wrong contextArtem Varaksa-3/+5
2019-08-17Move type parameter shadowing errors to resolveMatthew Jasper-6/+6
For some reason type checking did this. Further it didn't consider hygiene.
2019-08-13Suggest giving return type to closures on E0282Esteban Küber-4/+1
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