Rollup merge of #100307 - nnethercote:fix-96847, r=cjgillot

Fix #96847

r? `@petrochenkov`
This commit is contained in:
Matthias Krüger 2022-08-11 22:53:05 +02:00 committed by GitHub
commit e221aafae6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 17 additions and 5 deletions

View file

@ -1 +0,0 @@
{"artifact":"$TEST_BUILD_DIR/json-multiple/libjson_multiple.rlib","emit":"link"}

View file

@ -1 +0,0 @@
{"artifact":"$TEST_BUILD_DIR/json-options/libjson_options.rlib","emit":"link"}

View file

@ -0,0 +1 @@
{"artifact":"$TEST_BUILD_DIR/json/json-multiple/libjson_multiple.rlib","emit":"link"}

View file

@ -0,0 +1 @@
{"artifact":"$TEST_BUILD_DIR/json/json-options/libjson_options.rlib","emit":"link"}

View file

@ -0,0 +1,14 @@
// run-pass
// Test that this doesn't abort during AST lowering. In #96847 it did abort
// because the attribute was being lowered twice.
#![feature(stmt_expr_attributes)]
#![feature(lang_items)]
fn main() {
for _ in [1,2,3] {
#![lang="foo"]
println!("foo");
}
}