Skip to content

Commit

Permalink
chore: upgrade Rust to 1.74.0 (#889)
Browse files Browse the repository at this point in the history
  • Loading branch information
togami2864 authored Nov 26, 2023
1 parent d1cae7f commit b9f8ffe
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
10 changes: 5 additions & 5 deletions crates/biome_aria/src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ macro_rules! define_role {
struct $id;

impl $id {
const PROPS: &[(&'static str, bool)] = &$p_value;
const ROLES: &[&'static str] = &$r_value;
const PROPS: &'static [(&'static str, bool)] = &$p_value;
const ROLES: &'static [&'static str] = &$r_value;
}

impl $crate::AriaRoleDefinition for $id {
Expand All @@ -33,8 +33,8 @@ macro_rules! define_role {
struct $id;

impl $id {
const PROPS: &[(&'static str, bool)] = &$p_value;
const ROLES: &[&'static str] = &$r_value;
const PROPS: &'static [(&'static str, bool)] = &$p_value;
const ROLES: &'static [&'static str] = &$r_value;
const CONCEPTS: &'static [(&'static str, &'static [(&'static str, &'static str)])] =
$c_value;
}
Expand Down Expand Up @@ -76,7 +76,7 @@ macro_rules! define_property {

impl $id {
const PROPERTY_TYPE: &'static str = &$property_type;
const VALUES: &[&'static str] = &$values;
const VALUES: &'static [&'static str] = &$values;
}

impl AriaPropertyDefinition for $id {
Expand Down
2 changes: 1 addition & 1 deletion crates/biome_formatter/src/printed_tokens.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ impl PrintedTokens {
}
}

for offset in offsets {
if let Some(offset) = offsets.into_iter().next() {
panic!("tracked offset {offset:?} doesn't match any token of {root:#?}. Have you passed a token from another tree?");
}
}
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# The default profile includes rustc, rust-std, cargo, rust-docs, rustfmt and clippy.
# https://rust-lang.github.io/rustup/concepts/profiles.html
profile = "default"
channel = "1.73.0"
channel = "1.74.0"
3 changes: 2 additions & 1 deletion xtask/codegen/src/parser_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ pub fn generate_parser_tests(mode: Mode) -> Result<()> {
}
// ok is never actually read, but it needs to be specified to create a Test in existing_tests
let existing = existing_tests(&tests_dir, true)?;
for t in existing.keys().filter(|&t| !tests.contains_key(t)) {

if let Some(t) = existing.keys().find(|&t| !tests.contains_key(t)) {
panic!("Test is deleted: '{}'", t);
}

Expand Down

0 comments on commit b9f8ffe

Please sign in to comment.