rust/src
Matthias Krüger 5a4f47460b
Rollup merge of #92780 - b-naber:postpone-const-eval-coherence, r=lcnr
Directly use ConstValue for single literals in blocks

Addresses the minimal repro in https://github.com/rust-lang/rust/issues/92186, but doesn't fix the underlying problem (which would be solved by solving the anon subst problem afaict).

I do, however, think that it makes sense in general to treat single literals in anon blocks as const values directly, especially in light of the problem that the issue refers to (anon const evaluation being postponed until infer variables in substs can be resolved, which was introduced by https://github.com/rust-lang/rust/pull/90023), i.e. while we do get warnings for those unnecessary braces, we should try to avoid errors caused by those braces if possible.
2022-01-18 22:00:47 +01:00
..
bootstrap Rollup merge of #92946 - kaniini:chore/llvm-libunwind-s390x, r=Mark-Simulacrum 2022-01-18 04:42:07 +01:00
build_helper
ci Add note about upstream commit musl-patch-configure.diff is derived from 2022-01-10 10:41:31 -05:00
doc Rollup merge of #90498 - joshtriplett:target-tier-policy-draft-updates, r=Mark-Simulacrum 2022-01-17 20:07:01 +01:00
etc Auto merge of #87648 - JulianKnodt:const_eq_constrain, r=oli-obk 2022-01-18 09:58:39 +00:00
librustdoc Simplify and unify rustdoc sidebar styles 2022-01-18 10:43:14 -08:00
llvm-project@6b3dbcc81a Use Term in ProjectionPredicate 2022-01-17 17:44:56 +00:00
rustdoc-json-types Update term for use in more places 2022-01-17 19:59:40 +00:00
test Rollup merge of #92780 - b-naber:postpone-const-eval-coherence, r=lcnr 2022-01-18 22:00:47 +01:00
tools Auto merge of #87648 - JulianKnodt:const_eq_constrain, r=oli-obk 2022-01-18 09:58:39 +00:00
README.md
stage0.json Bump bootstrap compiler 2021-11-30 10:44:21 -05:00
version bump version to 1.60.0 2022-01-07 10:04:15 +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.