rust/src
Dylan DPC c2595539e7
Rollup merge of #70777 - faern:use-assoc-int-consts2, r=dtolnay
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
2020-04-05 18:47:45 +02:00
..
bootstrap Auto merge of #69898 - spastorino:rename-rustc-guide2, r=Xanewok 2020-04-04 18:17:14 +00:00
build_helper
ci Auto merge of #69898 - spastorino:rename-rustc-guide2, r=Xanewok 2020-04-04 18:17:14 +00:00
doc Auto merge of #69898 - spastorino:rename-rustc-guide2, r=Xanewok 2020-04-04 18:17:14 +00:00
etc Stop importing int module in float parse test 2020-04-05 11:22:01 +02:00
liballoc Rollup merge of #70777 - faern:use-assoc-int-consts2, r=dtolnay 2020-04-05 18:47:45 +02:00
libarena
libcore Rollup merge of #70777 - faern:use-assoc-int-consts2, r=dtolnay 2020-04-05 18:47:45 +02:00
libfmt_macros
libgraphviz
libpanic_abort
libpanic_unwind
libproc_macro
libprofiler_builtins
librustc_apfloat
librustc_ast Stop importing int/float modules in librustc_* 2020-04-05 11:22:01 +02:00
librustc_ast_lowering
librustc_ast_passes
librustc_ast_pretty
librustc_attr
librustc_builtin_macros
librustc_codegen_llvm Rollup merge of #70777 - faern:use-assoc-int-consts2, r=dtolnay 2020-04-05 18:47:45 +02:00
librustc_codegen_ssa Stop importing int/float modules in librustc_* 2020-04-05 11:22:01 +02:00
librustc_data_structures Stop importing int/float modules in librustc_* 2020-04-05 11:22:01 +02:00
librustc_driver comment refers to removed type 2020-04-04 20:30:09 +02:00
librustc_error_codes Rollup merge of #70735 - GuillaumeGomez:cleanup-e0502, r=Dylan-DPC 2020-04-03 22:55:14 +02:00
librustc_errors
librustc_expand macro_rules: NtLifetime cannot start with an identifier 2020-04-04 16:23:43 +03:00
librustc_feature
librustc_fs_util
librustc_hir
librustc_hir_pretty
librustc_incremental
librustc_index Stop importing int/float modules in librustc_* 2020-04-05 11:22:01 +02:00
librustc_infer Stop importing int/float modules in librustc_* 2020-04-05 11:22:01 +02:00
librustc_interface Query-ify Instance::resolve 2020-04-05 01:21:36 -04:00
librustc_lexer
librustc_lint Stop importing int/float modules in librustc_* 2020-04-05 11:22:01 +02:00
librustc_llvm
librustc_macros
librustc_metadata Stop importing int/float modules in librustc_* 2020-04-05 11:22:01 +02:00
librustc_middle Rollup merge of #70777 - faern:use-assoc-int-consts2, r=dtolnay 2020-04-05 18:47:45 +02:00
librustc_mir Rollup merge of #70777 - faern:use-assoc-int-consts2, r=dtolnay 2020-04-05 18:47:45 +02:00
librustc_mir_build Stop importing int/float modules in librustc_* 2020-04-05 11:22:01 +02:00
librustc_parse
librustc_passes Stop importing int/float modules in librustc_* 2020-04-05 11:22:01 +02:00
librustc_plugin_impl
librustc_privacy
librustc_query_system
librustc_resolve
librustc_save_analysis
librustc_session Auto merge of #69718 - arlosi:debughash, r=eddyb 2020-04-04 03:00:47 +00:00
librustc_span Stop importing int/float modules in librustc_* 2020-04-05 11:22:01 +02:00
librustc_symbol_mangling
librustc_target rustc_target: Rely on default value of no_default_libraries more 2020-04-04 15:43:02 +03:00
librustc_trait_selection Rollup merge of #70641 - estebank:dedup-code, r=nikomatsakis 2020-04-03 22:55:08 +02:00
librustc_traits
librustc_ty Query-ify Instance::resolve 2020-04-05 01:21:36 -04:00
librustc_typeck typeck/type_of: only early-bound and (free) late-bound lifetimes are parameters. 2020-04-04 08:29:06 +03:00
librustdoc Stop importing int modules in librustdoc 2020-04-05 11:22:01 +02:00
libserialize Stop importing int/float modules in libserialize 2020-04-05 11:22:01 +02:00
libstd Stop importing integer modules in libstd 2020-04-05 11:22:01 +02:00
libterm
libtest
libunwind
llvm-project@130721d6f4
rtstartup
rustc
rustllvm
stdarch@abe96ca3b8
test Rollup merge of #70806 - RalfJung:miri-assignment-check, r=eddyb 2020-04-05 13:13:14 +02:00
tools rustc-workspace-hack: Account for upgraded crossbeam-utils 0.7 2020-04-05 00:45:50 +02:00
README.md
stage0.txt

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 dev guide.