Skip to content

Commit

Permalink
为支持低版本rust, 将函数指针的比较放在转换后
Browse files Browse the repository at this point in the history
  • Loading branch information
A4-Tacks committed Jul 7, 2024
1 parent be20d27 commit be5326c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mindustry_logic_bang_lang"
version = "0.16.16"
version = "0.16.17"
edition = "2021"

authors = ["A4-Tacks <[email protected]>"]
Expand Down
2 changes: 1 addition & 1 deletion tools/syntax/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "syntax"
version = "0.2.35"
version = "0.2.36"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
3 changes: 2 additions & 1 deletion tools/syntax/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4755,7 +4755,8 @@ pub fn op_expr_build_results(
);
f(meta, result, value)
},
(len, 1) if f == op_expr_tools::top_assign_oper => {
(len, 1)
if f as *const () == op_expr_tools::top_assign_oper as *const () => {
let mut lines = Vec::with_capacity(len + 1);
let value = values.pop().unwrap();
let mut results = results.into_iter();
Expand Down

0 comments on commit be5326c

Please sign in to comment.