Order of `use` items disagrees with rustfmt on beta

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
43/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
rust, vim

調査の方向性

Start by reading the format-on-save behavior in rust.vim and the supplied Rust use example. Compare its ordering with the output of cargo fmt on stable or beta to locate the disagreement. Done means rust.vim formats the items in the same order as cargo fmt; the issue names no test file.

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

説明

rust.vim version: 889b9a7515db477f4cb6808bef1769e53493c578

rustc version: rustc 1.90.0-beta.1 (788da80fc 2025-08-04)

editor or extension: NVIM v0.11.3

code snippet to reproduce:

use std::collections::{hash_map, HashMap};

rust.vim's format-on-save insists that this should be formatted as above, but cargo fmt on both beta and stable rewrites it to:

use std::collections::{HashMap, hash_map};
主要言語
Vim Script
スター
4.2k
フォーク
323
PR マージ指標
30日以内にマージされた PR はありません

環境構築

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

はじめの一歩

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

rust-lang/rust.vim のほかの issue

rust-lang/rust.vim の issue をすべて見る

似ている issue

DevTools の issue をもっと見る

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

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