rust/src
David Tolnay c45231ca55
Revert heterogeneous SocketAddr PartialEq impls
These lead to inference regressions (mostly in tests) in code that looks
like:

    let socket = std::net::SocketAddrV4::new(std::net::Ipv4Addr::new(127, 0, 0, 1), 8080);
    assert_eq!(socket, "127.0.0.1:8080".parse().unwrap());

That compiles as of stable 1.44.0 but fails in beta with:

    error[E0284]: type annotations needed
     --> src/main.rs:3:41
      |
    3 |     assert_eq!(socket, "127.0.0.1:8080".parse().unwrap());
      |                                         ^^^^^ cannot infer type for type parameter `F` declared on the associated function `parse`
      |
      = note: cannot satisfy `<_ as std::str::FromStr>::Err == _`
    help: consider specifying the type argument in the method call
      |
    3 |     assert_eq!(socket, "127.0.0.1:8080".parse::<F>().unwrap());
      |
2020-06-12 22:13:55 -07:00
..
bootstrap Auto merge of #69478 - avr-rust:avr-support-upstream, r=jonas-schievink 2020-06-12 01:28:37 +00:00
build_helper
ci
doc Rollup merge of #73230 - Amanieu:asm-unused2, r=petrochenkov 2020-06-11 19:04:20 +02:00
etc
liballoc Rollup merge of #72906 - lzutao:migrate-numeric-assoc-consts, r=dtolnay 2020-06-12 12:28:23 +02:00
libcore Rollup merge of #72906 - lzutao:migrate-numeric-assoc-consts, r=dtolnay 2020-06-12 12:28:23 +02:00
libpanic_abort
libpanic_unwind
libproc_macro
libprofiler_builtins
librustc_apfloat
librustc_arena
librustc_ast Rollup merge of #73182 - Aaron1011:feature/call-fn-span, r=matthewjasper 2020-06-11 19:04:16 +02:00
librustc_ast_lowering Rollup merge of #73182 - Aaron1011:feature/call-fn-span, r=matthewjasper 2020-06-11 19:04:16 +02:00
librustc_ast_passes
librustc_ast_pretty Rollup merge of #73182 - Aaron1011:feature/call-fn-span, r=matthewjasper 2020-06-11 19:04:16 +02:00
librustc_attr
librustc_builtin_macros Rollup merge of #73178 - petrochenkov:explint, r=varkor 2020-06-12 12:28:25 +02:00
librustc_codegen_llvm Auto merge of #69478 - avr-rust:avr-support-upstream, r=jonas-schievink 2020-06-12 01:28:37 +00:00
librustc_codegen_ssa Rollup merge of #73033 - Amanieu:asm-tls, r=oli-obk 2020-06-12 00:05:19 +02:00
librustc_data_structures
librustc_driver
librustc_error_codes Rollup merge of #73236 - GuillaumeGomez:cleanup-e0666, r=Dylan-DPC 2020-06-12 12:28:29 +02:00
librustc_errors Rollup merge of #73169 - Amanieu:asm-warnings, r=petrochenkov 2020-06-11 19:04:14 +02:00
librustc_expand Rollup merge of #73178 - petrochenkov:explint, r=varkor 2020-06-12 12:28:25 +02:00
librustc_feature
librustc_fs_util
librustc_graphviz
librustc_hir Rollup merge of #73178 - petrochenkov:explint, r=varkor 2020-06-12 12:28:25 +02:00
librustc_hir_pretty Rollup merge of #73182 - Aaron1011:feature/call-fn-span, r=matthewjasper 2020-06-11 19:04:16 +02:00
librustc_incremental
librustc_index
librustc_infer Rollup merge of #73182 - Aaron1011:feature/call-fn-span, r=matthewjasper 2020-06-11 19:04:16 +02:00
librustc_interface Rollup merge of #73178 - petrochenkov:explint, r=varkor 2020-06-12 12:28:25 +02:00
librustc_lexer Rollup merge of #72906 - lzutao:migrate-numeric-assoc-consts, r=dtolnay 2020-06-12 12:28:23 +02:00
librustc_lint Rollup merge of #72906 - lzutao:migrate-numeric-assoc-consts, r=dtolnay 2020-06-12 12:28:23 +02:00
librustc_llvm
librustc_macros
librustc_metadata
librustc_middle Rollup merge of #73225 - tmandry:issue-73050, r=oli-obk 2020-06-12 12:28:27 +02:00
librustc_mir Auto merge of #73277 - RalfJung:miri-caller-location, r=oli-obk 2020-06-13 00:55:34 +00:00
librustc_mir_build Rollup merge of #72906 - lzutao:migrate-numeric-assoc-consts, r=dtolnay 2020-06-12 12:28:23 +02:00
librustc_parse Rollup merge of #73182 - Aaron1011:feature/call-fn-span, r=matthewjasper 2020-06-11 19:04:16 +02:00
librustc_parse_format
librustc_passes Rollup merge of #73182 - Aaron1011:feature/call-fn-span, r=matthewjasper 2020-06-11 19:04:16 +02:00
librustc_plugin_impl
librustc_privacy
librustc_query_system
librustc_resolve Rollup merge of #73178 - petrochenkov:explint, r=varkor 2020-06-12 12:28:25 +02:00
librustc_save_analysis Rollup merge of #72906 - lzutao:migrate-numeric-assoc-consts, r=dtolnay 2020-06-12 12:28:23 +02:00
librustc_serialize
librustc_session Rollup merge of #73178 - petrochenkov:explint, r=varkor 2020-06-12 12:28:25 +02:00
librustc_span Rollup merge of #72906 - lzutao:migrate-numeric-assoc-consts, r=dtolnay 2020-06-12 12:28:23 +02:00
librustc_symbol_mangling
librustc_target Auto merge of #69478 - avr-rust:avr-support-upstream, r=jonas-schievink 2020-06-12 01:28:37 +00:00
librustc_trait_selection
librustc_traits
librustc_ty
librustc_typeck Rollup merge of #73195 - ayazhafiz:i/73145, r=estebank 2020-06-12 00:05:33 +02:00
librustdoc Rollup merge of #72180 - euclio:rustdoc-test-extra-space, r=Dylan-DPC 2020-06-11 19:04:08 +02:00
libstd Revert heterogeneous SocketAddr PartialEq impls 2020-06-12 22:13:55 -07:00
libterm
libtest
libunwind Rollup merge of #73187 - mati865:bootstrap-cleanup, r=Mark-Simulacrum 2020-06-12 00:05:31 +02:00
llvm-project@02e0d7fa55
rtstartup
rustc
rustllvm Auto merge of #69478 - avr-rust:avr-support-upstream, r=jonas-schievink 2020-06-12 01:28:37 +00:00
stdarch@45340c0e2f
test Auto merge of #73262 - wesleywiser:simplifyarmidentity_beta_regression, r=oli-obk 2020-06-12 19:38:15 +00:00
tools Rollup merge of #72906 - lzutao:migrate-numeric-assoc-consts, r=dtolnay 2020-06-12 12:28:23 +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.