about summary refs log tree commit diff
path: root/src/test/ui/unsized
AgeCommit message (Collapse)AuthorLines
2021-09-26Remove box syntax from most places in src/test outside of the issues direst31-8/+7
2021-09-16Point at call span that introduced obligation for the argEsteban Kuber-5/+15
2021-09-16Point at argument instead of call for their obligationsEsteban Kuber-34/+3
When an obligation is introduced by a specific `fn` argument, point at the argument instead of the `fn` call if the obligation fails to be fulfilled.
2021-08-26add unsized coercion testlcnr-0/+24
2021-08-16Use note to point at bound introducing requirementEsteban Küber-38/+66
2021-08-11Modify structured suggestion outputEsteban Küber-133/+169
* On suggestions that include deletions, use a diff inspired output format * When suggesting addition, use `+` as underline * Color highlight modified span
2021-07-30Do not discard `?Sized` type params and suggest their removalEsteban Küber-1/+146
2021-07-03Remove the deprecated `core::raw` and `std::raw` module.Charles Lew-14/+11
2021-04-19fix suggestion for unsized function parameterslcnr-0/+814
2021-04-06Point at `impl` and type defs introducing requirements on E0277Esteban Küber-5/+25
2021-04-03Remove redundant `ignore-tidy-linelength` annotationsSimon Jakobi-3/+1
This is step 2 towards fixing #77548. In the codegen and codegen-units test suites, the `//` comment markers were kept in order not to affect any source locations. This is because these tests cannot be automatically `--bless`ed.
2021-03-31give full path of constraint in suggest_constraining_type_paramhi-rustin-11/+11
revert file bless with nll mode
2021-02-06Rollup merge of #81738 - camelid:misc-small-diag-cleanup, r=lcnrJonas Schievink-4/+4
Miscellaneous small diagnostics cleanup
2021-02-03Miscellaneous small diagnostics cleanupCamelid-4/+4
2021-02-04add `relaxed_struct_unsize` feature gateBastian Kauschke-0/+1
2021-02-04relax adt unsizing requirementsBastian Kauschke-0/+11
2020-10-18Use smaller example for issue-71659Yuki Okushi-77/+15
2020-10-18Add test for issue-75707Yuki Okushi-0/+29
2020-10-18Add test for issue-71659Yuki Okushi-0/+103
2020-09-02pretty: trim paths of unique symbolsDan Aloni-35/+35
If a symbol name can only be imported from one place for a type, and as long as it was not glob-imported anywhere in the current crate, we can trim its printed path and print only the name. This has wide implications on error messages with types, for example, shortening `std::vec::Vec` to just `Vec`, as long as there is no other `Vec` importable anywhere. This adds a new '-Z trim-diagnostic-paths=false' option to control this feature. On the good path, with no diagnosis printed, we should try to avoid issuing this query, so we need to prevent trimmed_def_paths query on several cases. This change also relies on a previous commit that differentiates between `Debug` and `Display` on various rustc types, where the latter is trimmed and presented to the user and the former is not.
2020-07-25Use the proper span when WF-checking an impl self typeAaron Hill-2/+2
2020-07-14Reword messageEsteban Küber-20/+20
2020-07-14Remove redundant explanatory `note` for type parametersEsteban Küber-12/+0
2020-07-14Remove `Sized` `on_unimplemented` noteEsteban Küber-31/+0
2020-07-14Suggest boxing or borrowing unsized fieldsEsteban Küber-20/+200
2020-06-16Provide `help` when `T: ?Sized` can't be suggestedEsteban Küber-0/+28
2020-06-15Account for derived obligations to suggest `?Sized` boundEsteban Küber-0/+4
Fix #27964.
2020-04-24Add regression test for #26376Wesley Wiser-0/+25
2020-04-18Do not emit note for projected derived obligationsEsteban Küber-1/+0
2020-04-18Maintain chain of derived obligationsEsteban Küber-0/+4
When evaluating the derived obligations from super traits, maintain a reference to the original obligation in order to give more actionable context in the output.
2020-04-08Small tweaks to required bound spanEsteban Küber-6/+6
2020-04-08Use `PredicateObligation`s instead of `Predicate`sEsteban Küber-4/+4
Keep more information about trait binding failures.
2020-02-02Account for `?Sized` type parameter boundsEsteban Küber-18/+18
2019-11-24Fix pointing at arg for fulfillment errors in function callsJanusz Marcinkiewicz-0/+63
2019-10-15Handle more casesEsteban Küber-10/+21
2019-10-15Use structured suggestion for restricting boundsEsteban Küber-8/+12
When a trait bound is not met and restricting a type parameter would make the restriction hold, use a structured suggestion pointing at an appropriate place (type param in param list or `where` clause). Account for opaque parameters where instead of suggesting extending the `where` clause, we suggest appending the new restriction: `fn foo(impl Trait + UnmetTrait)`.
2019-09-22Point at type param when it's cause of unfulfilled obligationEsteban Küber-2/+2
2019-09-22On obligation errors point at the unfulfilled binding when possibleEsteban Küber-2/+2
2019-08-31Use span label instead of note for cause in E0631Esteban Küber-30/+17
2019-05-29Update ui test suite to use dynmemoryruins-16/+16
2019-04-22Remove double trailing newlinesvarkor-1/+0
2019-01-01Fix broken links to second edition TRPL.Corey Farwell-27/+27
Fixes https://github.com/rust-lang/rust/issues/57104.
2018-12-25Remove licensesMark Rousskov-105/+33
2018-08-14Merged migrated compile-fail tests and ui tests. Fixes #46841.David Wood-0/+547