mirror of
https://github.com/rust-lang/rust.git
synced 2026-01-25 07:48:44 +00:00
Update uitest stderrs
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
#### Note: this error code is no longer emitted by the compiler.
|
||||
|
||||
Macro import declaration was malformed.
|
||||
|
||||
Erroneous code examples:
|
||||
|
||||
```compile_fail,E0466
|
||||
```compile_fail
|
||||
#[macro_use(a_macro(another_macro))] // error: invalid import declaration
|
||||
extern crate core as some_crate;
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#![feature(fn_delegation)]
|
||||
#[prelude_import]
|
||||
use ::std::prelude::rust_2015::*;
|
||||
#[macro_use]
|
||||
#[attr = MacroUse {arguments: UseAll}]
|
||||
extern crate std;
|
||||
|
||||
fn b<C>(e: C) { }
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#[prelude_import]
|
||||
use ::std::prelude::rust_2015::*;
|
||||
#[macro_use]
|
||||
#[attr = MacroUse {arguments: UseAll}]
|
||||
extern crate std;
|
||||
//@ pretty-compare-only
|
||||
//@ pretty-mode:hir
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#![feature(c_variadic)]
|
||||
#[prelude_import]
|
||||
use ::std::prelude::rust_2015::*;
|
||||
#[macro_use]
|
||||
#[attr = MacroUse {arguments: UseAll}]
|
||||
extern crate std;
|
||||
|
||||
extern "C" {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#[prelude_import]
|
||||
use ::std::prelude::rust_2015::*;
|
||||
#[macro_use]
|
||||
#[attr = MacroUse {arguments: UseAll}]
|
||||
extern crate std;
|
||||
//@ pretty-compare-only
|
||||
//@ pretty-mode:hir
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#![allow(unused)]
|
||||
#[prelude_import]
|
||||
use ::std::prelude::rust_2015::*;
|
||||
#[macro_use]
|
||||
#[attr = MacroUse {arguments: UseAll}]
|
||||
extern crate std;
|
||||
|
||||
struct Foo<'a> {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#[prelude_import]
|
||||
use ::std::prelude::rust_2015::*;
|
||||
#[macro_use]
|
||||
#[attr = MacroUse {arguments: UseAll}]
|
||||
extern crate std;
|
||||
//@ pretty-compare-only
|
||||
//@ pretty-mode:hir
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#[prelude_import]
|
||||
use ::std::prelude::rust_2015::*;
|
||||
#[macro_use]
|
||||
#[attr = MacroUse {arguments: UseAll}]
|
||||
extern crate std;
|
||||
//@ pretty-compare-only
|
||||
//@ pretty-mode:hir
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#[prelude_import]
|
||||
use ::std::prelude::rust_2015::*;
|
||||
#[macro_use]
|
||||
#[attr = MacroUse {arguments: UseAll}]
|
||||
extern crate std;
|
||||
//@ pretty-compare-only
|
||||
//@ pretty-mode:hir
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#[prelude_import]
|
||||
use ::std::prelude::rust_2015::*;
|
||||
#[macro_use]
|
||||
#[attr = MacroUse {arguments: UseAll}]
|
||||
extern crate std;
|
||||
//@ pretty-compare-only
|
||||
//@ pretty-mode:hir,typed
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#[prelude_import]
|
||||
use ::std::prelude::rust_2015::*;
|
||||
#[macro_use]
|
||||
#[attr = MacroUse {arguments: UseAll}]
|
||||
extern crate std;
|
||||
// Test to print lifetimes on HIR pretty-printing.
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#![allow(dead_code, incomplete_features)]
|
||||
#[prelude_import]
|
||||
use ::std::prelude::rust_2015::*;
|
||||
#[macro_use]
|
||||
#[attr = MacroUse {arguments: UseAll}]
|
||||
extern crate std;
|
||||
|
||||
use std::pin::Pin;
|
||||
|
||||
53
tests/ui/attributes/invalid-macro-use.rs
Normal file
53
tests/ui/attributes/invalid-macro-use.rs
Normal file
@@ -0,0 +1,53 @@
|
||||
#![deny(unused_attributes)]
|
||||
//~^ NOTE the lint level is defined here
|
||||
|
||||
#[macro_use = 5]
|
||||
//~^ ERROR valid forms for the attribute are `#[macro_use(name1, name2, ...)]` and `#[macro_use]`
|
||||
extern crate std as s1;
|
||||
|
||||
#[macro_use(5)]
|
||||
//~^ ERROR malformed `macro_use` attribute input
|
||||
//~| NOTE expected a valid identifier here
|
||||
extern crate std as s2;
|
||||
|
||||
#[macro_use(a = "b")]
|
||||
//~^ ERROR malformed `macro_use` attribute input
|
||||
//~| NOTE didn't expect any arguments here
|
||||
extern crate std as s3;
|
||||
|
||||
#[macro_use(a(b))]
|
||||
//~^ ERROR malformed `macro_use` attribute input
|
||||
//~| NOTE didn't expect any arguments here
|
||||
extern crate std as s4;
|
||||
|
||||
#[macro_use(a::b)]
|
||||
//~^ ERROR malformed `macro_use` attribute input
|
||||
//~| NOTE expected a valid identifier here
|
||||
extern crate std as s5;
|
||||
|
||||
#[macro_use(a)]
|
||||
//~^ ERROR unused attribute
|
||||
#[macro_use]
|
||||
//~^ NOTE attribute also specified here
|
||||
extern crate std as s6;
|
||||
|
||||
#[macro_use]
|
||||
//~^ NOTE attribute also specified here
|
||||
#[macro_use(a)]
|
||||
//~^ ERROR unused attribute
|
||||
extern crate std as s7;
|
||||
|
||||
#[macro_use]
|
||||
//~^ NOTE attribute also specified here
|
||||
#[macro_use]
|
||||
//~^ ERROR unused attribute
|
||||
extern crate std as s8;
|
||||
|
||||
// This is fine, both are importing different names
|
||||
#[macro_use(a)]
|
||||
//~^ ERROR imported macro not found
|
||||
#[macro_use(b)]
|
||||
//~^ ERROR imported macro not found
|
||||
extern crate std as s9;
|
||||
|
||||
fn main() {}
|
||||
131
tests/ui/attributes/invalid-macro-use.stderr
Normal file
131
tests/ui/attributes/invalid-macro-use.stderr
Normal file
@@ -0,0 +1,131 @@
|
||||
error[E0469]: imported macro not found
|
||||
--> $DIR/invalid-macro-use.rs:47:13
|
||||
|
|
||||
LL | #[macro_use(a)]
|
||||
| ^
|
||||
|
||||
error[E0469]: imported macro not found
|
||||
--> $DIR/invalid-macro-use.rs:49:13
|
||||
|
|
||||
LL | #[macro_use(b)]
|
||||
| ^
|
||||
|
||||
error: valid forms for the attribute are `#[macro_use(name1, name2, ...)]` and `#[macro_use]`
|
||||
--> $DIR/invalid-macro-use.rs:4:1
|
||||
|
|
||||
LL | #[macro_use = 5]
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0539]: malformed `macro_use` attribute input
|
||||
--> $DIR/invalid-macro-use.rs:8:1
|
||||
|
|
||||
LL | #[macro_use(5)]
|
||||
| ^^^^^^^^^^^^-^^
|
||||
| |
|
||||
| expected a valid identifier here
|
||||
|
|
||||
help: try changing it to one of the following valid forms of the attribute
|
||||
|
|
||||
LL - #[macro_use(5)]
|
||||
LL + #[macro_use(name1, name2, ...)]
|
||||
|
|
||||
LL - #[macro_use(5)]
|
||||
LL + #[macro_use]
|
||||
|
|
||||
|
||||
error[E0565]: malformed `macro_use` attribute input
|
||||
--> $DIR/invalid-macro-use.rs:13:1
|
||||
|
|
||||
LL | #[macro_use(a = "b")]
|
||||
| ^^^^^^^^^^^^^^-----^^
|
||||
| |
|
||||
| didn't expect any arguments here
|
||||
|
|
||||
help: try changing it to one of the following valid forms of the attribute
|
||||
|
|
||||
LL - #[macro_use(a = "b")]
|
||||
LL + #[macro_use(name1, name2, ...)]
|
||||
|
|
||||
LL - #[macro_use(a = "b")]
|
||||
LL + #[macro_use]
|
||||
|
|
||||
|
||||
error[E0565]: malformed `macro_use` attribute input
|
||||
--> $DIR/invalid-macro-use.rs:18:1
|
||||
|
|
||||
LL | #[macro_use(a(b))]
|
||||
| ^^^^^^^^^^^^^---^^
|
||||
| |
|
||||
| didn't expect any arguments here
|
||||
|
|
||||
help: try changing it to one of the following valid forms of the attribute
|
||||
|
|
||||
LL - #[macro_use(a(b))]
|
||||
LL + #[macro_use(name1, name2, ...)]
|
||||
|
|
||||
LL - #[macro_use(a(b))]
|
||||
LL + #[macro_use]
|
||||
|
|
||||
|
||||
error[E0539]: malformed `macro_use` attribute input
|
||||
--> $DIR/invalid-macro-use.rs:23:1
|
||||
|
|
||||
LL | #[macro_use(a::b)]
|
||||
| ^^^^^^^^^^^^----^^
|
||||
| |
|
||||
| expected a valid identifier here
|
||||
|
|
||||
help: try changing it to one of the following valid forms of the attribute
|
||||
|
|
||||
LL - #[macro_use(a::b)]
|
||||
LL + #[macro_use(name1, name2, ...)]
|
||||
|
|
||||
LL - #[macro_use(a::b)]
|
||||
LL + #[macro_use]
|
||||
|
|
||||
|
||||
error: unused attribute
|
||||
--> $DIR/invalid-macro-use.rs:28:1
|
||||
|
|
||||
LL | #[macro_use(a)]
|
||||
| ^^^^^^^^^^^^^^^ help: remove this attribute
|
||||
|
|
||||
note: attribute also specified here
|
||||
--> $DIR/invalid-macro-use.rs:30:1
|
||||
|
|
||||
LL | #[macro_use]
|
||||
| ^^^^^^^^^^^^
|
||||
note: the lint level is defined here
|
||||
--> $DIR/invalid-macro-use.rs:1:9
|
||||
|
|
||||
LL | #![deny(unused_attributes)]
|
||||
| ^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: unused attribute
|
||||
--> $DIR/invalid-macro-use.rs:36:1
|
||||
|
|
||||
LL | #[macro_use(a)]
|
||||
| ^^^^^^^^^^^^^^^ help: remove this attribute
|
||||
|
|
||||
note: attribute also specified here
|
||||
--> $DIR/invalid-macro-use.rs:34:1
|
||||
|
|
||||
LL | #[macro_use]
|
||||
| ^^^^^^^^^^^^
|
||||
|
||||
error: unused attribute
|
||||
--> $DIR/invalid-macro-use.rs:42:1
|
||||
|
|
||||
LL | #[macro_use]
|
||||
| ^^^^^^^^^^^^ help: remove this attribute
|
||||
|
|
||||
note: attribute also specified here
|
||||
--> $DIR/invalid-macro-use.rs:40:1
|
||||
|
|
||||
LL | #[macro_use]
|
||||
| ^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to 10 previous errors
|
||||
|
||||
Some errors have detailed explanations: E0469, E0539, E0565.
|
||||
For more information about an error, try `rustc --explain E0469`.
|
||||
@@ -208,7 +208,7 @@ static mut TLS: u8 = 42;
|
||||
#[no_link()]
|
||||
//~^ ERROR malformed
|
||||
#[macro_use = 1]
|
||||
//~^ ERROR malformed
|
||||
//~^ ERROR valid forms for the attribute are `#[macro_use(name1, name2, ...)]` and `#[macro_use]`
|
||||
extern crate wloop;
|
||||
//~^ ERROR can't find crate for `wloop` [E0463]
|
||||
|
||||
|
||||
@@ -154,21 +154,6 @@ error: malformed `no_link` attribute input
|
||||
LL | #[no_link()]
|
||||
| ^^^^^^^^^^^^ help: must be of the form: `#[no_link]`
|
||||
|
||||
error: malformed `macro_use` attribute input
|
||||
--> $DIR/malformed-attrs.rs:210:1
|
||||
|
|
||||
LL | #[macro_use = 1]
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
|
|
||||
help: the following are the possible correct uses
|
||||
|
|
||||
LL - #[macro_use = 1]
|
||||
LL + #[macro_use(name1, name2, ...)]
|
||||
|
|
||||
LL - #[macro_use = 1]
|
||||
LL + #[macro_use]
|
||||
|
|
||||
|
||||
error: malformed `macro_export` attribute input
|
||||
--> $DIR/malformed-attrs.rs:215:1
|
||||
|
|
||||
@@ -567,6 +552,12 @@ LL | #[non_exhaustive = 1]
|
||||
| | didn't expect any arguments here
|
||||
| help: must be of the form: `#[non_exhaustive]`
|
||||
|
||||
error: valid forms for the attribute are `#[macro_use(name1, name2, ...)]` and `#[macro_use]`
|
||||
--> $DIR/malformed-attrs.rs:210:1
|
||||
|
|
||||
LL | #[macro_use = 1]
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0565]: malformed `type_const` attribute input
|
||||
--> $DIR/malformed-attrs.rs:144:5
|
||||
|
|
||||
|
||||
@@ -13,7 +13,7 @@ mod macro_escape {
|
||||
//~^ ERROR arguments to `macro_use` are not allowed here
|
||||
|
||||
#[macro_use = "2700"] struct S;
|
||||
//~^ ERROR malformed `macro_use` attribute
|
||||
//~^ ERROR valid forms for the attribute are `#[macro_use(name1, name2, ...)]` and `#[macro_use]`
|
||||
|
||||
#[macro_use] fn f() { }
|
||||
|
||||
|
||||
@@ -16,20 +16,11 @@ error: arguments to `macro_use` are not allowed here
|
||||
LL | #![macro_use(my_macro)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: malformed `macro_use` attribute input
|
||||
error: valid forms for the attribute are `#[macro_use(name1, name2, ...)]` and `#[macro_use]`
|
||||
--> $DIR/issue-43106-gating-of-macro_use.rs:15:5
|
||||
|
|
||||
LL | #[macro_use = "2700"] struct S;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
help: the following are the possible correct uses
|
||||
|
|
||||
LL - #[macro_use = "2700"] struct S;
|
||||
LL + #[macro_use(name1, name2, ...)] struct S;
|
||||
|
|
||||
LL - #[macro_use = "2700"] struct S;
|
||||
LL + #[macro_use] struct S;
|
||||
|
|
||||
|
||||
error: aborting due to 4 previous errors
|
||||
|
||||
|
||||
@@ -15,18 +15,6 @@ note: the lint level is defined here
|
||||
LL | #![deny(unused_attributes)]
|
||||
| ^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: unused attribute
|
||||
--> $DIR/unused-attr-duplicate.rs:37:1
|
||||
|
|
||||
LL | #[macro_use]
|
||||
| ^^^^^^^^^^^^ help: remove this attribute
|
||||
|
|
||||
note: attribute also specified here
|
||||
--> $DIR/unused-attr-duplicate.rs:36:1
|
||||
|
|
||||
LL | #[macro_use]
|
||||
| ^^^^^^^^^^^^
|
||||
|
||||
error: unused attribute
|
||||
--> $DIR/unused-attr-duplicate.rs:55:1
|
||||
|
|
||||
@@ -128,6 +116,18 @@ note: attribute also specified here
|
||||
LL | #[macro_export]
|
||||
| ^^^^^^^^^^^^^^^
|
||||
|
||||
error: unused attribute
|
||||
--> $DIR/unused-attr-duplicate.rs:37:1
|
||||
|
|
||||
LL | #[macro_use]
|
||||
| ^^^^^^^^^^^^ help: remove this attribute
|
||||
|
|
||||
note: attribute also specified here
|
||||
--> $DIR/unused-attr-duplicate.rs:36:1
|
||||
|
|
||||
LL | #[macro_use]
|
||||
| ^^^^^^^^^^^^
|
||||
|
||||
error: unused attribute
|
||||
--> $DIR/unused-attr-duplicate.rs:47:1
|
||||
|
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
error: `#[macro_use]` only has an effect on `extern crate` and modules
|
||||
--> $DIR/unused-attr-macro-rules.rs:7:1
|
||||
error: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
||||
--> $DIR/unused-attr-macro-rules.rs:9:1
|
||||
|
|
||||
LL | #[macro_use]
|
||||
| ^^^^^^^^^^^^
|
||||
LL | #[recursion_limit="1"]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
note: the lint level is defined here
|
||||
--> $DIR/unused-attr-macro-rules.rs:1:9
|
||||
@@ -10,11 +10,11 @@ note: the lint level is defined here
|
||||
LL | #![deny(unused_attributes)]
|
||||
| ^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
||||
--> $DIR/unused-attr-macro-rules.rs:9:1
|
||||
error: `#[macro_use]` only has an effect on `extern crate` and modules
|
||||
--> $DIR/unused-attr-macro-rules.rs:7:1
|
||||
|
|
||||
LL | #[recursion_limit="1"]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||
LL | #[macro_use]
|
||||
| ^^^^^^^^^^^^
|
||||
|
||||
error: `#[path]` only has an effect on modules
|
||||
--> $DIR/unused-attr-macro-rules.rs:8:1
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#[prelude_import]
|
||||
use ::std::prelude::rust_2015::*;
|
||||
#[macro_use]
|
||||
#[attr = MacroUse {arguments: UseAll}]
|
||||
extern crate std;
|
||||
//@ compile-flags: -Zunpretty=hir
|
||||
//@ edition: 2015
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
warning: unused attribute
|
||||
--> $DIR/macro-use-all-and-none.rs:7:1
|
||||
--> $DIR/macro-use-all-and-none.rs:7:12
|
||||
|
|
||||
LL | #[macro_use()]
|
||||
| ^^^^^^^^^^^^^^ help: remove this attribute
|
||||
| ^^ help: remove this attribute
|
||||
|
|
||||
= note: attribute `macro_use` with an empty list has no effect
|
||||
note: the lint level is defined here
|
||||
--> $DIR/macro-use-all-and-none.rs:4:9
|
||||
|
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#![no_std]
|
||||
|
||||
#[macro_use(foo(bar))] //~ ERROR bad macro import
|
||||
#[macro_use(foo(bar))] //~ ERROR malformed `macro_use` attribute input
|
||||
extern crate std;
|
||||
|
||||
fn main() {}
|
||||
|
||||
@@ -1,9 +1,20 @@
|
||||
error[E0466]: bad macro import
|
||||
--> $DIR/macro-use-bad-args-1.rs:3:13
|
||||
error[E0565]: malformed `macro_use` attribute input
|
||||
--> $DIR/macro-use-bad-args-1.rs:3:1
|
||||
|
|
||||
LL | #[macro_use(foo(bar))]
|
||||
| ^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^-----^^
|
||||
| |
|
||||
| didn't expect any arguments here
|
||||
|
|
||||
help: try changing it to one of the following valid forms of the attribute
|
||||
|
|
||||
LL - #[macro_use(foo(bar))]
|
||||
LL + #[macro_use(name1, name2, ...)]
|
||||
|
|
||||
LL - #[macro_use(foo(bar))]
|
||||
LL + #[macro_use]
|
||||
|
|
||||
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0466`.
|
||||
For more information about this error, try `rustc --explain E0565`.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#![no_std]
|
||||
|
||||
#[macro_use(foo="bar")] //~ ERROR bad macro import
|
||||
#[macro_use(foo="bar")] //~ ERROR malformed `macro_use` attribute input
|
||||
extern crate std;
|
||||
|
||||
fn main() {}
|
||||
|
||||
@@ -1,9 +1,20 @@
|
||||
error[E0466]: bad macro import
|
||||
--> $DIR/macro-use-bad-args-2.rs:3:13
|
||||
error[E0565]: malformed `macro_use` attribute input
|
||||
--> $DIR/macro-use-bad-args-2.rs:3:1
|
||||
|
|
||||
LL | #[macro_use(foo="bar")]
|
||||
| ^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^------^^
|
||||
| |
|
||||
| didn't expect any arguments here
|
||||
|
|
||||
help: try changing it to one of the following valid forms of the attribute
|
||||
|
|
||||
LL - #[macro_use(foo="bar")]
|
||||
LL + #[macro_use(name1, name2, ...)]
|
||||
|
|
||||
LL - #[macro_use(foo="bar")]
|
||||
LL + #[macro_use]
|
||||
|
|
||||
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0466`.
|
||||
For more information about this error, try `rustc --explain E0565`.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#[prelude_import]
|
||||
use ::std::prelude::rust_2015::*;
|
||||
#[macro_use]
|
||||
#[attr = MacroUse {arguments: UseAll}]
|
||||
extern crate std;
|
||||
// https://github.com/rust-lang/rust/issues/82329
|
||||
//@ compile-flags: -Zunpretty=hir,typed
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#![feature(type_alias_impl_trait)]
|
||||
#[prelude_import]
|
||||
use ::std::prelude::rust_2015::*;
|
||||
#[macro_use]
|
||||
#[attr = MacroUse {arguments: UseAll}]
|
||||
extern crate std;
|
||||
|
||||
trait Animal { }
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#[prelude_import]
|
||||
use ::std::prelude::rust_2015::*;
|
||||
#[macro_use]
|
||||
#[attr = MacroUse {arguments: UseAll}]
|
||||
extern crate std;
|
||||
//@ compile-flags: -Zunpretty=hir
|
||||
//@ check-fail
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#[prelude_import]
|
||||
use ::std::prelude::rust_2015::*;
|
||||
#[macro_use]
|
||||
#[attr = MacroUse {arguments: UseAll}]
|
||||
extern crate std;
|
||||
//@ compile-flags: -Zunpretty=hir
|
||||
//@ check-pass
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#[prelude_import]
|
||||
use ::std::prelude::rust_2015::*;
|
||||
#[macro_use]
|
||||
#[attr = MacroUse {arguments: UseAll}]
|
||||
extern crate std;
|
||||
//@ compile-flags: -Zunpretty=hir
|
||||
//@ check-pass
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#[prelude_import]
|
||||
use ::std::prelude::rust_2015::*;
|
||||
#[macro_use]
|
||||
#[attr = MacroUse {arguments: UseAll}]
|
||||
extern crate std;
|
||||
//@ compile-flags: -Zunpretty=hir
|
||||
//@ check-pass
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#[prelude_import]
|
||||
use std::prelude::rust_2024::*;
|
||||
#[macro_use]
|
||||
#[attr = MacroUse {arguments: UseAll}]
|
||||
extern crate std;
|
||||
//@ revisions: expanded hir
|
||||
//@[expanded]compile-flags: -Zunpretty=expanded
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
#![allow(incomplete_features)]
|
||||
#[prelude_import]
|
||||
use std::prelude::rust_2024::*;
|
||||
#[macro_use]
|
||||
#[attr = MacroUse {arguments: UseAll}]
|
||||
extern crate std;
|
||||
|
||||
#[prelude_import]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#[prelude_import]
|
||||
use ::std::prelude::rust_2015::*;
|
||||
#[macro_use]
|
||||
#[attr = MacroUse {arguments: UseAll}]
|
||||
extern crate std;
|
||||
//@ compile-flags: -Zunpretty=hir -Zflatten-format-args=yes
|
||||
//@ check-pass
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#[prelude_import]
|
||||
use ::std::prelude::rust_2015::*;
|
||||
#[macro_use]
|
||||
#[attr = MacroUse {arguments: UseAll}]
|
||||
extern crate std;
|
||||
//@ compile-flags: -Zunpretty=hir
|
||||
//@ check-pass
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#[prelude_import]
|
||||
use ::std::prelude::rust_2015::*;
|
||||
#[macro_use]
|
||||
#[attr = MacroUse {arguments: UseAll}]
|
||||
extern crate std;
|
||||
//@ compile-flags: -Zunpretty=hir
|
||||
//@ check-pass
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#![allow(dead_code)]
|
||||
#[prelude_import]
|
||||
use ::std::prelude::rust_2015::*;
|
||||
#[macro_use]
|
||||
#[attr = MacroUse {arguments: UseAll}]
|
||||
extern crate std;
|
||||
|
||||
fn main() ({ } as ())
|
||||
|
||||
Reference in New Issue
Block a user