summary refs log tree commit diff
path: root/src/test/ui/issues
AgeCommit message (Collapse)AuthorLines
2020-03-05stash API: remove panic to fix ICE.Mazdak Farrokhzad-0/+65
2020-02-27Cherry-pick the LLVM fix for #69225Josh Stone-0/+33
2020-02-21lintify conflicting_repr_hintsMazdak Farrokhzad-1/+11
2020-02-21Revert "Remove `checked_add` in `Layout::repeat`"Sebastian Hahn-0/+31
This fixes a a segfault in safe code, a stable regression. Reported in \#69225. This reverts commit a983e0590a43ed8b0f60417828efd4e79b51f494. Also adds a test for the expected behaviour.
2020-01-27Rollup merge of #68562 - hjung4:spell, r=jonas-schievinkPietro Albini-1/+1
Fix spelling errors
2020-01-26updatecomet-1/+1
2020-01-27Auto merge of #68447 - estebank:sugg-type-param, r=petrochenkovbors-1/+3
Suggest defining type parameter when appropriate ``` error[E0412]: cannot find type `T` in this scope --> file.rs:3:12 | 3 | impl Trait<T> for Struct {} | - ^ not found in this scope | | | help: you might be missing a type parameter: `<T>` ``` Fix #64298.
2020-01-26Suggest defining type parameter when appropriateEsteban Küber-1/+3
``` error[E0412]: cannot find type `T` in this scope --> file.rs:3:12 | 3 | impl Trait<T> for Struct {} | - ^ not found in this scope | | | help: you might be missing a type parameter: `<T>` ``` Fix #64298.
2020-01-26rustc_span: move pretty syntax from macro_backtrace to ExpnKind::descr.Eduard-Mihai Burtescu-2/+2
2020-01-24Add opt-level=0 to testThomas Lively-1/+1
2020-01-24Update LLVM to fix crash on Emscripten targetsThomas Lively-0/+8
Adds a small Rust regression test for #66308. r? @alexcrichton
2020-01-19review commentsEsteban Küber-6/+6
2020-01-19When encountering an expected named lifetime and none are present, suggest ↵Esteban Küber-6/+30
adding one
2020-01-18slice_patterns: remove gates in testsMazdak Farrokhzad-17/+6
2020-01-17Auto merge of #68305 - Dylan-DPC:rollup-aoohsz8, r=Dylan-DPCbors-16/+114
Rollup of 6 pull requests Successful merges: - #67956 (Detail transitive containment in E0588 diagnostic) - #68153 (resolve: Point at the private item definitions in privacy errors) - #68195 (Account for common `impl Trait`/`dyn Trait` return type errors) - #68288 (Fix some of the rustfmt fallout in Miri) - #68292 (don't clone types that are copy) - #68301 (Don't propagate __RUST_TEST_INVOKE to subprocess) Failed merges: r? @ghost
2020-01-17Rollup merge of #68195 - estebank:impl-trait-2000, r=CentrilDylan DPC-0/+9
Account for common `impl Trait`/`dyn Trait` return type errors - When all return paths have the same type, suggest `impl Trait`. - When all return paths implement the expected `trait`, suggest `Box<dyn Trait>` and mention using an `enum`. - When multiple different types are returned and `impl Trait` is expected, extend the explanation. - When return type is `impl Trait` and the return paths do not implement `Trait`, point at the returned values. - Split `src/librustc/traits/error_reporting.rs` into multiple files to keep size under control. Fix #68110, cc #66523.
2020-01-17Auto merge of #67731 - matthewjasper:drop-in-place-reclimit, r=eddybbors-36/+0
Handle recursive instantiation of drop shims The compiler used to hang because the recursion limit was never hit.
2020-01-16Ignore some tests on platforms without libstd spansVadim Petrochenkov-2/+7
2020-01-16resolve: Point at the private item definitions in privacy errorsVadim Petrochenkov-14/+98
2020-01-16review commentsEsteban Küber-2/+2
2020-01-16When trait bounds are missing for return values, point at themEsteban Küber-0/+9
2020-01-16Rollup merge of #68096 - varkor:diagnostic-cleanup, r=CentrilDylan DPC-6/+6
Clean up some diagnostics by making them more consistent In general: - Diagnostic should start with a lowercase letter. - Diagnostics should not end with a full stop. - Ellipses contain three dots. - Backticks should encode Rust code. I also reworded a couple of messages to make them read more clearly. It might be sensible to create a style guide for diagnostics, so these informal conventions are written down somewhere, after which we could audit the existing diagnostics. r? @Centril
2020-01-15Add test for issue-66473Yuki Okushi-0/+0
2020-01-12Add backticks in appropriate placesvarkor-3/+3
2020-01-12Diagnostics should start lowercasevarkor-3/+3
2020-01-11Rollup merge of #67930 - lzutao:result-as_deref, r=dtolnayMazdak Farrokhzad-38/+2
Rename Result::as_deref_ok to as_deref Addresses https://github.com/rust-lang/rust/issues/50264#issuecomment-533952247 r? @dtolnay
2020-01-11Auto merge of #65912 - estebank:variants-orig, r=petrochenkovbors-5/+28
Point at the span for the definition of crate foreign ADTs Follow up to #65421. Partially addresses #65386. Blocked on #53081.
2020-01-11Update test after renaming Result::as_derefLzu Tao-38/+2
2020-01-11Rollup merge of #68106 - varkor:self_self_use, r=estebankMazdak Farrokhzad-0/+6
Fix issue with using `self` module via indirection Fixes https://github.com/rust-lang/rust/issues/68103.
2020-01-11Rollup merge of #68084 - estebank:ice-68000, r=varkorMazdak Farrokhzad-0/+67
Do not ICE on unicode next point Use `shrink_to_hi` instead of `next_point` and fix `next_point`. Fix #68000, fix #68091, fix #68092.
2020-01-11Rollup merge of #68079 - varkor:E0013-clarify, r=CentrilMazdak Farrokhzad-9/+22
Clarify suggestion for E0013 Fixes https://github.com/rust-lang/rust/issues/68038.
2020-01-10Fix issue with using `self` module via indirectionvarkor-0/+6
2020-01-11Rollup merge of #68014 - estebank:unify-e0599, r=cramertjYuki Okushi-75/+76
Unify output of "variant not found" errors Fix #49566.
2020-01-10Ignore platforms that can't point to stdEsteban Küber-7/+15
2020-01-10Use `def_span` to minimize definition span to first line when possibleEsteban Küber-28/+12
2020-01-10Point at the span for the definition of crate foreign ADTsEsteban Küber-6/+37
2020-01-10Add ICE regression testsEsteban Küber-0/+44
2020-01-10Clarify suggestion for E0013varkor-9/+22
2020-01-10Introduce `#![feature(half_open_range_patterns)]`.Mazdak Farrokhzad-20/+91
This feature adds `X..`, `..X`, and `..=X` patterns.
2020-01-09Do not ICE on unicode next pointEsteban Küber-0/+23
Use `shrink_to_hi` instead of `next_point` Fix #68000.
2020-01-10Rollup merge of #66463 - estebank:point-at-closure-and-opaque-types, r=CentrilMazdak Farrokhzad-0/+2
Point at opaque and closure type definitions in type errors Fixes #57266, fixes #67117.
2020-01-09Update testsVadim Petrochenkov-33/+335
2020-01-09Rollup merge of #68023 - FSciammarella:master, r=Centril,varkorMazdak Farrokhzad-2/+2
Fix issue #68008 Correcting Typo on error message. From "substract" to "subtract". Fixes #68008.
2020-01-08Fix Typo on cannot "substract"Felipe Sciammarella-2/+2
Fix Typo on hir::BinOpKind::Sub "substract" to "subtract" Fix Typo on "Error cannot substract" Fix Typo on cannot "substract"
2020-01-08Explain that associated types and consts can't be accessed directly on the ↵Esteban Küber-1/+5
trait's path
2020-01-08review commentsEsteban Küber-1/+1
2020-01-08Point at opaque and closure type definitions in type errorsEsteban Küber-0/+2
2020-01-08Unify output of "variant not found" errorsEsteban Küber-75/+76
2020-01-08- remove syntax::{span_warn!, span_err!, span_fatal!. struct_err!}Mazdak Farrokhzad-33/+20
- remove syntax::{help!, span_help!, span_note!} - remove unused syntax::{struct_span_fatal, struct_span_err_or_warn!, span_err_or_warn!} - lintify check_for_bindings_named_same_as_variants + conflicting_repr_hints - inline syntax::{struct_span_warn!, diagnostic_used!} - stringify_error_code! -> error_code! & use it more. - find_plugin_registrar: de-fatalize an error - de-fatalize metadata errors - move type_error_struct! to rustc_typeck - struct_span_err! -> rustc_errors
2020-01-06fire "non_camel_case_types" for associated typesAndy Russell-0/+3