Cargo.lock の先頭には手で編集しないように注意喚起する以下のコメントが書かれている。
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
@generated
にアットマークがついているのは何の意味があるのだろうか。
この注意書きが導入された PR のコメントに説明が書いてあった。
Our code review tool (phabricator) will automatically hide changes to files that are marked as generated (via detecting the text
@generated
in the file)
コードレビューツール Phabricator は @generated
を含むファイルの差分を非表示にするらしい。
また @generated
マーカーについての解説サイト https://generated.at も存在し、他の対応ツールも書いてある。