{"id":45376,"date":"2022-11-13T00:34:19","date_gmt":"2023-07-29T20:28:25","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/45376-2\/"},"modified":"2024-04-29T00:22:48","modified_gmt":"2024-04-28T16:22:48","slug":"45376-2","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/45376-2\/","title":{"rendered":""},"content":{"rendered":"<p>Rust 1.12.0 \u304c 2016\u5e749\u670830\u65e5\uff08\u65e5\u672c\u6642\u9593\uff09\u306b\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u307e\u3057\u305f\u3002Rust \u306f\u3001\u5b89\u5168\u6027\u3001\u30b9\u30d4\u30fc\u30c9\u3001\u4e26\u5217\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306b\u30d5\u30a9\u30fc\u30ab\u30b9\u3057\u305f\u3001\u30b7\u30b9\u30c6\u30e0\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5411\u3051\u306e\u8a00\u8a9e\u3067\u3059\u3002<\/p>\n<hr \/>\n<p>2016\u5e7410\u670821\u65e5\u8ffd\u8a18\uff1a<br \/>\n\u672c\u65e5 Rust 1.12.1 \u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u307e\u3057\u305f\u3002\u4e3b\u306b 1.12.0 \u3067\u898b\u3064\u304b\u3063\u305f MIR \u95a2\u9023\u306e\u4e0d\u5177\u5408\u306e\u5bfe\u5fdc\u304c\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<ul class=\"post-ul\">https:\/\/blog.rust-lang.org\/2016\/10\/20\/Rust-1.12.1.html<\/ul>\n<p>\u4e0a\u306e\u30ea\u30ea\u30fc\u30b9\u30a2\u30ca\u30a6\u30f3\u30b9\u306b\u3082\u66f8\u304b\u308c\u3066\u3044\u307e\u3059\u304c\u3001Rust \u306b\u306f\uff16\u9031\u9593\u306e\u30d9\u30fc\u30bf\u671f\u9593\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u306e\u3067\u3001CI \u306e\u969b\u306b\u3001\u5b89\u5b9a\u7248\u3060\u3051\u3067\u306a\u304f\u3001\u30d9\u30fc\u30bf\u7248\u3082\u4f7f\u3063\u3066\u30c6\u30b9\u30c8\u3059\u308b\u3053\u3068\u3092\u304a\u3059\u3059\u3081\u3057\u307e\u3059\u3002<\/p>\n<p>2016\u5e7410\u67084\u65e5\u8ffd\u8a18\uff1a<br \/>\n\u300c\u5237\u65b0\u3055\u308c\u305f\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u300d\u3068\u300cMIR \u30b3\u30fc\u30c9\u751f\u6210\u300d\u306e\u7bc0\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f\uff09<\/p>\n<hr \/>\n<p>Rust 1.12.0 \u306e\u30ea\u30ea\u30fc\u30b9\u306b\u3064\u3044\u3066<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30aa\u30d5\u30a3\u30b7\u30e3\u30eb\u30d6\u30ed\u30b0\u306e \u30ea\u30ea\u30fc\u30b9\u30a2\u30ca\u30a6\u30f3\u30b9<\/ul>\n<\/li>\n<\/ul>\n<p>\u30ea\u30ea\u30fc\u30b9\u30ce\u30fc\u30c8\uff08GitHub\u30ea\u30ea\u30fc\u30b9\u30da\u30fc\u30b8\uff09<br \/>\nRust \u306e \u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30da\u30fc\u30b8<\/p>\n<p>\u307e\u305f\u540c\u6642\u306b\u3001\u6b21\u306e\u30d0\u30fc\u30b8\u30e7\u30f3 1.13.0 \u304c\u30d9\u30fc\u30bf\u7248\u306b\u306a\u308a\u307e\u3057\u305f\u30021.13.0 \u306f\u3001\uff16\u9031\u9593\u5f8c\u306e2016\u5e7411\u670811\u65e5\uff08\u65e5\u672c\u6642\u9593\uff09\u306b\u30ea\u30ea\u30fc\u30b9\u306e\u4e88\u5b9a\u3067\u3059\u3002<\/p>\n<p>\u3053\u308c\u304b\u3089 Rust \u3092\u59cb\u3081\u308b\u4eba\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u65e5\u672c\u8a9e\u7ffb\u8a33\u7248\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u304a\u3059\u3059\u3081\u3057\u307e\u3059\u3002<\/p>\n<p>\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e Rust 1.6<\/p>\n<p>\u30aa\u30d5\u30a3\u30b7\u30e3\u30eb\u30ac\u30a4\u30c9 The Rust Programming Language \u306e\u65e5\u672c\u8a9e\u7ffb\u8a33\u7248<\/p>\n<p>Rust by Example \u65e5\u672c\u8a9e\u7248<\/p>\n<p>Rust by Example \u306e\u65e5\u672c\u8a9e\u7ffb\u8a33\u7248<\/p>\n<p>\u4ee5\u4e0b\u3001\u30ea\u30ea\u30fc\u30b9\u30a2\u30ca\u30a6\u30f3\u30b9\u306b\u66f8\u304b\u308c\u3066\u3044\u308b\u5185\u5bb9\u304b\u3089\u3001\u4e3b\u306a\u3082\u306e\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\uff08\u3053\u306e\u8a18\u4e8b\u306f\u7ffb\u8a33\u3067\u306f\u306a\u304f\u3001\u30ea\u30ea\u30fc\u30b9\u30a2\u30ca\u30a6\u30f3\u30b9\u3092\u30d9\u30fc\u30b9\u306b \u5927\u5e45\u306b \u52a0\u7b46\u4fee\u6b63\u3057\u305f\u3082\u306e\u3067\u3059\uff09<\/p>\n<h3>1.12.0 \u5b89\u5b9a\u7248\u306e\u5909\u66f4\u70b9<\/h3>\n<p>\u3053\u306e 1.12.0 \u30ea\u30ea\u30fc\u30b9\u306f\u3001\u6050\u3089\u304f\u30011.0 \u306e\u30ea\u30ea\u30fc\u30b9\u4ee5\u6765\u3001\u6700\u5927\u306e\u3082\u306e\u306b\u306a\u308b\u3067\u3057\u3087\u3046\u3002\u307e\u305a\u306f\u305d\u306e\u30cf\u30a4\u30e9\u30a4\u30c8\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>\u76ee\u306b\u898b\u3048\u308b\u4e00\u756a\u306e\u5909\u5316\u306f\u3001rustc \u304c\u51fa\u529b\u3059\u308b\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u66f8\u5f0f\u304c\u4e00\u65b0\u3055\u308c\u305f\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u3053\u306e\u66f8\u5f0f\u306b\u3064\u3044\u3066\u306f\u3001\u4ee5\u524d\u516c\u5f0f\u30d6\u30ed\u30b0\u3067\u3082 \u82f1\u8a9e\u3067\u7d39\u4ecb\u3057\u307e\u3057\u305f\u304c\u3001\u4eca\u56de\u306e\u30ea\u30ea\u30fc\u30b9\u304c\u3001\u305d\u308c\u3092\u304a\u62ab\u9732\u76ee\u3059\u308b\u6700\u521d\u306e\u5b89\u5b9a\u7248\u3068\u306a\u308a\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306f\u3001\u8a2d\u8a08\u3084\u30c6\u30b9\u30c8\u3001rustc \u306e\u30a8\u30e9\u30fc\u3092\uff11\u3064\u305a\u3064\u65b0\u66f8\u5f0f\u3078\u4fee\u6b63\u3059\u308b\u3068\u3044\u3063\u305f\u3001\u9014\u65b9\u3082\u306a\u3044 \u30dc\u30e9\u30f3\u30c6\u30a3\u30a2\u6d3b\u52d5 \u306b\u3088\u3063\u3066\u5b9f\u73fe\u306b\u81f3\u308a\u307e\u3057\u305f\u3002\u7686\u3055\u3093\u304b\u3089\u3069\u306e\u3088\u3046\u306a\u53cd\u5fdc\u304c\u3044\u305f\u3060\u3051\u308b\u304b\u3001\u697d\u3057\u307f\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d5efa37434c4406cf6aed\/16-0.png\" alt=\"\u501f\u7528\u30c1\u30a7\u30c3\u30ab\u30fc\u306e\u65b0\u3057\u3044\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\" \/><\/div>\n<p>\u5185\u90e8\u7684\u306a\u5909\u66f4\u306e\u306a\u304b\u3067\u6700\u5927\u306e\u3082\u306e\u306f\u3001\u65b0\u3057\u3044 Rust MIR \u306b\u57fa\u3065\u304f\u3001\u65b0\u305f\u306a\u30b3\u30f3\u30d1\u30a4\u30e9\u30fb\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306e\u5c0e\u5165\u3067\u3059\u3002\u4eca\u306e\u3068\u3053\u308d\u8868\u9762\u4e0a\u306f\u3001\u307b\u3068\u3093\u3069\u5909\u5316\u306f\u611f\u3058\u3089\u308c\u306a\u3044\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u3053\u306e\u5909\u66f4\u306f\u3001\u4eca\u5f8c\u958b\u767a\u3092\u4e88\u5b9a\u3057\u3066\u3044\u308b\u69d8\u3005\u306a\u30b3\u30f3\u30d1\u30a4\u30e9\u6700\u9069\u5316\u3078\u306e\u9053\u3092\u958b\u304f\u3001\u91cd\u8981\u306a\u3082\u306e\u3067\u3057\u305f\u3002\u307e\u305f\u3001\u3059\u3067\u306b\u4e00\u90e8\u306e\u30b3\u30fc\u30c9\u30d9\u30fc\u30b9\u3067\u306f\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u9593\u306e\u77ed\u7e2e\u3084\u30d0\u30a4\u30ca\u30ea\u30b5\u30a4\u30ba\u306e\u7e2e\u5c0f\u3068\u3044\u3063\u305f\u52b9\u679c\u304c\u73fe\u308c\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<h4>\u5237\u65b0\u3055\u308c\u305f\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8<\/h4>\n<p>1.12.0 \u3067\u306f\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u66f8\u5f0f\u304c\u5237\u65b0\u3055\u308c\u3001\u30a8\u30e9\u30fc\u539f\u56e0\u306e\u7406\u89e3\u306b\u5f79\u7acb\u3064\u30b3\u30f3\u30d1\u30a4\u30e9\u5185\u90e8\u306e\u60c5\u5831\u304c\u3001\u5f93\u6765\u3088\u308a\u3082\u8a73\u7d30\u306b\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u65b0\u66f8\u5f0f\u3067\u306f\u3001\u3042\u306a\u305f\u306e\u30b3\u30fc\u30c9\u81ea\u4f53\u304c\u8a71\u984c\u306e\u4e2d\u5fc3\u3068\u306a\u308a\u3001\u30a8\u30e9\u30fc\u306b\u95a2\u3059\u308b\u90e8\u5206\u304c\u30cf\u30a4\u30e9\u30a4\u30c8\u8868\u793a\u3055\u308c\u308b\u3068\u5171\u306b\u3001\u306a\u306b\u304c\u554f\u984c\u306a\u306e\u304b\u6ce8\u91c8\u3068\u3057\u3066\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3092\u3042\u3052\u307e\u3057\u3087\u3046\u3002\u30c8\u30ec\u30a4\u30c8\u3092\u5b9f\u88c5(impl) \u3059\u308b\u969b\u306b\u3001\u30c8\u30ec\u30a4\u30c8\u306e\u5b9a\u7fa9\u3068\u5408\u308f\u306a\u304b\u3063\u305f\u5834\u5408\u30011.11 \u306a\u3089\u3053\u3046\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d5efa37434c4406cf6aed\/21-0.png\" alt=\"\u53e4\u3044\u5f62\u5f0f\u306e\u30c8\u30ec\u30a4\u30c8\u4e0d\u4e00\u81f4\u30a8\u30e9\u30fc\" \/><\/div>\n<p>\u65b0\u66f8\u5f0f\u3067\u306f\u3001\u554f\u984c\u306e\u6838\u5fc3\u3068\u306a\u308b\u90e8\u5206\u306e\u30b3\u30fc\u30c9\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u4f8b\u3067\u306f\u3001\u95a2\u9023\u3059\u308b\u30c8\u30ec\u30a4\u30c8\u306e\u5b9a\u7fa9\u3068\u554f\u984c\u3068\u306a\u3063\u3066\u308b\u5b9f\u88c5\u304c\u5bfe\u306b\u306a\u3063\u3066\u8868\u793a\u3055\u308c\u3001\u306a\u306b\u304c\u4e00\u81f4\u3057\u306a\u3044\u306e\u304b\u304c\u4e00\u76ee\u77ad\u7136\u3067\u3059\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d5efa37434c4406cf6aed\/23-0.png\" alt=\"\u65b0\u3057\u3044\u5f62\u5f0f\u306e\u5f62\u5f0f\u306e\u30c8\u30ec\u30a4\u30c8\u4e0d\u4e00\u81f4\u30a8\u30e9\u30fc\" \/><\/div>\n<p>\u5f53\u521d\u3001\u3053\u306e\u65b0\u66f8\u5f0f\u306f\u3001\u501f\u7528\u30c1\u30a7\u30c3\u30ab\u30fc\u306b\u95a2\u3059\u308b\u30a8\u30e9\u30fc\u306e\u7406\u89e3\u3092\u52a9\u3051\u308b\u305f\u3081\u306b\u8a2d\u8a08\u3055\u308c\u307e\u3057\u305f\u3002\u3057\u304b\u3057\u79c1\u305f\u3061\u306f\u3001\u4e0a\u306e\u4f8b\u306e\u3088\u3046\u306b\u3001\u3053\u306e\u66f8\u5f0f\u304c\u5e45\u5e83\u3044\u7a2e\u985e\u306e\u30a8\u30e9\u30fc\u306b\u5bfe\u3057\u3066\u9069\u7528\u3067\u304d\u308b\u3053\u3068\u306b\u6c17\u4ed8\u304d\u307e\u3057\u305f\u3002\u3082\u3057\u8a2d\u8a08\u306b\u3064\u3044\u3066\u8208\u5473\u304c\u3042\u308b\u306a\u3089\u3001\u904e\u53bb\u306e\u516c\u5f0f\u30d6\u30ed\u30b0\u306e\u8a18\u4e8b \u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u6700\u5f8c\u306b\u3001\u30d5\u30e9\u30b0\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u30a8\u30e9\u30fc\u3092 JSON \u5f62\u5f0f\u3067\u5f97\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u6700\u521d\u306b\u304a\u898b\u305b\u3057\u305f\u30a8\u30e9\u30fc\u3067\u3059\u304c\u3001\u540c\u3058\u30b3\u30fc\u30c9\u3092 &#8211;error-format=json \u4ed8\u304d\u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b\u3068\u3053\u3046\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nv\">$ <\/span>rustc borrowck-assign-comp.rs <span class=\"nt\">--error-format<\/span><span class=\"o\">=<\/span>json\r\n<span class=\"o\">{<\/span><span class=\"s2\">\"message\"<\/span>:<span class=\"s2\">\"cannot assign to <\/span><span class=\"sb\">`<\/span>p.x<span class=\"sb\">`<\/span><span class=\"s2\"> because it is borrowed\"<\/span>,<span class=\"s2\">\"level\"<\/span>:<span class=\"s2\">\"error\"<\/span>,<span class=\"s2\">\"spans\"<\/span>:[<span class=\"o\">{<\/span><span class=\"s2\">\"file_name\"<\/span>:<span class=\"s2\">\"borrowck-assign-comp.rs\"<\/span>,<span class=\"s2\">\"byte_start\"<\/span>:562,<span class=\"s2\">\"byte_end\"<\/span>:563,<span class=\"s2\">\"line_start\"<\/span>:15,<span class=\"s2\">\"line_end\"<\/span>:15,<span class=\"s2\">\"column_start\"<\/span>:14,<span class=\"s2\">\"column_end\"<\/span>:15,<span class=\"s2\">\"is_primary\"<\/span>:false,<span class=\"s2\">\"text\"<\/span>:[<span class=\"o\">{<\/span><span class=\"s2\">\"text\"<\/span>:<span class=\"s2\">\"    let q = &amp;p;\"<\/span>,<span class=\"s2\">\"highlight_start\"<\/span>:14,<span class=\"s2\">\"highlight_end\"<\/span>:15<span class=\"o\">}]<\/span>,<span class=\"s2\">\"label\"<\/span>:<span class=\"s2\">\"borrow of <\/span><span class=\"sb\">`<\/span>p.x<span class=\"sb\">`<\/span><span class=\"s2\"> occurs here\"<\/span>,<span class=\"s2\">\"suggested_replacement\"<\/span>:null,<span class=\"s2\">\"expansion\"<\/span>:null<span class=\"o\">}]<\/span>,<span class=\"s2\">\"label\"<\/span>:<span class=\"s2\">\"assignment to borrowed <\/span><span class=\"sb\">`<\/span>p.x<span class=\"sb\">`<\/span><span class=\"s2\"> occurs here\"<\/span>,<span class=\"s2\">\"suggested_replacement\"<\/span>:null,<span class=\"s2\">\"expansion\"<\/span>:null<span class=\"o\">}]<\/span>,<span class=\"s2\">\"children\"<\/span>:[],<span class=\"s2\">\"rendered\"<\/span>:null<span class=\"o\">}<\/span>\r\n<span class=\"o\">{<\/span><span class=\"s2\">\"message\"<\/span>:<span class=\"s2\">\"aborting due to previous error\"<\/span>,<span class=\"s2\">\"code\"<\/span>:null,<span class=\"s2\">\"level\"<\/span>:<span class=\"s2\">\"error\"<\/span>,<span class=\"s2\">\"spans\"<\/span>:[],<span class=\"s2\">\"children\"<\/span>:[],<span class=\"s2\">\"rendered\"<\/span>:null<span class=\"o\">}<\/span>\r\n<\/code><\/pre>\n<p>\u5b9f\u306f\u4e0a\u306e\u51fa\u529b\u306f\u7c21\u5358\u306e\u305f\u3081\u306b\u5c11\u3057\u9593\u5f15\u3044\u3066\u3044\u307e\u3059\u304c\u3001\u96f0\u56f2\u6c17\u306f\u3064\u304b\u3081\u308b\u3067\u3057\u3087\u3046\u3002\u3053\u306e\u51fa\u529b\u306f\u4e3b\u306b\u30c4\u30fc\u30eb\u306b\u3088\u3063\u3066\u4f7f\u308f\u308c\u308b\u3053\u3068\u3092\u60f3\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002\u79c1\u305f\u3061\u306f\u3001IDE \u3084\u958b\u767a\u306b\u4f7f\u3046\u30c4\u30fc\u30eb\u306b\u304a\u3044\u3066 Rust \u306e\u30b5\u30dd\u30fc\u30c8\u3092\u5411\u4e0a\u3059\u308b\u305f\u3081\u306e\u52aa\u529b\u3092\u7d9a\u3051\u3066\u3044\u307e\u3059\u304c\u3001\u3053\u306e\u51fa\u529b\u306f\u3001\u305d\u3046\u3044\u3063\u305f\u52aa\u529b\u306e\u3054\u304f\u4e00\u90e8\u3067\u3059\u3002<\/p>\n<h4>MIR \u30b3\u30fc\u30c9\u751f\u6210<\/h4>\n<p>\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u6a5f\u68b0\u8a9e\u306a\u3069\u3078\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b\u969b\u3001\u591a\u304f\u306e\u30b3\u30f3\u30d1\u30a4\u30e9\u306f\u3001\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u4e2d\u9593\u7684\u306a\u8868\u73fe\u306b\u5909\u63db\u3057\u307e\u3059\u3002\u3053\u308c\u3092 Intermediate Representation\u3001\u307e\u305f\u306f IR \u3068\u547c\u3073\u307e\u3059\u3002\u300cMIR\u300d\u3068\u306f Rust \u306b\u52a0\u308f\u3063\u305f\u3001\u4e2d\u9593\u30ec\u30d9\u30eb\u306e IR (Mid-level IR) \u3092\u6307\u3057\u307e\u3059\u3002\u5f93\u6765\u306e rustc \u306f\u3001IR \u3068\u3057\u3066\u552f\u4e00\u306e\u300cRust \u62bd\u8c61\u69cb\u6587\u6728\u300d\u3092\u5168\u4f53\u3067\u4f7f\u3063\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u4eca\u56de\u3001MIR \u3092\u52a0\u3048\u305f\u3053\u3068\u3067\u3001\u30b3\u30f3\u30d1\u30a4\u30e9\u5185\u90e8\u306e\u51e6\u7406\u304c\u6574\u7406\u3055\u308c\u307e\u3057\u305f\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30b3\u30f3\u30d1\u30a4\u30e9\u304c\u884c\u3046\u89e3\u6790\u3068\u6700\u9069\u5316\u306e\u4e2d\u3067\u3001\u5f93\u6765\u306f\u6b63\u3057\u304f\u5b9f\u88c5\u3059\u308b\u3053\u3068\u304c\u56f0\u96e3\u3060\u3063\u305f\u3082\u306e\u3082\u3001\u4eca\u5f8c\u3001\u5b9f\u73fe\u3067\u304d\u308b\u9053\u304c\u958b\u3051\u307e\u3057\u305f\u3002<\/p>\n<p>MIR \u5c0e\u5165\u5f8c\u306e\u6700\u521d\u306e\u4f5c\u696d\u306f\u3001rustc \u3067\u300c\u7ffb\u8a33\u300d\u3068\u547c\u3070\u308c\u308b\u3001\u300cLLVM IR \u3092\u751f\u6210\u3059\u308b\u5de5\u7a0b\u300d\u3092\u66f8\u304d\u76f4\u3059\u3053\u3068\u3067\u3057\u305f\u3002LLVM \u306f\u3001Rust \u304c\u4f7f\u7528\u3057\u3066\u3044\u308b\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306e\u30b3\u30f3\u30d1\u30a4\u30e9\u30fb\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u3067\u3042\u308a\u3001LLVM IR \u306f\u305d\u306e\u5165\u529b\u5f62\u5f0f\u3067\u3059\u3002\u6570\u30f6\u6708\u306b\u6e21\u308b\u4f5c\u696d\u3092\u901a\u3057\u3066\u3001\u3064\u3044\u306b\u3001MIR \u30d9\u30fc\u30b9\u306e\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u304c\u3001\u672c\u756a\u5229\u7528\u306b\u8010\u3048\u3046\u308b\u30ec\u30d9\u30eb\u307e\u3067\u719f\u6210\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>MIR \u3067\u306f\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u5236\u5fa1\u30d5\u30ed\u30fc\u306b\u95a2\u3059\u308b\u60c5\u5831\u3092\u5b8c\u5168\u306b\u8868\u73fe\u3067\u304d\u307e\u3059\u306e\u3067\u3001\u30b3\u30f3\u30d1\u30a4\u30e9\u306f\u500b\u3005\u306e\u5024\u304c\u30e0\u30fc\u30d6\u3055\u308c\u305f\u304b\u3092\u6b63\u78ba\u306b\u628a\u63e1\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30b3\u30f3\u30d1\u30a4\u30e9\u306b\u3088\u308b\u9759\u7684\u5206\u6790\u3060\u3051\u3067\u3001\u30c7\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u5b9f\u884c\u3059\u308b\u30bf\u30a4\u30df\u30f3\u30b0\u304c\u3001\u5f93\u6765\u3088\u308a\u3082\u304d\u3081\u7d30\u3084\u304b\u306b\u6c7a\u5b9a\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u30b9\u30b3\u30fc\u30d7\u306e\u7d42\u7aef\u307e\u3067\u306b\u5024\u304c\u30e0\u30fc\u30d6\u3055\u308c\u305f\u304b\u3069\u3046\u304b\u3092\u3001\u30b3\u30f3\u30d1\u30a4\u30e9\u306f\u30b9\u30bf\u30c3\u30af\u4e0a\u306e\u30d3\u30c3\u30c8\u30d5\u30e9\u30b0\uff11\u3064\u3067\u8868\u73fe\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u6700\u9069\u5316\u306b\u5f79\u7acb\u3064\u60c5\u5831\u3092 LLVM \u3078\u6e21\u3059\u51e6\u7406\u3082\u30b7\u30f3\u30d7\u30eb\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u7d50\u679c\u3068\u3057\u3066\u3001\u30b3\u30f3\u30d1\u30a4\u30e9\u306e\u4f5c\u696d\u304c\u3088\u308a\u5c11\u306a\u304f\u306a\u308a\u3001\u540c\u6642\u306b\u3001\u751f\u6210\u3055\u308c\u308b\u30d0\u30a4\u30ca\u30ea\u304c\u5c0f\u3055\u304f\u306a\u308b\u53ef\u80fd\u6027\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>MIR \u306f AST\uff08\u62bd\u8c61\u69cb\u6587\u6728\uff09\u3088\u308a\u3082\u30b7\u30f3\u30d7\u30eb\u306a\u300c\u8a00\u8a9e\u300d\u3067\u3059\u306e\u3067\u3001\u30b3\u30f3\u30d1\u30a4\u30e9\u306e\u5404\u5de5\u7a0b\u3082\u3001\u3088\u308a\u7c21\u5358\u306b\u5b9f\u88c5\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u3001\u3055\u3089\u306b\u306f\u3001\u305d\u306e\u6b63\u78ba\u6027\u306e\u691c\u8a3c\u3082\u3001\u5f93\u6765\u3088\u308a\u697d\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h4>\u305d\u306e\u4ed6\u306e\u6539\u826f<\/h4>\n<p>\uff08\u3053\u308c\u4ee5\u964d\u306f\u5f8c\u65e5\u516c\u958b\u3059\u308b\u4e88\u5b9a\u3067\u3059\u3002Qiita \u3067\u30b9\u30c8\u30c3\u30af\u3055\u308c\u305f\u65b9\u306b\u306f\u3001\u5b8c\u6210\u5f8c\u3001\u901a\u77e5\u3044\u305f\u3057\u307e\u3059\u3002\u9045\u304f\u306a\u3063\u3066\u3044\u3066\u3059\u307f\u307e\u305b\u3093\uff09<\/p>\n<p>TODO<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Many minor improvements to the documentation.<\/ul>\n<\/li>\n<\/ul>\n<p>rustc supports three new MUSL targets on ARM:<br \/>\narm-unknown-linux-musleabi, arm-unknown-linux-musleabihf, and<br \/>\narmv7-unknown-linux-musleabihf.<br \/>\nThese targets produce statically-linked binaries. There are no binary release<br \/>\nbuilds yet though.<br \/>\nIn error descriptions,<br \/>\nreferences and unknown numeric<br \/>\ntypes have more human-friendly errors.<br \/>\nThe compiler can now be built against LLVM 3.9<br \/>\nTest binaries now support a &#8211;test-threads argument to specify the number<br \/>\nof threads used to run tests, and which acts the same as the<br \/>\nRUST_TEST_THREADS environment variable<br \/>\nThe test runner now emits a warning when tests run over 60<br \/>\nseconds<\/p>\n<p>Rust releases now come with source packages that can be installed by rustup<br \/>\nvia rustup component add<br \/>\nrust-src.<br \/>\nThe resulting source code can be used by tools and IDES, located in the<br \/>\nsysroot under lib\/rustlib\/src.<\/p>\n<p>See the detailed release notes for more.<\/p>\n<h4>\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u5b89\u5b9a\u5316<\/h4>\n<p>TODO<\/p>\n<p>This release sees a number of small quality of life improvements for various<br \/>\ntypes in the standard library:<\/p>\n<p>Cell::as_ptr<br \/>\nand<br \/>\nRefCell::as_ptr<\/p>\n<p>IpAddr, Ivp4Addr, and Ipv6Addr have a few new methods.<\/p>\n<p>LinkedList<br \/>\nand<br \/>\nVecDeque<br \/>\nhave a new contains method.<\/p>\n<p>iter::Product and<br \/>\niter::Sum<\/p>\n<p>Option implements From for its contained type<br \/>\nCell, RefCell and UnsafeCell implement From for their contained type<br \/>\nCow implements FromIterator for char, &amp;str and String<br \/>\nSockets on Linux are correctly closed in subprocesses via SOCK_CLOEXEC<br \/>\nString implements AddAssign<br \/>\nUnicode definitions have been updated to 9.0<\/p>\n<h4>Cargo \u306e\u6a5f\u80fd<\/h4>\n<p>TODO<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Rust 1.12.0 \u304c 2016\u5e749\u670830\u65e5\uff08\u65e5\u672c\u6642\u9593\uff09\u306b\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u307e\u3057\u305f\u3002Rust \u306f\u3001\u5b89\u5168\u6027\u3001\u30b9\u30d4\u30fc [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-45376","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>- Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/45376-2\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:description\" content=\"Rust 1.12.0 \u304c 2016\u5e749\u670830\u65e5\uff08\u65e5\u672c\u6642\u9593\uff09\u306b\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u307e\u3057\u305f\u3002Rust \u306f\u3001\u5b89\u5168\u6027\u3001\u30b9\u30d4\u30fc [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/45376-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-29T20:28:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-28T16:22:48+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d5efa37434c4406cf6aed\/16-0.png\" \/>\n<meta name=\"author\" content=\"\u97f5, \u79d1\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u97f5, \u79d1\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/45376-2\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/45376-2\/\",\"name\":\"- Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-07-29T20:28:25+00:00\",\"dateModified\":\"2024-04-28T16:22:48+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/45376-2\/\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e\",\"name\":\"\u97f5, \u79d1\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g\",\"caption\":\"\u97f5, \u79d1\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunke\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/45376-2\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"- Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/45376-2\/","og_locale":"zh_CN","og_type":"article","og_description":"Rust 1.12.0 \u304c 2016\u5e749\u670830\u65e5\uff08\u65e5\u672c\u6642\u9593\uff09\u306b\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u307e\u3057\u305f\u3002Rust \u306f\u3001\u5b89\u5168\u6027\u3001\u30b9\u30d4\u30fc [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/45376-2\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-07-29T20:28:25+00:00","article_modified_time":"2024-04-28T16:22:48+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d5efa37434c4406cf6aed\/16-0.png"}],"author":"\u97f5, \u79d1","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u97f5, \u79d1","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/45376-2\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/45376-2\/","name":"- Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-07-29T20:28:25+00:00","dateModified":"2024-04-28T16:22:48+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/45376-2\/"]}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e","name":"\u97f5, \u79d1","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g","caption":"\u97f5, \u79d1"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunke\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/45376-2\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/45376","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=45376"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/45376\/revisions"}],"predecessor-version":[{"id":68009,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/45376\/revisions\/68009"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=45376"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=45376"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=45376"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}