Thread overview
[Issue 21993] Cannot cast to noreturn
Jun 04, 2021
Dlang Bot
Jun 07, 2021
Dlang Bot
Jun 27, 2021
Dlang Bot
June 04, 2021
https://issues.dlang.org/show_bug.cgi?id=21993

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #1 from Dlang Bot <dlang-bot@dlang.rocks> ---
@MoonlightSentinel created dlang/dmd pull request #12633 "Fix 21993 - Implement cast(noreturn)" fixing this issue:

- Fix 21993 - Implement cast(noreturn)

  Rewrite `cast(<qual> noreturn) <exp>` as `<exp>, assert(false)`.

  DIP:
  > Every type is allowed to be explicitly cast to noreturn. (Not to be
  > confused with noreturn implicitly casting to every type.) It generates
  > an assert(0):

https://github.com/dlang/dmd/pull/12633

--
June 07, 2021
https://issues.dlang.org/show_bug.cgi?id=21993

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #12633 "Fix 21993 - Implement cast(noreturn)" was merged
into stable:

- 7bca3a660cdf02f2e9b983497c1442c6a269bc63 by MoonlightSentinel:
  Fix 21993 - Implement cast(noreturn)

  Rewrite `cast(<qual> noreturn) <exp>` as `<exp>, assert(false)`.

  DIP:
  > Every type is allowed to be explicitly cast to noreturn. (Not to be
  > confused with noreturn implicitly casting to every type.) It generates
  > an assert(0):

https://github.com/dlang/dmd/pull/12633

--
June 27, 2021
https://issues.dlang.org/show_bug.cgi?id=21993

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #12768 "Merge stable into master" was merged into master:

- 346de2d11de903bf95c7a6e573ef717110491e9c by MoonlightSentinel:
  Fix 21993 - Implement cast(noreturn)

  Rewrite `cast(<qual> noreturn) <exp>` as `<exp>, assert(false)`.

  DIP:
  > Every type is allowed to be explicitly cast to noreturn. (Not to be
  > confused with noreturn implicitly casting to every type.) It generates
  > an assert(0):

https://github.com/dlang/dmd/pull/12768

--