rust/src
bors c648bd5558 Auto merge of #81384 - tmiasko:partial-ord, r=petrochenkov
Fix derived PartialOrd operators

The derived implementation of `partial_cmp` compares matching fields one
by one, stopping the computation when the result of a comparison is not
equal to `Some(Equal)`.

On the other hand the derived implementation for `lt`, `le`, `gt` and
`ge` continues the computation when the result of a field comparison is
`None`, consequently those operators are not transitive and inconsistent
with `partial_cmp`.

Fix the inconsistency by using the default implementation that fall-backs
to the `partial_cmp`. This also avoids creating very deeply nested
closures that were quite costly to compile.

Fixes #81373.
Helps with #81278, #80118.
2021-02-09 08:47:38 +00:00
..
bootstrap output rdj docs 2021-02-06 09:16:58 +00:00
build_helper Fix even more URLs 2020-11-05 20:11:29 +01:00
ci Auto merge of #81821 - nikic:update-wasm32, r=sanxiyn 2021-02-07 02:36:08 +00:00
doc Add --extern-loc to augment unused crate dependency diagnostics 2021-02-07 14:54:20 -08:00
etc Resolve typedef in HashMap lldb pretty-printer only if possible 2021-02-06 20:24:07 +03:00
librustdoc Auto merge of #81313 - LeSeulArtichaut:revert-32558, r=jyn514 2021-02-08 10:46:10 +00:00
llvm-project@70d09f218d Bump LLVM submodule 2021-01-27 23:08:54 +00:00
rustdoc-json-types expand/resolve: Turn #[derive] into a regular macro attribute 2021-02-07 20:08:45 +03:00
test Auto merge of #81384 - tmiasko:partial-ord, r=petrochenkov 2021-02-09 08:47:38 +00:00
tools Rollup merge of #81882 - lnicola:rust-analyzer-2021-02-08, r=jonas-schievink 2021-02-09 02:40:03 +01:00
README.md
stage0.txt Bump rustfmt version 2021-02-02 09:09:52 -05:00
version bump nightly version to 1.52.0 2021-02-05 16:25:08 +01:00

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

  • The test suite
  • The bootstrapping build system
  • Various submodules for tools, like rustdoc, rls, etc.

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