mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
98804c1786
`-Z debug-macros` is "stabilized" by enabling it by default and removing. `-Z collapse-macro-debuginfo` is stabilized as `-C collapse-macro-debuginfo`. It now supports all typical boolean values (`parse_opt_bool`) in addition to just yes/no. Default value of `collapse_debuginfo` was changed from `false` to `external` (i.e. collapsed if external, not collapsed if local). `#[collapse_debuginfo]` attribute without a value is no longer supported to avoid guessing the default.
223 lines
6.3 KiB
Plaintext
223 lines
6.3 KiB
Plaintext
error: `collapse_debuginfo` attribute should be applied to macro definitions
|
|
--> $DIR/collapse-debuginfo-invalid.rs:7:1
|
|
|
|
|
LL | #[collapse_debuginfo(yes)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
LL |
|
|
LL | extern crate std;
|
|
| ----------------- not a macro definition
|
|
|
|
error: `collapse_debuginfo` attribute should be applied to macro definitions
|
|
--> $DIR/collapse-debuginfo-invalid.rs:11:1
|
|
|
|
|
LL | #[collapse_debuginfo(yes)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
LL |
|
|
LL | use std::collections::HashMap;
|
|
| ------------------------------ not a macro definition
|
|
|
|
error: `collapse_debuginfo` attribute should be applied to macro definitions
|
|
--> $DIR/collapse-debuginfo-invalid.rs:15:1
|
|
|
|
|
LL | #[collapse_debuginfo(yes)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
LL |
|
|
LL | static FOO: u32 = 3;
|
|
| -------------------- not a macro definition
|
|
|
|
error: `collapse_debuginfo` attribute should be applied to macro definitions
|
|
--> $DIR/collapse-debuginfo-invalid.rs:19:1
|
|
|
|
|
LL | #[collapse_debuginfo(yes)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
LL |
|
|
LL | const BAR: u32 = 3;
|
|
| ------------------- not a macro definition
|
|
|
|
error: `collapse_debuginfo` attribute should be applied to macro definitions
|
|
--> $DIR/collapse-debuginfo-invalid.rs:23:1
|
|
|
|
|
LL | #[collapse_debuginfo(yes)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
LL |
|
|
LL | / fn foo() {
|
|
LL | | let _ = #[collapse_debuginfo(yes)] || { };
|
|
LL | |
|
|
LL | | #[collapse_debuginfo(yes)]
|
|
... |
|
|
LL | | }
|
|
LL | | }
|
|
| |_- not a macro definition
|
|
|
|
error: `collapse_debuginfo` attribute should be applied to macro definitions
|
|
--> $DIR/collapse-debuginfo-invalid.rs:26:13
|
|
|
|
|
LL | let _ = #[collapse_debuginfo(yes)] || { };
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ------ not a macro definition
|
|
|
|
error: `collapse_debuginfo` attribute should be applied to macro definitions
|
|
--> $DIR/collapse-debuginfo-invalid.rs:28:5
|
|
|
|
|
LL | #[collapse_debuginfo(yes)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
LL |
|
|
LL | let _ = 3;
|
|
| ---------- not a macro definition
|
|
|
|
error: `collapse_debuginfo` attribute should be applied to macro definitions
|
|
--> $DIR/collapse-debuginfo-invalid.rs:31:13
|
|
|
|
|
LL | let _ = #[collapse_debuginfo(yes)] 3;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ - not a macro definition
|
|
|
|
error: `collapse_debuginfo` attribute should be applied to macro definitions
|
|
--> $DIR/collapse-debuginfo-invalid.rs:34:9
|
|
|
|
|
LL | #[collapse_debuginfo(yes)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
LL |
|
|
LL | _ => (),
|
|
| ------- not a macro definition
|
|
|
|
error: `collapse_debuginfo` attribute should be applied to macro definitions
|
|
--> $DIR/collapse-debuginfo-invalid.rs:40:1
|
|
|
|
|
LL | #[collapse_debuginfo(yes)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
LL |
|
|
LL | / mod bar {
|
|
LL | | }
|
|
| |_- not a macro definition
|
|
|
|
error: `collapse_debuginfo` attribute should be applied to macro definitions
|
|
--> $DIR/collapse-debuginfo-invalid.rs:45:1
|
|
|
|
|
LL | #[collapse_debuginfo(yes)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
LL |
|
|
LL | type Map = HashMap<u32, u32>;
|
|
| ----------------------------- not a macro definition
|
|
|
|
error: `collapse_debuginfo` attribute should be applied to macro definitions
|
|
--> $DIR/collapse-debuginfo-invalid.rs:49:1
|
|
|
|
|
LL | #[collapse_debuginfo(yes)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
LL |
|
|
LL | / enum Foo {
|
|
LL | | #[collapse_debuginfo(yes)]
|
|
LL | |
|
|
LL | | Variant,
|
|
LL | | }
|
|
| |_- not a macro definition
|
|
|
|
error: `collapse_debuginfo` attribute should be applied to macro definitions
|
|
--> $DIR/collapse-debuginfo-invalid.rs:52:5
|
|
|
|
|
LL | #[collapse_debuginfo(yes)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
LL |
|
|
LL | Variant,
|
|
| ------- not a macro definition
|
|
|
|
error: `collapse_debuginfo` attribute should be applied to macro definitions
|
|
--> $DIR/collapse-debuginfo-invalid.rs:57:1
|
|
|
|
|
LL | #[collapse_debuginfo(yes)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
LL |
|
|
LL | / struct Bar {
|
|
LL | | #[collapse_debuginfo(yes)]
|
|
LL | |
|
|
LL | | field: u32,
|
|
LL | | }
|
|
| |_- not a macro definition
|
|
|
|
error: `collapse_debuginfo` attribute should be applied to macro definitions
|
|
--> $DIR/collapse-debuginfo-invalid.rs:60:5
|
|
|
|
|
LL | #[collapse_debuginfo(yes)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
LL |
|
|
LL | field: u32,
|
|
| ---------- not a macro definition
|
|
|
|
error: `collapse_debuginfo` attribute should be applied to macro definitions
|
|
--> $DIR/collapse-debuginfo-invalid.rs:65:1
|
|
|
|
|
LL | #[collapse_debuginfo(yes)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
LL |
|
|
LL | / union Qux {
|
|
LL | | a: u32,
|
|
LL | | b: u16
|
|
LL | | }
|
|
| |_- not a macro definition
|
|
|
|
error: `collapse_debuginfo` attribute should be applied to macro definitions
|
|
--> $DIR/collapse-debuginfo-invalid.rs:72:1
|
|
|
|
|
LL | #[collapse_debuginfo(yes)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
LL |
|
|
LL | / trait Foobar {
|
|
LL | | #[collapse_debuginfo(yes)]
|
|
LL | |
|
|
LL | | type Bar;
|
|
LL | | }
|
|
| |_- not a macro definition
|
|
|
|
error: `collapse_debuginfo` attribute should be applied to macro definitions
|
|
--> $DIR/collapse-debuginfo-invalid.rs:80:1
|
|
|
|
|
LL | #[collapse_debuginfo(yes)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
LL |
|
|
LL | type AFoobar = impl Foobar;
|
|
| --------------------------- not a macro definition
|
|
|
|
error: `collapse_debuginfo` attribute should be applied to macro definitions
|
|
--> $DIR/collapse-debuginfo-invalid.rs:92:1
|
|
|
|
|
LL | #[collapse_debuginfo(yes)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
LL |
|
|
LL | / impl Bar {
|
|
LL | | #[collapse_debuginfo(yes)]
|
|
LL | |
|
|
LL | | const FOO: u32 = 3;
|
|
... |
|
|
LL | | fn bar(&self) {}
|
|
LL | | }
|
|
| |_- not a macro definition
|
|
|
|
error: `collapse_debuginfo` attribute should be applied to macro definitions
|
|
--> $DIR/collapse-debuginfo-invalid.rs:75:5
|
|
|
|
|
LL | #[collapse_debuginfo(yes)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
LL |
|
|
LL | type Bar;
|
|
| --------- not a macro definition
|
|
|
|
error: `collapse_debuginfo` attribute should be applied to macro definitions
|
|
--> $DIR/collapse-debuginfo-invalid.rs:95:5
|
|
|
|
|
LL | #[collapse_debuginfo(yes)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
LL |
|
|
LL | const FOO: u32 = 3;
|
|
| ------------------- not a macro definition
|
|
|
|
error: `collapse_debuginfo` attribute should be applied to macro definitions
|
|
--> $DIR/collapse-debuginfo-invalid.rs:99:5
|
|
|
|
|
LL | #[collapse_debuginfo(yes)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
LL |
|
|
LL | fn bar(&self) {}
|
|
| ---------------- not a macro definition
|
|
|
|
error: aborting due to 22 previous errors
|
|
|