rust/src
Daniel Henry-Mantilla 60274a95fe Added From<Vec<NonZeroU8>> for CString
Updated tracking issue number

Added safeguards for transmute_vec potentially being factored out elsewhere

Clarified comment about avoiding mem::forget

Removed unneeded unstable guard

Added back a stability annotation for CI

Minor documentation improvements

Thanks to @Centril's code review

Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>

Improved layout checks, type annotations and removed unaccurate comment

Removed unnecessary check on array layout

Adapt the stability annotation to the new 1.41 milestone

Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>

Simplify the implementation.

Use `Vec::into_raw_parts` instead of a manual implementation of
`Vec::transmute`.

If `Vec::into_raw_parts` uses `NonNull` instead, then the code here
will need to be adjusted to take it into account (issue #65816)

Reduce the whitespace of safety comments
2020-02-04 17:20:33 +01:00
..
bootstrap Skip LLVM rebuild when skip-rebuild is true 2019-12-26 22:19:18 +00:00
build_helper Format the world 2019-12-22 17:42:47 -05:00
ci Use the chocolatey CDN directly to avoid the flaky API 2019-12-24 00:59:37 +00:00
doc Update cargo, books 2019-12-14 17:33:08 -08:00
etc Format the world 2019-12-22 17:42:47 -05:00
liballoc Format the world 2019-12-22 17:42:47 -05:00
libarena Format the world 2019-12-22 17:42:47 -05:00
libcore Auto merge of #67596 - Mark-Simulacrum:tidy-silence-rustfmt, r=Centril 2019-12-25 00:41:55 +00:00
libfmt_macros Format the world 2019-12-22 17:42:47 -05:00
libgraphviz Format the world 2019-12-22 17:42:47 -05:00
libpanic_abort Format the world 2019-12-22 17:42:47 -05:00
libpanic_unwind Format the world 2019-12-22 17:42:47 -05:00
libproc_macro Format the world 2019-12-22 17:42:47 -05:00
libprofiler_builtins Format the world 2019-12-22 17:42:47 -05:00
librustc Auto merge of #67192 - oli-obk:const_zst_addr, r=RalfJung,varkor 2019-12-27 07:38:52 +00:00
librustc_apfloat Format the world 2019-12-22 17:42:47 -05:00
librustc_asan Format the world 2019-12-22 17:42:47 -05:00
librustc_codegen_llvm x.py fmt after previous deignore 2019-12-24 17:38:22 -05:00
librustc_codegen_ssa x.py fmt after previous deignore 2019-12-24 17:38:22 -05:00
librustc_codegen_utils x.py fmt after previous deignore 2019-12-24 17:38:22 -05:00
librustc_data_structures Format the world 2019-12-22 17:42:47 -05:00
librustc_driver Deprecate Error::description for real 2019-12-24 22:39:49 -08:00
librustc_error_codes Auto merge of #67268 - estebank:assoc-types, r=oli-obk 2019-12-26 03:42:59 +00:00
librustc_errors Deprecate Error::description for real 2019-12-24 22:39:49 -08:00
librustc_feature Format librustc_feature 2019-12-24 17:44:51 -05:00
librustc_fs_util Format src/librustc_fs_util. 2019-12-21 20:23:39 -05:00
librustc_incremental Format the world 2019-12-22 17:42:47 -05:00
librustc_index Format the world 2019-12-22 17:42:47 -05:00
librustc_interface Format the world 2019-12-22 17:42:47 -05:00
librustc_lexer Format the world 2019-12-22 17:42:47 -05:00
librustc_lint Fallout in other crates. 2019-12-26 23:38:46 +01:00
librustc_llvm Format the world 2019-12-22 17:42:47 -05:00
librustc_lsan Format the world 2019-12-22 17:42:47 -05:00
librustc_macros Format the world 2019-12-22 17:42:47 -05:00
librustc_metadata Fallout in other crates. 2019-12-26 23:38:46 +01:00
librustc_mir Auto merge of #67192 - oli-obk:const_zst_addr, r=RalfJung,varkor 2019-12-27 07:38:52 +00:00
librustc_msan Format the world 2019-12-22 17:42:47 -05:00
librustc_parse Normalize identifiers in librustc_parse. 2019-12-26 13:12:58 +08:00
librustc_passes Fallout in other crates. 2019-12-26 23:38:46 +01:00
librustc_plugin_impl Format the world 2019-12-22 17:42:47 -05:00
librustc_privacy Fallout in other crates. 2019-12-26 23:38:46 +01:00
librustc_resolve x.py fmt after previous deignore 2019-12-24 17:38:22 -05:00
librustc_save_analysis Format the world 2019-12-22 17:42:47 -05:00
librustc_session Remove -Znll-dont-emit-read-for-match 2019-12-25 09:13:15 +00:00
librustc_target Format the world 2019-12-22 17:42:47 -05:00
librustc_traits Format the world 2019-12-22 17:42:47 -05:00
librustc_tsan Format the world 2019-12-22 17:42:47 -05:00
librustc_typeck Fallout in other crates. 2019-12-26 23:38:46 +01:00
librustdoc Deprecate Error::description for real 2019-12-24 22:39:49 -08:00
libserialize Deprecate Error::description for real 2019-12-24 22:39:49 -08:00
libstd Added From<Vec<NonZeroU8>> for CString 2020-02-04 17:20:33 +01:00
libsyntax Add new folder for destructuring assignment tests 2019-12-23 11:20:13 +00:00
libsyntax_expand x.py fmt after previous deignore 2019-12-24 17:38:22 -05:00
libsyntax_ext x.py fmt after previous deignore 2019-12-24 17:38:22 -05:00
libsyntax_pos Deprecate Error::description for real 2019-12-24 22:39:49 -08:00
libterm Deprecate Error::description for real 2019-12-24 22:39:49 -08:00
libtest Format the world 2019-12-22 17:42:47 -05:00
libunwind Format the world 2019-12-22 17:42:47 -05:00
llvm-project@2cb41005ed Update LLVM submodule 2019-11-30 01:34:31 +01:00
rtstartup Format the world 2019-12-22 17:42:47 -05:00
rustc Format the world 2019-12-22 17:42:47 -05:00
rustllvm Rollup merge of #67033 - cuviper:ValueName2, r=rkruppe 2019-12-07 00:10:02 +09:00
stdarch@e0ab2c165a
test Make ui test bitwidth independent 2019-12-26 22:50:18 +01:00
tools Add unicode-normalization to whitelist. 2019-12-26 14:16:36 +08:00
README.md
stage0.txt Implement rustfmt running manually using ignore crate 2019-12-21 20:23:55 -05:00

This directory contains the source code of the rust project, including:

  • rustc and its tests
  • libstd
  • Various submodules for tools, like rustdoc, rls, etc.

For more information on how various parts of the compiler work, see the rustc guide.