parent
8e94b2e3b8
commit
95c9423723
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
@ -67,9 +67,9 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- {os: ubuntu-latest, experimental: false}
|
- {os: ubuntu-latest, flags: "--profile unix -Z unstable-options", experimental: false}
|
||||||
- {os: windows-latest, experimental: true}
|
- {os: windows-latest, flags: "--profile windows -Z unstable-options", experimental: true}
|
||||||
- {os: macos-latest, experimental: false}
|
- {os: macos-latest, flags: "--profile macos -Z unstable-options", experimental: false}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
@ -126,7 +126,7 @@ pub enum ParseErrorType {
|
|||||||
/// An identifier is a reserved keyword.
|
/// An identifier is a reserved keyword.
|
||||||
Reserved(String),
|
Reserved(String),
|
||||||
/// An expression is of the wrong type.
|
/// An expression is of the wrong type.
|
||||||
/// Wrapped values are the type requested and type of the actual result.
|
/// Wrapped values are the type requested and type of the actual result.
|
||||||
MismatchedType(String, String),
|
MismatchedType(String, String),
|
||||||
/// Missing an expression. Wrapped value is the expression type.
|
/// Missing an expression. Wrapped value is the expression type.
|
||||||
ExprExpected(String),
|
ExprExpected(String),
|
||||||
@ -228,7 +228,7 @@ impl fmt::Display for ParseErrorType {
|
|||||||
},
|
},
|
||||||
Self::FnMissingParams(s) => write!(f, "Expecting parameters for function '{}'", s),
|
Self::FnMissingParams(s) => write!(f, "Expecting parameters for function '{}'", s),
|
||||||
Self::FnDuplicatedParam(s, arg) => write!(f, "Duplicated parameter '{}' for function '{}'", arg, s),
|
Self::FnDuplicatedParam(s, arg) => write!(f, "Duplicated parameter '{}' for function '{}'", arg, s),
|
||||||
|
|
||||||
Self::DuplicatedProperty(s) => write!(f, "Duplicated property '{}' for object map literal", s),
|
Self::DuplicatedProperty(s) => write!(f, "Duplicated property '{}' for object map literal", s),
|
||||||
Self::DuplicatedSwitchCase => f.write_str("Duplicated switch case"),
|
Self::DuplicatedSwitchCase => f.write_str("Duplicated switch case"),
|
||||||
Self::DuplicatedVariable(s) => write!(f, "Duplicated variable name '{}'", s),
|
Self::DuplicatedVariable(s) => write!(f, "Duplicated variable name '{}'", s),
|
||||||
|
Loading…
Reference in New Issue
Block a user