rust/src
bors 5b210643eb Auto merge of #83908 - Flying-Toast:master, r=davidtwco
Add enum_intrinsics_non_enums lint

There is a clippy lint to prevent calling [`mem::discriminant`](https://doc.rust-lang.org/std/mem/fn.discriminant.html) with a non-enum type. I think the lint is worthy of being included in rustc, given that `discriminant::<T>()` where `T` is a non-enum has an unspecified return value, and there are no valid use cases where you'd actually want this.

I've also made the lint check [variant_count](https://doc.rust-lang.org/core/mem/fn.variant_count.html) (#73662).

closes #83899
2021-10-11 17:12:14 +00:00
..
bootstrap Rollup merge of #89655 - tlyu:find-non-merge-commits, r=jyn514 2021-10-11 14:11:41 +02:00
build_helper
ci CI: Use mirror for downloads. 2021-10-08 08:44:40 +02:00
doc Rollup merge of #89713 - nbdd0121:doc2, r=Amanieu 2021-10-10 18:22:22 +02:00
etc
librustdoc Cleanup .item-table CSS 2021-10-11 10:53:48 +02:00
llvm-project@a7348ae0df
rustdoc-json-types Remove special-casing of never primitive in rustdoc-json-types 2021-10-08 16:53:39 +02:00
test Auto merge of #83908 - Flying-Toast:master, r=davidtwco 2021-10-11 17:12:14 +00:00
tools Auto merge of #83908 - Flying-Toast:master, r=davidtwco 2021-10-11 17:12:14 +00:00
README.md
stage0.json
version

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.