Should we make `!` not have trivial ABI?

オープン
#634 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
活発
技術スタック
rust
領域
compilers

調査の方向性

Read the discussion in this issue, then review the referenced Rust pull request 157973 and issue 147588 to understand why ! was classified as trivial-ABI. Determine the ABI and safety implications of removing that classification and identify the compiler or reference sections that would need updating. This is primarily a design decision, so a newcomer should not implement it without maintainer direction.

索引モデルが issue の本文から書いたものです。

説明

I-opsem-nominated

! entered the list of trivial-ABI-typed mostly to make https://github.com/rust-lang/rust/pull/157973 as small a breaking change as possible. But this does seem highly dubious TBH. Should we remove it from the list? It is, AFAIK, the only uninhabited type with trivial ABI, so removing it would also get us a nice new invariant -- "trivial-ABI types are inhabited".
Cc @Jules-Bertholet @chorman0773 @bjorn3

Related: https://github.com/rust-lang/rust/issues/147588

主要言語
言語のデータがありません
スター
760
フォーク
68
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

rust-lang/unsafe-code-guidelines のほかの issue

rust-lang/unsafe-code-guidelines の issue をすべて見る

似ている issue

Compilers の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。