about summary refs log tree commit diff
path: root/src/test/ui/issues
AgeCommit message (Collapse)AuthorLines
2020-02-02Wording changes to object unsafe trait errorsEsteban Küber-16/+38
Stemming from the thread at https://twitter.com/indygreg/status/1223279056398929920
2020-02-02Point at `Sized` requirementsEsteban Küber-0/+3
Make #47990 easier to understand
2020-02-02Slight rewording of diagnostic messageEsteban Küber-4/+4
2020-02-02Use more accurate failed predicate spansEsteban Küber-32/+25
2020-02-02Tweak `Self: Sized` restriction diagnostic outputEsteban Küber-8/+9
2020-02-02Point at `Sized` boundEsteban Küber-2/+7
2020-02-02Point at arguments or output when fn obligations come from them, or ident ↵Esteban Küber-82/+45
when they don't
2020-02-02move_ref_patterns: introduce testsMazdak Farrokhzad-40/+0
bindings_after_at: harden tests
2020-02-02Do not suggest duplicate boundsYuki Okushi-4/+0
2020-02-02Fix ICE with save-analysisYuki Okushi-1/+3
2020-02-01Update existing tests for or-patternsMatthew Jasper-12/+4
2020-02-01Auto merge of #68698 - tmiasko:catch-panic, r=Amanieubors-0/+26
Remove incorrect debug assertions from catch_unwind Previously the debug assertions in the implementation of catch_unwind used to verify consistency of the panic count by checking that the count is zero just before leaving the function. This incorrectly assumed that no panic was in progress when entering `catch_unwind`. Fixes #68696.
2020-01-31Auto merge of #68080 - varkor:declared-here, r=petrochenkovbors-42/+42
Address inconsistency in using "is" with "declared here" "is" was generally used for NLL diagnostics, but not other diagnostics. Using "is" makes the diagnostics sound more natural and readable, so it seems sensible to commit to them throughout. r? @Centril
2020-01-31Remove incorrect debug assertions from catch_unwindTomasz Miąsko-0/+26
Previously the debug assertions in the implementation of catch_unwind used to verify consistency of the panic count by checking that the count is zero just before leaving the function. This incorrectly assumed that no panic was in progress when entering `catch_unwind`.
2020-01-30Auto merge of #68325 - faern:move-numeric-consts-to-associated-consts-step1, ↵bors-18/+0
r=LukasKalbertodt Move numeric consts to associated consts step1 A subset of #67913. Implements the first step of RFC https://github.com/rust-lang/rfcs/pull/2700 This PR adds the new constants as unstable constants and defines the old ones in terms of the new ones. Then fix a tiny bit of code that started having naming collisions because of the new assoc consts. Removed a test that did not seem relevant any longer. Since doing just `u8::MIN` should now indeed be valid.
2020-01-28lintify conflicting_repr_hintsMazdak Farrokhzad-1/+11
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-24Normalise notes with the/isvarkor-42/+42
2020-01-23Remove no longer valid testLinus Färnstrand-18/+0
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