Should we make `!` not have trivial ABI?

Đang mở
#634 5 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
compilers

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
760
Fork
68
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của rust-lang/unsafe-code-guidelines

Tất cả issue của rust-lang/unsafe-code-guidelines

Issue tương tự

Thêm issue về Compilers

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.