Has rustc.exe source unsafe { } blocks?

Just for fun. There is no problem for me now..

Yes.

2 Likes

At bare minimum it talks to the native code library LLVM to generate the machine code, which is unsafe: rust/mod.rs at master · rust-lang/rust · GitHub

It also has an arena allocator for performance, this is intrinsically unsafe, as you are handling uninitialized memory: rust/lib.rs at master · rust-lang/rust · GitHub

Also, can I say to the complier team that the source is very pretty and well organized, congratulations!

9 Likes

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.