What is the operational spec for `use` expressions?

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
20/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
rust
領域
compilers

調査の方向性

Start by reading Rust PR 139088 and the tracking issue rust-lang/rust#132290 to understand the observed optimizations around use expressions. The work is done when the operational semantics are agreed, the implementation is consistent with that specification, and Miri explores all nondeterministic options if nondeterminism is part of the model.

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

説明

Looking at https://github.com/rust-lang/rust/pull/139088 there seem to be some non-trivial things going on, with optimizations removing calls to user-defined functions, which is usually a no-go. We should figure out a solid story here and then ensure the implementation is consistent with that. If the story involves non-determinism (which seems likely), we should enable Miri to explore all non-deterministic options.

Tracking issue: https://github.com/rust-lang/rust/issues/132290

Cc @spastorino @rust-lang/opsem

主要言語
言語のデータがありません
スター
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 を短くまとめたダイジェスト。