@@ -34,26 +34,8 @@ LL | #[cfg_attr(all(), repr(C))] //~ ERROR `repr` is ambiguous
34
34
| ^^^^
35
35
= note: consider adding an explicit import of `repr` to disambiguate
36
36
37
- error[E0659]: `cfg` is ambiguous
38
- --> $DIR/ambiguous-builtin-attrs.rs:14:3
39
- |
40
- LL | #[cfg(all())] //~ ERROR `cfg` is ambiguous
41
- | ^^^ ambiguous name
42
- |
43
- note: `cfg` could refer to the name imported here
44
- --> $DIR/ambiguous-builtin-attrs.rs:7:5
45
- |
46
- LL | use builtin_attrs::*;
47
- | ^^^^^^^^^^^^^^^^
48
- note: `cfg` could also refer to the name defined here
49
- --> $DIR/ambiguous-builtin-attrs.rs:14:3
50
- |
51
- LL | #[cfg(all())] //~ ERROR `cfg` is ambiguous
52
- | ^^^
53
- = note: consider adding an explicit import of `cfg` to disambiguate
54
-
55
37
error[E0659]: `repr` is ambiguous
56
- --> $DIR/ambiguous-builtin-attrs.rs:33 :34
38
+ --> $DIR/ambiguous-builtin-attrs.rs:20 :34
57
39
|
58
40
LL | fn non_macro_expanded_location<#[repr(C)] T>() { //~ ERROR `repr` is ambiguous
59
41
| ^^^^ ambiguous name
@@ -64,14 +46,14 @@ note: `repr` could refer to the name imported here
64
46
LL | use builtin_attrs::*;
65
47
| ^^^^^^^^^^^^^^^^
66
48
note: `repr` could also refer to the name defined here
67
- --> $DIR/ambiguous-builtin-attrs.rs:33 :34
49
+ --> $DIR/ambiguous-builtin-attrs.rs:20 :34
68
50
|
69
51
LL | fn non_macro_expanded_location<#[repr(C)] T>() { //~ ERROR `repr` is ambiguous
70
52
| ^^^^
71
53
= note: consider adding an explicit import of `repr` to disambiguate
72
54
73
55
error[E0659]: `repr` is ambiguous
74
- --> $DIR/ambiguous-builtin-attrs.rs:35 :11
56
+ --> $DIR/ambiguous-builtin-attrs.rs:22 :11
75
57
|
76
58
LL | #[repr(C)] //~ ERROR `repr` is ambiguous
77
59
| ^^^^ ambiguous name
@@ -82,7 +64,7 @@ note: `repr` could refer to the name imported here
82
64
LL | use builtin_attrs::*;
83
65
| ^^^^^^^^^^^^^^^^
84
66
note: `repr` could also refer to the name defined here
85
- --> $DIR/ambiguous-builtin-attrs.rs:35 :11
67
+ --> $DIR/ambiguous-builtin-attrs.rs:22 :11
86
68
|
87
69
LL | #[repr(C)] //~ ERROR `repr` is ambiguous
88
70
| ^^^^
@@ -107,12 +89,12 @@ LL | #![feature(decl_macro)] //~ ERROR `feature` is ambiguous
107
89
= note: consider adding an explicit import of `feature` to disambiguate
108
90
109
91
error[E0425]: cannot find value `NonExistent` in this scope
110
- --> $DIR/ambiguous-builtin-attrs.rs:43 :5
92
+ --> $DIR/ambiguous-builtin-attrs.rs:30 :5
111
93
|
112
94
LL | NonExistent; //~ ERROR cannot find value `NonExistent` in this scope
113
95
| ^^^^^^^^^^^ not found in this scope
114
96
115
- error: aborting due to 7 previous errors
97
+ error: aborting due to 6 previous errors
116
98
117
99
Some errors occurred: E0425, E0659.
118
100
For more information about an error, try `rustc --explain E0425`.
0 commit comments