Skip to content
Open
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
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ hashql-syntax-jexpr.path = "libs/@local/hashql/syntax-jexpr"
type-system.path = "libs/@blockprotocol/type-system/rust"

# External dependencies
allocator-api2 = { version = "0.2.8", default-features = false }
annotate-snippets = { version = "0.12.8", default-features = false }
ansi-to-html = { version = "0.2.2", default-features = false }
anstream = { version = "0.6.21", default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion libs/@local/graph/authorization/tests/policies/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ extern crate alloc;
mod definitions;

use alloc::borrow::Cow;
use core::{assert_matches::assert_matches, error::Error, str::FromStr as _};
use core::{assert_matches, error::Error, str::FromStr as _};
use std::{collections::HashSet, sync::LazyLock};

use hash_graph_authorization::policies::{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use core::{assert_matches::assert_matches, error::Error};
use core::{assert_matches, error::Error};

use hash_graph_authorization::policies::action::ActionName;
use hash_graph_postgres_store::permissions::ActionError;
Expand Down
2 changes: 1 addition & 1 deletion libs/@local/graph/postgres-store/tests/principals/ai.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use core::{assert_matches::assert_matches, error::Error};
use core::{assert_matches, error::Error};

use hash_graph_authorization::policies::store::{CreateWebParameter, PrincipalStore as _};
use hash_graph_postgres_store::permissions::PrincipalError;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use core::{assert_matches::assert_matches, error::Error};
use core::{assert_matches, error::Error};

use hash_graph_authorization::policies::store::{CreateWebParameter, PrincipalStore as _};
use hash_graph_postgres_store::permissions::PrincipalError;
Expand Down
6 changes: 3 additions & 3 deletions libs/@local/graph/postgres-store/tests/principals/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ impl DatabaseTestWrapper {
let password =
std::env::var("HASH_GRAPH_PG_PASSWORD").unwrap_or_else(|_| "graph".to_owned());
let host = std::env::var("HASH_GRAPH_PG_HOST").unwrap_or_else(|_| "localhost".to_owned());
let port = std::env::var("HASH_GRAPH_PG_PORT")
.map(|port| port.parse::<u16>().expect("could not parse port"))
.unwrap_or(5432);
let port = std::env::var("HASH_GRAPH_PG_PORT").map_or(5432, |port| {
port.parse::<u16>().expect("could not parse port")
});
let database =
std::env::var("HASH_GRAPH_PG_DATABASE").unwrap_or_else(|_| "graph".to_owned());

Expand Down
2 changes: 1 addition & 1 deletion libs/@local/graph/postgres-store/tests/principals/role.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use core::{assert_matches::assert_matches, error::Error};
use core::{assert_matches, error::Error};

use hash_graph_authorization::policies::{
principal::PrincipalConstraint,
Expand Down
2 changes: 1 addition & 1 deletion libs/@local/graph/postgres-store/tests/principals/team.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use core::{assert_matches::assert_matches, error::Error};
use core::{assert_matches, error::Error};

use hash_graph_authorization::policies::store::{CreateWebParameter, PrincipalStore as _};
use hash_graph_postgres_store::permissions::PrincipalError;
Expand Down
2 changes: 1 addition & 1 deletion libs/@local/graph/postgres-store/tests/principals/user.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use core::{assert_matches::assert_matches, error::Error};
use core::{assert_matches, error::Error};

use hash_graph_postgres_store::permissions::PrincipalError;
use hash_graph_store::account::AccountStore as _;
Expand Down
2 changes: 1 addition & 1 deletion libs/@local/graph/postgres-store/tests/principals/web.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use core::{assert_matches::assert_matches, error::Error};
use core::{assert_matches, error::Error};

use hash_graph_authorization::policies::store::{
CreateWebParameter, PrincipalStore as _, error::WebCreationError,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use alloc::sync::Arc;
use core::{
assert_matches::assert_matches,
assert_matches,
sync::atomic::{AtomicUsize, Ordering},
time::Duration,
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use alloc::sync::Arc;
use core::{assert_matches::assert_matches, num::NonZero, time::Duration};
use core::{assert_matches, num::NonZero, time::Duration};

use bytes::{Bytes, BytesMut};
use futures::StreamExt as _;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![expect(clippy::significant_drop_tightening, reason = "this is test code")]
use alloc::sync::Arc;
use core::{assert_matches::assert_matches, num::NonZero, time::Duration};
use core::{assert_matches, num::NonZero, time::Duration};
use std::io;

use bytes::Bytes;
Expand Down
3 changes: 1 addition & 2 deletions libs/@local/harpc/net/src/transport/test.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use core::{
assert_matches::assert_matches,
iter,
assert_matches, iter,
net::Ipv4Addr,
sync::atomic::{AtomicU64, Ordering},
time::Duration,
Expand Down
2 changes: 1 addition & 1 deletion libs/@local/harpc/server/src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ impl<T, S> Task<T, S> {
stream,
// Default values
cancel: CancellationToken::new(),
sweep_interval: Duration::from_secs(60),
sweep_interval: Duration::from_mins(1),
}
}

Expand Down
2 changes: 1 addition & 1 deletion libs/@local/harpc/tower/src/body/encode_error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ where

#[cfg(test)]
mod test {
use core::assert_matches::assert_matches;
use core::assert_matches;

use bytes::Bytes;
use harpc_types::{error_code::ErrorCode, response_kind::ResponseKind};
Expand Down
2 changes: 1 addition & 1 deletion libs/@local/harpc/tower/src/body/encode_report.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ where

#[cfg(test)]
mod test {
use core::assert_matches::assert_matches;
use core::assert_matches;

use bytes::Bytes;
use error_stack::Report;
Expand Down
2 changes: 1 addition & 1 deletion libs/@local/harpc/tower/src/body/limited.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ where
#[cfg(test)]
mod test {

use core::{assert_matches::assert_matches, task::Poll};
use core::{assert_matches, task::Poll};

use bytes::Bytes;
use error_stack::Report;
Expand Down
2 changes: 1 addition & 1 deletion libs/@local/harpc/tower/src/body/timeout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ where

#[cfg(test)]
mod test {
use core::{assert_matches::assert_matches, time::Duration};
use core::{assert_matches, time::Duration};

use bytes::Bytes;
use error_stack::Report;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ impl DiagnosticAnnotation {

#[cfg(test)]
mod tests {
use core::assert_matches::assert_matches;
use core::assert_matches;

use super::*;

Expand Down
2 changes: 1 addition & 1 deletion libs/@local/hashql/compiletest/src/annotation/directive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ impl Directive {

#[cfg(test)]
mod tests {
use core::assert_matches::assert_matches;
use core::assert_matches;

use crate::annotation::directive::{Directive, DirectiveParseError, RunMode};

Expand Down
2 changes: 1 addition & 1 deletion libs/@local/hashql/compiletest/src/annotation/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ fn process_line_for_diagnostics(

#[cfg(test)]
mod tests {
use core::assert_matches::assert_matches;
use core::assert_matches;
use std::io::Cursor;

use crate::annotation::{
Expand Down
2 changes: 1 addition & 1 deletion libs/@local/hashql/compiletest/src/executor/annotations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ pub(crate) fn verify_annotations<S, R>(
#[cfg(test)]
mod tests {
use core::{
assert_matches::assert_matches,
assert_matches,
fmt::{self, Debug, Display},
};

Expand Down
2 changes: 1 addition & 1 deletion libs/@local/hashql/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ ena = { workspace = true }
lexical = { workspace = true, features = ["parse-integers", "parse-floats", "format"] }
memchr = { workspace = true }
rapidfuzz = { workspace = true }
roaring = { workspace = true, features = ["std", "simd"] }
roaring = { workspace = true, features = ["std"] }
rpds = { workspace = true, features = ["std"] }
serde = { workspace = true, optional = true, features = ["alloc", "derive"] }
simple-mermaid = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion libs/@local/hashql/core/src/module/namespace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ impl<'env, 'heap> ModuleNamespace<'env, 'heap> {
#[cfg(test)]
mod tests {
#![coverage(off)]
use core::assert_matches::assert_matches;
use core::assert_matches;

use super::ModuleNamespace;
use crate::{
Expand Down
2 changes: 1 addition & 1 deletion libs/@local/hashql/core/src/module/resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ impl<'heap> Resolver<'_, 'heap> {
#[cfg(test)]
mod test {
#![coverage(off)]
use core::assert_matches::assert_matches;
use core::assert_matches;

use super::{Reference, ResolutionError};
use crate::{
Expand Down
2 changes: 1 addition & 1 deletion libs/@local/hashql/core/src/type/kind/tests/closure.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use core::assert_matches::assert_matches;
use core::assert_matches;

use rstest::rstest;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use core::assert_matches::assert_matches;
use core::assert_matches;

use crate::{
heap::Heap,
Expand Down
2 changes: 1 addition & 1 deletion libs/@local/hashql/core/src/type/kind/tests/intrinsic.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use core::assert_matches::assert_matches;
use core::assert_matches;

use hashql_diagnostics::Success;

Expand Down
2 changes: 1 addition & 1 deletion libs/@local/hashql/core/src/type/kind/tests/opaque.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![expect(clippy::min_ident_chars)]
use core::assert_matches::assert_matches;
use core::assert_matches;

use crate::{
heap::Heap,
Expand Down
2 changes: 1 addition & 1 deletion libs/@local/hashql/core/src/type/kind/tests/struct.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use core::assert_matches::assert_matches;
use core::assert_matches;

use crate::{
heap::Heap,
Expand Down
2 changes: 1 addition & 1 deletion libs/@local/hashql/core/src/type/kind/tests/tuple.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use core::assert_matches::assert_matches;
use core::assert_matches;

use crate::{
heap::Heap,
Expand Down
2 changes: 1 addition & 1 deletion libs/@local/hashql/core/src/type/kind/tests/union.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use core::assert_matches::assert_matches;
use core::assert_matches;

use crate::{
heap::Heap,
Expand Down
2 changes: 1 addition & 1 deletion libs/@local/hashql/core/src/type/kind/union.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use core::{assert_matches::debug_assert_matches, ops::ControlFlow};
use core::{debug_assert_matches, ops::ControlFlow};

use bitvec::bitvec;
use smallvec::SmallVec;
Expand Down
2 changes: 1 addition & 1 deletion libs/@local/hashql/core/src/type/tests.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![expect(clippy::min_ident_chars, clippy::unwrap_used)]
use core::{assert_matches::assert_matches, fmt::Debug, iter};
use core::{assert_matches, fmt::Debug, iter};

use super::{
PartialType, TypeId, TypeKind,
Expand Down
1 change: 0 additions & 1 deletion libs/@local/hashql/eval/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

// Library Features
iterator_try_collect,
push_mut
)]

extern crate alloc;
Expand Down
2 changes: 1 addition & 1 deletion libs/@local/hashql/mir/src/interpret/locals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ mod tests {
#![expect(unsafe_code)]
use alloc::{alloc::Global, vec::Vec};
use core::mem::MaybeUninit;
use std::assert_matches::assert_matches;
use std::assert_matches;

use hashql_core::{
heap::Heap,
Expand Down
4 changes: 1 addition & 3 deletions libs/@local/hashql/mir/src/interpret/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@
//! 5. Returning the final value when the entry function returns

use alloc::{alloc::Global, borrow::Cow};
use core::{
alloc::Allocator, assert_matches::debug_assert_matches, hint::cold_path, ops::ControlFlow,
};
use core::{alloc::Allocator, debug_assert_matches, hint::cold_path, ops::ControlFlow};

use hashql_core::{collections::FastHashMap, span::SpanId, symbol::Symbol};
use hashql_hir::node::operation::{InputOp, UnOp};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![expect(clippy::min_ident_chars, reason = "tests")]
use std::{assert_matches::assert_matches, io::Write as _, path::PathBuf};
use std::{assert_matches, io::Write as _, path::PathBuf};

use bstr::ByteVec as _;
use hashql_core::{
Expand Down
2 changes: 1 addition & 1 deletion libs/@local/hashql/mir/src/reify/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ mod terminator;
mod transform;
mod types;

use std::assert_matches::debug_assert_matches;
use core::debug_assert_matches;

use hashql_core::{
collections::{
Expand Down
2 changes: 1 addition & 1 deletion libs/@local/hashql/syntax-jexpr/src/parser/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ impl<'heap, 'source, 'spans> ParserState<'heap, 'source, 'spans> {
#[cfg(test)]
mod tests {
use alloc::borrow::Cow;
use core::assert_matches::assert_matches;
use core::assert_matches;

use crate::{
lexer::{
Expand Down
1 change: 0 additions & 1 deletion libs/antsi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ rust-version = "1.63.0"
license = "MIT OR Apache-2.0"
description = "A no-std mini-crate that provides support ANSI escape sequences"
documentation = "https://docs.rs/antsi"
readme = "README.md"
repository = "https://github.com/hashintel/hash/tree/main/libs/antsi"
keywords = ["no_std", "ansi", "color", "term", "terminal"]
categories = ["no-std", "command-line-interface", "no-std::no-alloc"]
Expand Down
1 change: 0 additions & 1 deletion libs/error-stack/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ rust-version = "1.83.0"
license = "MIT OR Apache-2.0"
description = "A context-aware error-handling library that supports arbitrary attached user data"
documentation = "https://docs.rs/error-stack"
readme = "README.md"
repository = "https://github.com/hashintel/hash/tree/main/libs/error-stack"
keywords = ["error", "errorstack", "error-handling", "report", "no_std"]
categories = ["rust-patterns", "no-std"]
Expand Down
2 changes: 1 addition & 1 deletion libs/error-stack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

[![crates.io](https://img.shields.io/crates/v/error-stack)][crates.io]
[![libs.rs](https://img.shields.io/badge/libs.rs-error--stack-orange)][libs.rs]
[![rust-version](https://img.shields.io/static/v1?label=Rust&message=1.83.0/nightly-2026-01-19&color=blue)][rust-version]
[![rust-version](https://img.shields.io/static/v1?label=Rust&message=1.83.0/nightly-2026-02-02&color=blue)][rust-version]
[![documentation](https://img.shields.io/docsrs/error-stack)][documentation]
[![license](https://img.shields.io/crates/l/error-stack)][license]

Expand Down
2 changes: 1 addition & 1 deletion libs/error-stack/macros/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

[![crates.io](https://img.shields.io/crates/v/error-stack-macros)][crates.io]
[![libs.rs](https://img.shields.io/badge/libs.rs-error--stack--macros-orange)][libs.rs]
[![rust-version](https://img.shields.io/static/v1?label=Rust&message=1.83.0/nightly-2026-01-19&color=blue)][rust-version]
[![rust-version](https://img.shields.io/static/v1?label=Rust&message=1.83.0/nightly-2026-02-02&color=blue)][rust-version]
[![documentation](https://img.shields.io/docsrs/error-stack-macros)][documentation]
[![license](https://img.shields.io/crates/l/error-stack)][license]

Expand Down
2 changes: 1 addition & 1 deletion libs/error-stack/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//!
//! [![crates.io](https://img.shields.io/crates/v/error-stack)][crates.io]
//! [![libs.rs](https://img.shields.io/badge/libs.rs-error--stack-orange)][libs.rs]
//! [![rust-version](https://img.shields.io/static/v1?label=Rust&message=1.83.0/nightly-2026-01-19&color=blue)][rust-version]
//! [![rust-version](https://img.shields.io/static/v1?label=Rust&message=1.83.0/nightly-2026-02-02&color=blue)][rust-version]
//!
//! [crates.io]: https://crates.io/crates/error-stack
//! [libs.rs]: https://lib.rs/crates/error-stack
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "nightly-2026-01-19"
channel = "nightly-2026-02-02"
components = ['rustfmt', 'clippy', 'llvm-tools-preview', 'miri', 'rust-src', 'rust-analyzer', 'rustc-codegen-cranelift-preview']
10 changes: 4 additions & 6 deletions tests/graph/benches/manual_queries/entity_queries/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,12 +393,10 @@ fn bench_json_queries(crit: &mut Criterion) {
env::var("HASH_GRAPH_PG_USER").unwrap_or_else(|_| "graph".to_owned()),
env::var("HASH_GRAPH_PG_PASSWORD").unwrap_or_else(|_| "graph".to_owned()),
env::var("HASH_GRAPH_PG_HOST").unwrap_or_else(|_| "localhost".to_owned()),
env::var("HASH_GRAPH_PG_PORT")
.map(|port| {
port.parse::<u16>()
.unwrap_or_else(|_| panic!("{port} is not a valid port"))
})
.unwrap_or(5432),
env::var("HASH_GRAPH_PG_PORT").map_or(5432, |port| {
port.parse::<u16>()
.unwrap_or_else(|_| panic!("{port} is not a valid port"))
}),
env::var("HASH_GRAPH_PG_DATABASE").unwrap_or_else(|_| "graph".to_owned()),
),
&DatabasePoolConfig::default(),
Expand Down
Loading
Loading