From 80a0076402d1e6d6bde6c2f9fb78e1eb285ea500 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 2 Mar 2022 20:21:49 +0900 Subject: enable hasCJKLanguage --- .../index.html | 4 +- docs/posts/index.html | 71 +++------------------- docs/posts/index.xml | 71 +++------------------- docs/posts/phperkaigi-2021/index.html | 14 +---- docs/posts/python-unbound-local-error/index.html | 8 +-- .../ruby-detect-running-implementation/index.html | 9 +-- .../posts/ruby-then-keyword-and-case-in/index.html | 6 +- .../rust-where-are-primitive-types-from/index.html | 9 +-- .../index.html | 12 +--- .../vim-swap-order-of-selected-lines/index.html | 9 +-- 10 files changed, 24 insertions(+), 189 deletions(-) (limited to 'docs/posts') diff --git a/docs/posts/cpp-you-can-use-keywords-in-attributes/index.html b/docs/posts/cpp-you-can-use-keywords-in-attributes/index.html index 21411bc..d2967fd 100644 --- a/docs/posts/cpp-you-can-use-keywords-in-attributes/index.html +++ b/docs/posts/cpp-you-can-use-keywords-in-attributes/index.html @@ -7,9 +7,7 @@ [C++] 属性構文の属性名にはキーワードが使える [[void]] [[for]] - REPL: Rest-Eat-Program Loop - + diff --git a/docs/posts/index.html b/docs/posts/index.html index ddf68dc..b52f380 100644 --- a/docs/posts/index.html +++ b/docs/posts/index.html @@ -86,14 +86,7 @@

Rust のプリミティブ型はどこからやって来るか

-

この記事は Qiita から移植してきたものです。 元 URL: https://qiita.com/nsfisis/items/9a429432258bbcd6c565 - 前置き Rust において、プリミティブ型の名前は予約語でない。したがって、次のコードは合法である。 -#![allow(non_camel_case_types)] #![allow(dead_code)] struct bool; struct char; struct i8; struct i16; struct i32; struct i64; struct i128; struct isize; struct u8; struct u16; struct u32; struct u64; struct u128; struct usize; struct f32; struct f64; struct str; では、普段単に bool と書いたとき、この bool は一体どこから来ているのか。rustc のソースを追ってみた。 - 前提知識: 一般的なコンパイラの構造、用語。rustc そのものの知識は不要 (というよりも筆者自身がよく知らない) - 調査 調査に使用したソース (調査時点での最新 master) -https://github.com/rust-lang/rust/tree/511ed9f2356af365ad8affe046b3dd33f7ac3c98 -どのようにして調べるか。rustc の構造には詳しくないため、すぐに当たりをつけるのは難しい。 -大雑把な構造としては、compiler フォルダ以下に rustc_* という名前のクレートが数十個入っている。これがどうやら rustc コマンドの実装部のようだ。...

+

この記事は Qiita から移植してきたものです。 元 URL: https://qiita.com/nsfisis/items/9a429432258bbcd6c565 前置き Rust において、プリミティブ型の名前は予約語でない。したがって、次のコードは合法である。 #![allow(non_camel_case_types)] #![allow(dead_code)] struct...