c2595539e7
Don't import integer and float modules, use assoc consts Stop importing the standard library integer and float modules to reach the `MIN`, `MAX` and other constants. They are available directly on the primitive types now. This PR is a follow up of #69860 which made sure we use the new constants in documentation. This type of change touches a lot of files, and previously all my assoc int consts PRs had collisions and were accepted only after a long delay. So I'd prefer to do it in smaller steps now. Just removing these imports seem like a good next step. r? @dtolnay |
||
---|---|---|
.. | ||
bootstrap | ||
build_helper | ||
ci | ||
doc | ||
etc | ||
liballoc | ||
libarena | ||
libcore | ||
libfmt_macros | ||
libgraphviz | ||
libpanic_abort | ||
libpanic_unwind | ||
libproc_macro | ||
libprofiler_builtins | ||
librustc_apfloat | ||
librustc_ast | ||
librustc_ast_lowering | ||
librustc_ast_passes | ||
librustc_ast_pretty | ||
librustc_attr | ||
librustc_builtin_macros | ||
librustc_codegen_llvm | ||
librustc_codegen_ssa | ||
librustc_data_structures | ||
librustc_driver | ||
librustc_error_codes | ||
librustc_errors | ||
librustc_expand | ||
librustc_feature | ||
librustc_fs_util | ||
librustc_hir | ||
librustc_hir_pretty | ||
librustc_incremental | ||
librustc_index | ||
librustc_infer | ||
librustc_interface | ||
librustc_lexer | ||
librustc_lint | ||
librustc_llvm | ||
librustc_macros | ||
librustc_metadata | ||
librustc_middle | ||
librustc_mir | ||
librustc_mir_build | ||
librustc_parse | ||
librustc_passes | ||
librustc_plugin_impl | ||
librustc_privacy | ||
librustc_query_system | ||
librustc_resolve | ||
librustc_save_analysis | ||
librustc_session | ||
librustc_span | ||
librustc_symbol_mangling | ||
librustc_target | ||
librustc_trait_selection | ||
librustc_traits | ||
librustc_ty | ||
librustc_typeck | ||
librustdoc | ||
libserialize | ||
libstd | ||
libterm | ||
libtest | ||
libunwind | ||
llvm-project@130721d6f4 | ||
rtstartup | ||
rustc | ||
rustllvm | ||
stdarch@abe96ca3b8 | ||
test | ||
tools | ||
README.md | ||
stage0.txt |
This directory contains the source code of the rust project, including:
rustc
and its testslibstd
- Various submodules for tools, like rustdoc, rls, etc.
For more information on how various parts of the compiler work, see the rustc dev guide.