about summary refs log tree commit diff
path: root/src/test/ui/dyn-star
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-683/+0
2023-01-01Use the correct tracking issue for `dyn_star`Léo Lanteri Thauvin-10/+10
2022-12-14Don't bug if we're trying to cast dyn* to a nother typeMichael Goulet-0/+20
2022-12-10Introduce `with_forced_trimmed_paths`Esteban Küber-1/+1
2022-11-24Adjust testsMichael Goulet-5/+21
2022-11-24Properly handle `Pin<&mut dyn* Trait>` receiver in codegenMichael Goulet-0/+62
2022-11-24Disable dyn* upcastingMichael Goulet-2/+57
2022-11-21Coercions work nowEric Holk-1/+1
2022-11-21Add a test case for async dyn* traitsEric Holk-0/+36
2022-11-18Auto merge of #104591 - Manishearth:rollup-b3ser4e, r=Manishearthbors-0/+115
Rollup of 8 pull requests Successful merges: - #102977 (remove HRTB from `[T]::is_sorted_by{,_key}`) - #103378 (Fix mod_inv termination for the last iteration) - #103456 (`unchecked_{shl|shr}` should use `u32` as the RHS) - #103701 (Simplify some pointer method implementations) - #104047 (Diagnostics `icu4x` based list formatting.) - #104338 (Enforce that `dyn*` coercions are actually pointer-sized) - #104498 (Edit docs for `rustc_errors::Handler::stash_diagnostic`) - #104556 (rustdoc: use `code-header` class to format enum variants) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2022-11-18Check both align and size in PointerSizedMichael Goulet-0/+48
2022-11-18Enforce that dyn* casts are actually pointer-sizedMichael Goulet-0/+67
2022-11-18Rollup merge of #103386 - compiler-errors:no-coerceunsized-to-dynstar, r=eholkMatthias Krüger-0/+44
Don't allow `CoerceUnsized` into `dyn*` (except for trait upcasting) This makes sure we don't accidentally allow coercions like `Box<T>` -> `Box<dyn* Trait>`, or in the case of this ICE, `&T` to `&dyn* Trait`. These coercions don't make sense, at least not via the `CoerceUnsized` trait. Fixes #102172 Fixes #102429
2022-11-16Check `dyn*` return type correctlyMichael Goulet-0/+21
2022-11-10Regression test for coercion of mut-ref to dyn-starMichael Goulet-0/+32
2022-11-10Don't CoerceUnsized dyn* to dyn*Michael Goulet-0/+26
2022-11-10Don't allow implement CoerceUnsized into dyn-starMichael Goulet-0/+18
2022-10-28Emit proper error when casting to Ddyn-starMichael Goulet-0/+58
2022-10-14Address nits, add test for implicit dyn-star coercion without feature gateMichael Goulet-0/+42
2022-10-14Allow dyn* upcastingMichael Goulet-0/+33
2022-10-14Make dyn* cast into a coercionMichael Goulet-6/+7
2022-10-04Support casting boxes to dyn*Eric Holk-0/+17
2022-09-13Address code review commentsEric Holk-2/+7
2022-09-12Move dyn* tests to their own directoryEric Holk-0/+83
2022-09-12Call destructors when dyn* object goes out of scopeEric Holk-1/+1
2022-09-12dyn* through more typechecking and MIREric Holk-7/+5
2022-09-12Typecheck dyn* coercionsEric Holk-2/+15
Also changes things to treat dyn* as a sized type, unlike dyn Trait.
2022-09-12Introduce dyn_star feature flagEric Holk-0/+32
The primary purpose of this commit is to introduce the dyn_star flag so we can begin experimenting with implementation. In order to have something to do in the feature gate test, we also add parser support for `dyn* Trait` objects. These are currently treated just like `dyn Trait` objects, but this will change in the future. Note that for now `dyn* Trait` is experimental syntax to enable implementing some of the machinery needed for async fn in dyn traits without fully supporting the feature.