Rollup merge of #100307 - nnethercote:fix-96847, r=cjgillot
Fix #96847 r? `@petrochenkov`
This commit is contained in:
commit
e221aafae6
23 changed files with 17 additions and 5 deletions
|
|
@ -1 +0,0 @@
|
|||
{"artifact":"$TEST_BUILD_DIR/json-multiple/libjson_multiple.rlib","emit":"link"}
|
||||
|
|
@ -1 +0,0 @@
|
|||
{"artifact":"$TEST_BUILD_DIR/json-options/libjson_options.rlib","emit":"link"}
|
||||
1
src/test/ui/json/json-multiple.stderr
Normal file
1
src/test/ui/json/json-multiple.stderr
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"artifact":"$TEST_BUILD_DIR/json/json-multiple/libjson_multiple.rlib","emit":"link"}
|
||||
1
src/test/ui/json/json-options.stderr
Normal file
1
src/test/ui/json/json-options.stderr
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"artifact":"$TEST_BUILD_DIR/json/json-options/libjson_options.rlib","emit":"link"}
|
||||
14
src/test/ui/lowering/issue-96847.rs
Normal file
14
src/test/ui/lowering/issue-96847.rs
Normal 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");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue