Skip to content

Commit 5167b6a

Browse files
committed
Switch expr_2021 macro fragment back to expr
1 parent e8068f2 commit 5167b6a

File tree

32 files changed

+50
-46
lines changed

32 files changed

+50
-46
lines changed

crates/bindings-macro/src/util.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,18 +90,18 @@ macro_rules! match_meta {
9090
(@match $acc:tt, $comparisons:tt, $meta:ident { $sym:path => $body:block $($rest:tt)* }) => {
9191
match_meta!(@case $acc, $comparisons, $meta, _, $sym, $body, { $($rest)* })
9292
};
93-
(@match $acc:tt, $comparisons:tt, $meta:ident { $sym:path => $body:expr_2021, $($rest:tt)* }) => {
93+
(@match $acc:tt, $comparisons:tt, $meta:ident { $sym:path => $body:expr, $($rest:tt)* }) => {
9494
match_meta!(@case $acc, $comparisons, $meta, _, $sym, $body, { $($rest)* })
9595
};
9696

97-
(@match ($($acc:tt)*), ($($comparisons:expr_2021),*), $meta:ident {}) => {
97+
(@match ($($acc:tt)*), ($($comparisons:expr),*), $meta:ident {}) => {
9898
match () {
9999
$($acc)*
100100
_ => return Err($meta.error($crate::util::one_of(&[$($comparisons),*]))),
101101
}
102102
};
103103

104-
(@case ($($acc:tt)*), ($($comparisons:expr_2021),*), $meta:ident, $binding:tt, $sym:path, $body:expr_2021, { $($rest:tt)* }) => {
104+
(@case ($($acc:tt)*), ($($comparisons:expr),*), $meta:ident, $binding:tt, $sym:path, $body:expr, { $($rest:tt)* }) => {
105105
match_meta!(@match (
106106
$($acc)*
107107
_ if $meta.path == $sym => $body,

crates/bindings/src/http.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ impl Default for Body {
248248
}
249249

250250
macro_rules! impl_body_from_bytes {
251-
($bytes:ident : $t:ty => $conv:expr_2021) => {
251+
($bytes:ident : $t:ty => $conv:expr) => {
252252
impl From<$t> for Body {
253253
fn from($bytes: $t) -> Body {
254254
Body::from_bytes($conv)

crates/bindings/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1551,10 +1551,10 @@ macro_rules! __volatile_nonatomic_schedule_immediate_impl {
15511551
([$($cur:tt)*] [$next:tt $($rest:tt)*]) => {
15521552
$crate::__volatile_nonatomic_schedule_immediate_impl!([$($cur)* $next] [$($rest)*])
15531553
};
1554-
(@process_args $repeater:path, ($($args:expr_2021),* $(,)?)) => {
1554+
(@process_args $repeater:path, ($($args:expr),* $(,)?)) => {
15551555
$crate::__volatile_nonatomic_schedule_immediate_impl!(@call $repeater, ($($args),*))
15561556
};
1557-
(@call $repeater:path, ($($args:expr_2021),*)) => {
1557+
(@call $repeater:path, ($($args:expr),*)) => {
15581558
if false {
15591559
let _ = $repeater(&$crate::ReducerContext::__dummy(), $($args,)*);
15601560
} else {

crates/bindings/src/query_builder/expr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ impl LiteralValue {
7171
}
7272

7373
macro_rules! impl_rhs {
74-
($ty:ty, $formatter:expr_2021) => {
74+
($ty:ty, $formatter:expr) => {
7575
impl<T> RHS<T, $ty> for $ty {
7676
fn to_expr(self) -> Operand<T> {
7777
Operand::Literal(LiteralValue($formatter(self)))

crates/cli/src/tasks/csharp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pub(crate) fn build_csharp(project_path: &Path, build_debug: bool) -> anyhow::Re
1212
// All `dotnet` commands must execute in the project directory, otherwise
1313
// global.json won't have any effect and wrong .NET SDK might be picked.
1414
macro_rules! dotnet {
15-
($($arg:expr_2021),*) => {
15+
($($arg:expr),*) => {
1616
duct::cmd!("dotnet", $($arg),*).dir(project_path)
1717
};
1818
}

crates/codegen/examples/regen-csharp-moduledef.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use std::path::Path;
1010
use std::sync::OnceLock;
1111

1212
macro_rules! regex_replace {
13-
($value:expr_2021, $re:expr_2021, $replace:expr_2021) => {{
13+
($value:expr, $re:expr, $replace:expr) => {{
1414
static RE: OnceLock<Regex> = OnceLock::new();
1515
RE.get_or_init(|| Regex::new($re).unwrap())
1616
.replace_all($value, $replace)

crates/codegen/examples/regen-typescript-moduledef.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use std::path::Path;
1313
use std::sync::OnceLock;
1414

1515
macro_rules! regex_replace {
16-
($value:expr_2021, $re:expr_2021, $replace:expr_2021) => {{
16+
($value:expr, $re:expr, $replace:expr) => {{
1717
static RE: OnceLock<Regex> = OnceLock::new();
1818
RE.get_or_init(|| Regex::new($re).unwrap())
1919
.replace_all($value, $replace)

crates/codegen/tests/codegen.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ fn compiled_module() -> &'static ModuleDef {
1111
}
1212

1313
macro_rules! declare_tests {
14-
($($name:ident => $lang:expr_2021,)*) => ($(
14+
($($name:ident => $lang:expr,)*) => ($(
1515
#[test]
1616
fn $name() {
1717
let module = compiled_module();

crates/core/src/db/update.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ fn manual_migrate_database(
8080

8181
/// Logs with `info` level to `$logger` as well as via the `log` crate.
8282
macro_rules! log {
83-
($logger:expr_2021, $($tokens:tt)*) => {
83+
($logger:expr, $($tokens:tt)*) => {
8484
$logger.info(&format!($($tokens)*));
8585
log::info!($($tokens)*);
8686
};

crates/core/src/host/v8/builtins/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ fn eval_builtin(
3131
}
3232

3333
macro_rules! create_synthetic_module {
34-
($scope:expr_2021, $module_name:expr_2021 $(, $fun:ident)* $(,)?) => {{
34+
($scope:expr, $module_name:expr $(, $fun:ident)* $(,)?) => {{
3535
let export_names = &[$(str_from_ident!($fun).string($scope)),*];
3636
let eval_steps = |context, module| {
3737
v8::callback_scope!(unsafe scope, context);

0 commit comments

Comments
 (0)