rust/src/test
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
..
assembly Auto merge of #88354 - Jmc18134:hint-space-pauth-opt, r=nagisa 2021-12-29 22:35:11 +00:00
auxiliary
codegen Update references to -Z symbol-mangling-version to use -C 2022-01-01 15:53:11 -08:00
codegen-units Collect panic/panic_bounds_check during monomorphization 2021-10-30 18:21:44 +01:00
debuginfo Do not hash zero bytes of i64 and u32 in Sip128 hasher 2022-01-04 19:12:10 +01:00
incremental Auto merge of #92259 - Aaron1011:normal-mod-hashing, r=michaelwoerister 2022-01-04 00:25:23 +00:00
mir-opt Use panic() instead of panic!() in some places in core. 2021-12-21 10:39:00 +01:00
pretty Move equal sign back into head ibox 2021-12-29 12:26:50 -08:00
run-make Stabilize asm! and global_asm! 2021-12-12 11:20:03 +00:00
run-make-fulldeps cg: use thorin instead of llvm-dwp 2022-01-06 09:32:42 +00:00
run-pass-valgrind
rustdoc add a test case for each supported primitive type 2022-01-05 08:04:40 +00:00
rustdoc-gui Rollup merge of #92490 - jsha:crates-in-results, r=GuillaumeGomez 2022-01-09 13:38:29 +01:00
rustdoc-js Fix warnings in rustdoc JS tests 2021-11-28 11:49:12 -08:00
rustdoc-js-std
rustdoc-json Create rustdoc_internals feature gate 2021-11-24 21:57:18 +01:00
rustdoc-ui Rollup merge of #92443 - mdibaiee:90703/resolve-traits-of-primitive-types, r=Manishearth 2022-01-06 12:01:05 +01:00
ui Rollup merge of #92510 - inquisitivecrystal:foreign-block, r=cjgillot 2022-01-09 13:38:30 +01:00
ui-fulldeps Remove unnecessary sigils around Ident::as_str() calls. 2021-12-15 17:32:42 +11:00
COMPILER_TESTS.md