Skip to content

Conversation

@KeenS
Copy link
Member

@KeenS KeenS commented Jul 13, 2016

ほぼコードの変更と改行調整のみ

@KeenS
Copy link
Member Author

KeenS commented Dec 12, 2016

確認済みました。 @tatsuya6502 お手隙でレビューお願いします。

@KeenS KeenS changed the title [WIP] 6.3 No Stdlib 6.3 No Stdlib Dec 12, 2016
@tatsuya6502 tatsuya6502 self-requested a review January 23, 2017 14:50
Copy link
Member

@tatsuya6502 tatsuya6502 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1点、コメントしました。ご確認をお願いします。

<!-- which do not trigger a panic can be assured that this function is never -->
<!-- called. The second function, `panic_fmt`, is also used by the failure -->
<!-- mechanisms of the compiler. -->
2つある関数のうち1つ目は `eh_personality` で、コンパイラの失敗メカニズムに使われます。これはしばしばGCCのpersonality関数に割り当てられますが(詳細は[libstd実装](unwind)を参照してください)、パニックを発生させないクレートではこの関数は呼ばれないことが保証されています。2つ目の関数は `panic_fmt` で、こちらもコンパイラの失敗メカニズムのために使われます。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

こちらですが、

[libstd実装](unwind)

Circle CI で生成された HTML を見ると、リンクがうまく生成されていないようです。原文のように、unwind の周りのカッコを [ ] に変更してください。

原文:
[libstd implementation][unwind]

@tatsuya6502 tatsuya6502 added this to the 1.9 milestone Jan 24, 2017
@KeenS
Copy link
Member Author

KeenS commented Jan 25, 2017

うっかりしてまし。直しました。

@tatsuya6502
Copy link
Member

tatsuya6502 commented Jan 26, 2017

@KeenS 修正ありがとうございます。

すみません。先に確認しておくべきでしたが、リンク先の Rust ソースファイルがリネームされて、リンクが切れてしまってますね。TRPL の英語版では、1.11.0 の時に、現在のソースファイルへリンクが更新されています。

コミットログ:rust bb94e6a73 -- Fixed link in Rust Book (no-stdlib)

-[unwind]: https://github.com/rust-lang/rust/blob/master/src/libstd/sys/common/unwind/gcc.rs
+[unwind]: https://github.com/rust-lang/rust/blob/master/src/libpanic_unwind/gcc.rs

こういう場合、どうしましょうか?

  • リンク切れに気づいた時は、我々でリンク先を更新する。
  • 放っておく。同じようなリンク切れは他にもたくさんありそうだし、これは 1.9 の TRPL なので気にしない。(いま直しても、また将来、いつの間にかリンク切れするかもしれない)

個人的には、後者でいいかなあと感じてますが。

@KeenS
Copy link
Member Author

KeenS commented Jan 26, 2017

確認してましせんでした。
私も後者でいいと思います。そのためにバージョン毎に管理してる訳ですし。

@tatsuya6502
Copy link
Member

わかりました。では、そのままにしておきましょう。マージしますね。

おつかれさまでした!

@tatsuya6502 tatsuya6502 merged commit e0ec311 into rust-lang-ja:master Jan 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants