granite-rust/src
Matthias Krüger 464a0813d1
Rollup merge of #92510 - inquisitivecrystal:foreign-block, r=cjgillot
Don't resolve blocks in foreign functions

Although it is an error for a foreign function to have a block, it is still possible at the level of the AST. #74204 made AST lowering skip over blocks belonging to foreign functions, since they're invalid. However, resolve still treated these blocks normally, resulting in a mismatch between the HIR and resolve, which could cause an ICE under certain circumstances. This PR changes resolve to skip over blocks belonging to foreign functions, as AST lowering does.

Fixes #91370.

r? ``@cjgillot``
2022-01-09 13:38:30 +01:00
..
bootstrap Rollup merge of #92589 - ChrisDenton:break-loop, r=Mark-Simulacrum 2022-01-06 23:15:20 +01:00
build_helper Migrate to 2021 2021-09-20 22:21:42 -04:00
ci Switch to es6 for eslint 2022-01-05 11:44:29 -05:00
doc Update books 2022-01-03 19:45:10 -08:00
etc Implement @snapshot check for htmldocck 2021-12-01 15:12:10 -08:00
librustdoc Rollup merge of #92490 - jsha:crates-in-results, r=GuillaumeGomez 2022-01-09 13:38:29 +01:00
llvm-project@6b3dbcc81a Backport LLVM changes to disable deferred inlining 2021-12-19 23:49:03 +02:00
rustdoc-json-types Moved format-version constant to rustdoc-json-types 2021-10-15 12:27:42 +03:00
test Rollup merge of #92510 - inquisitivecrystal:foreign-block, r=cjgillot 2022-01-09 13:38:30 +01:00
tools Auto merge of #92068 - fee1-dead:libcore2021, r=m-ou-se 2022-01-08 21:41:48 +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.