-
-
Notifications
You must be signed in to change notification settings - Fork 293
Build of v0.2.20-516-gea2d104 fails with errors about modifier #497
Copy link
Copy link
Closed
Labels
A-coreArea: anything not otherwise coveredArea: anything not otherwise coveredC-enhancementCategory: an enhancement with existing codeCategory: an enhancement with existing code
Description
I tried to build a clean checkout of ea2d104 with
rustc 1.63.0-beta.7 (12c5b1ef3 2022-07-22)
and also with
rustc 1.62.1 (e092d0b6b 2022-07-16)
and they both produce many errors like this
error[E0659]: `modifier` is ambiguous
--> tests/integration/main.rs:46:26
|
46 | $(value.$field = modifier!(@value $field $($value)?);)+
| ^^^^^^^^ ambiguous name
|
::: tests/integration/parsing.rs:1010:26
|
1010 | Component::Month(modifier!(Month {
| __________________________-
1011 | | padding: modifier::Padding::Space,
1012 | | repr: modifier::MonthRepr::Numerical,
1013 | | })),
| |__________- in this macro invocation
|
= note: ambiguous because of a conflict between a `macro_rules` name and a non-`macro_rules` name from another module
note: `modifier` could refer to the macro defined here
--> tests/integration/main.rs:41:1
|
41 | / macro_rules! modifier {
42 | | ($name:ident {
43 | | $($field:ident $(: $value:expr)?),+ $(,)?
44 | | }) => {{
... |
51 | | (@value $field:ident $value:expr) => ($value);
52 | | }
| |_^
note: `modifier` could also refer to the unresolved item imported here
--> tests/integration/parsing.rs:4:32
|
4 | use time::format_description::{modifier, Component, FormatItem};
| ^^^^^^^^
= help: use `self::modifier` to refer to this unresolved item unambiguously
= note: this error originates in the macro `modifier` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0659]: `modifier` is ambiguous
--> tests/integration/parsing.rs:1018:26
|
1018 | Component::Month(modifier!(Month {
| ^^^^^^^^ ambiguous name
|
= note: ambiguous because of a conflict between a `macro_rules` name and a non-`macro_rules` name from another module
note: `modifier` could refer to the macro defined here
--> tests/integration/main.rs:41:1
|
41 | / macro_rules! modifier {
42 | | ($name:ident {
43 | | $($field:ident $(: $value:expr)?),+ $(,)?
44 | | }) => {{
... |
51 | | (@value $field:ident $value:expr) => ($value);
52 | | }
| |_^
note: `modifier` could also refer to the unresolved item imported here
--> tests/integration/parsing.rs:4:32
|
4 | use time::format_description::{modifier, Component, FormatItem};
| ^^^^^^^^
= help: use `self::modifier` to refer to this unresolved item unambiguously
error[E0659]: `modifier` is ambiguous
--> tests/integration/main.rs:46:26
|
46 | $(value.$field = modifier!(@value $field $($value)?);)+
| ^^^^^^^^ ambiguous name
|
::: tests/integration/parsing.rs:1018:26
|
1018 | Component::Month(modifier!(Month {
| __________________________-
1019 | | padding: modifier::Padding::None,
1020 | | repr: modifier::MonthRepr::Short,
1021 | | case_sensitive: true,
1022 | | })),
| |__________- in this macro invocation
|
= note: ambiguous because of a conflict between a `macro_rules` name and a non-`macro_rules` name from another module
note: `modifier` could refer to the macro defined here
--> tests/integration/main.rs:41:1
|
41 | / macro_rules! modifier {
42 | | ($name:ident {
43 | | $($field:ident $(: $value:expr)?),+ $(,)?
44 | | }) => {{
... |
51 | | (@value $field:ident $value:expr) => ($value);
52 | | }
| |_^
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-coreArea: anything not otherwise coveredArea: anything not otherwise coveredC-enhancementCategory: an enhancement with existing codeCategory: an enhancement with existing code