Skip to content

Commit

Permalink
upgrade rust toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
longfangsong committed May 10, 2024
1 parent 967de0a commit 8ba6b78
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions integration-test/integration_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def color_diff(diff):
command = ["./target/debug/come",
"-i", "{}{}/{}.come".format(CASE_DIR, casename, casename),
"-o", "{}{}/{}.asm".format(CASE_DIR, casename, casename),
"-t", "riscv",
"--emit-ir", "{}{}/{}.cmir".format(CASE_DIR, casename, casename)]
if path.exists("{}{}/road.json".format(CASE_DIR, casename, casename)):
road = json.load(
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "nightly-2023-06-15"
channel = "nightly-2024-05-02"
2 changes: 1 addition & 1 deletion src/backend/riscv/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ fn parse_single_section(
.push(index);
}
}
pending_symbols.drain_filter(|name, indexes| {
pending_symbols.extract_if(|name, indexes| {
if let Some(symbol_offset_bytes) = all_symbols.get(name) {
for index in indexes {
simple_instructions[*index].decide_symbol(&Symbol {
Expand Down
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#![feature(lazy_cell)]
#![feature(if_let_guard)]
#![feature(let_chains)]
#![feature(hash_drain_filter)]
#![feature(hash_extract_if)]
#![feature(exact_size_is_empty)]
// #![feature(arbitrary_self_types)]
#![feature(assert_matches)]
/// Definitions of AST nodes and their parser.
pub mod ast;
Expand Down

0 comments on commit 8ba6b78

Please sign in to comment.