Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: upgrade Rust to 1.74.0 #889

Merged
merged 3 commits into from
Nov 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading