aboutsummaryrefslogtreecommitdiffhomepage
path: root/public/posts/2021-10-02/rust-where-are-primitive-types-from
diff options
context:
space:
mode:
Diffstat (limited to 'public/posts/2021-10-02/rust-where-are-primitive-types-from')
-rw-r--r--public/posts/2021-10-02/rust-where-are-primitive-types-from/index.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/public/posts/2021-10-02/rust-where-are-primitive-types-from/index.html b/public/posts/2021-10-02/rust-where-are-primitive-types-from/index.html
index bc40aaa..0554341 100644
--- a/public/posts/2021-10-02/rust-where-are-primitive-types-from/index.html
+++ b/public/posts/2021-10-02/rust-where-are-primitive-types-from/index.html
@@ -119,20 +119,20 @@
<code>rustc</code>はセルフホストされている (=<code>rustc</code>自身が Rust で書かれている) ので、<code>bool</code>や<code>char</code>などで適当に検索をかけてもノイズが多すぎて話にならない。 しかし、お誂え向きなことに<code>i128</code>/<code>u128</code>というコンパイラ自身が使うことがなさそうな型が存在するのでこれを使って<code>git grep</code>してみる。
</p>
- <pre class="monospaced highlight"><code>$ git grep "\bi128\b" | wc # i128
+ <pre class="highlight monospaced"><code>$ git grep &quot;\bi128\b&quot; | wc # i128
165 1069 15790
-$ git grep "\bu128\b" | wc # u128
+$ git grep &quot;\bu128\b&quot; | wc # u128
293 2127 26667
-$ git grep "\bbool\b" | wc # cf. bool の結果
+$ git grep &quot;\bbool\b&quot; | wc # cf. bool の結果
3563 23577 294659</code></pre>
<p>
165 程度であれば探すことができそうだ。今回は、クレート名を見ておおよその当たりをつけた。
</p>
- <pre class="monospaced highlight"><code>$ git grep "\bi128\b"
+ <pre class="highlight monospaced"><code>$ git grep &quot;\bi128\b&quot;
...
rustc_resolve/src/lib.rs: table.insert(sym::i128, Int(IntTy::I128));
...</code></pre>