Skip to content
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
4 changes: 0 additions & 4 deletions apps/hash-graph/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
//! # HASH Graph
//!
//! ## Workspace dependencies
#![feature(
// Language features
impl_trait_in_assoc_type
)]
#![cfg_attr(doc, doc = simple_mermaid::mermaid!("../docs/dependency-diagram.mmd"))]
#![forbid(unsafe_code)]
#![expect(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,11 +211,11 @@ mod tests {
.enumerate()
.find(|(_, diff)| **diff == expected)
.unwrap_or_else(|| {
panic!("unexpected diff found: {expected:#?}\n\nactual: {diff:#?}",)
panic!("unexpected diff found: {expected:#?}\n\nactual: {diff:#?}")
});
diff.remove(idx);
}
assert!(diff.is_empty(), "missing diffs: {diff:#?}",);
assert!(diff.is_empty(), "missing diffs: {diff:#?}");
}

fn create_base_url(property: usize) -> BaseUrl {
Expand Down
3 changes: 0 additions & 3 deletions libs/@blockprotocol/type-system/rust/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#![feature(
// Language Features
impl_trait_in_assoc_type,

// Library Features
extend_one,
)]
#![expect(unsafe_code)]
#![cfg_attr(
Expand Down
2 changes: 1 addition & 1 deletion libs/@local/codegen/src/typescript.rs
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ impl<'a, 'c> TypeScriptGenerator<'a, 'c> {
| Type::NonEmptyList(_)
| Type::Map(_)
| Type::Nullable(_)) => {
unimplemented!("Tried to generate an interface from unsupported type: {ty:?}",)
unimplemented!("Tried to generate an interface from unsupported type: {ty:?}")
}
};

Expand Down
1 change: 0 additions & 1 deletion libs/@local/graph/api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
return_type_notation,

// Library Features
assert_matches,
error_generic_member_access,
)]

Expand Down
2 changes: 0 additions & 2 deletions libs/@local/graph/authorization/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
// Language Features
exhaustive_patterns,
impl_trait_in_assoc_type,
never_type,
type_alias_impl_trait,
)]

extern crate alloc;
Expand Down
5 changes: 0 additions & 5 deletions libs/@local/graph/authorization/tests/policies/main.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
#![feature(
// Library Features
assert_matches,
)]

extern crate alloc;

mod definitions;
Expand Down
1 change: 0 additions & 1 deletion libs/@local/graph/migrations/src/bin/cli/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#![feature(
// Language Features
impl_trait_in_assoc_type,
return_type_notation,
)]
#![expect(clippy::future_not_send)]
Expand Down
1 change: 0 additions & 1 deletion libs/@local/graph/migrations/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#![feature(
// Language Features
impl_trait_in_assoc_type,
never_type,
return_type_notation,
)]
#![expect(clippy::future_not_send)]
Expand Down
4 changes: 0 additions & 4 deletions libs/@local/graph/postgres-store/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,12 @@
#![cfg_attr(doc, doc = simple_mermaid::mermaid!("../docs/dependency-diagram.mmd"))]
#![feature(
// Language Features
doc_cfg,
impl_trait_in_assoc_type,
never_type,
trait_alias,
type_alias_impl_trait,

// Library Features
extend_one,
iter_intersperse,
try_find,
)]
#![cfg_attr(not(miri), doc(test(attr(deny(warnings, clippy::all)))))]
#![expect(
Expand Down
1 change: 0 additions & 1 deletion libs/@local/graph/postgres-store/tests/deletion/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![feature(assert_matches)]
#![expect(clippy::missing_panics_doc, clippy::missing_errors_doc)]

#[path = "../common/mod.rs"]
Expand Down
4 changes: 0 additions & 4 deletions libs/@local/graph/postgres-store/tests/principals/main.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#![feature(
// Library Features
assert_matches,
)]
#![expect(clippy::panic_in_result_fn, clippy::missing_panics_doc)]

extern crate alloc;
Expand Down
5 changes: 4 additions & 1 deletion libs/@local/graph/store/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
#![feature(
// Language Features
impl_trait_in_assoc_type,
never_type,
)]
#![cfg_attr(test, feature(
// Language Features
never_type
))]

extern crate alloc;

Expand Down
4 changes: 0 additions & 4 deletions libs/@local/graph/types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
//!
//! ## Workspace dependencies
#![cfg_attr(doc, doc = simple_mermaid::mermaid!("../docs/dependency-diagram.mmd"))]
#![feature(
// Language Features
impl_trait_in_assoc_type,
)]

extern crate alloc;

Expand Down
4 changes: 0 additions & 4 deletions libs/@local/graph/validation/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
//!
//! ## Workspace dependencies
#![cfg_attr(doc, doc = simple_mermaid::mermaid!("../docs/dependency-diagram.mmd"))]
#![feature(
// Library Features
extend_one,
)]

extern crate alloc;

Expand Down
1 change: 0 additions & 1 deletion libs/@local/harpc/client/rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
// Language Features
impl_trait_in_assoc_type,
never_type,
type_alias_impl_trait,
)]

extern crate alloc;
Expand Down
4 changes: 0 additions & 4 deletions libs/@local/harpc/codec/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
//! ## Workspace dependencies
#![cfg_attr(doc, doc = simple_mermaid::mermaid!("../docs/dependency-diagram.mmd"))]
#![feature(
// Language Features
impl_trait_in_assoc_type,
macro_metavar_expr,

// Library Features
error_generic_member_access,
)]
Expand Down
4 changes: 1 addition & 3 deletions libs/@local/harpc/net/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,14 @@
#![cfg_attr(doc, doc = simple_mermaid::mermaid!("../docs/dependency-diagram.mmd"))]
#![feature(
// Language Features
impl_trait_in_assoc_type,
never_type,
stmt_expr_attributes,
trait_alias,
type_alias_impl_trait,

// Library Features
error_generic_member_access,
)]
#![cfg_attr(test, feature(assert_matches, async_fn_track_caller))]
#![cfg_attr(test, feature(async_fn_track_caller))]

extern crate alloc;

Expand Down
1 change: 0 additions & 1 deletion libs/@local/harpc/tower/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
// Library Features
error_generic_member_access,
)]
#![cfg_attr(test, feature(assert_matches, macro_metavar_expr))]

extern crate alloc;

Expand Down
2 changes: 1 addition & 1 deletion libs/@local/harpc/types/src/subsystem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ impl Display for SubsystemDescriptor {
fn fmt(&self, fmt: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
let &Self { id, version } = self;

write!(fmt, "{id}@{version}",)
write!(fmt, "{id}@{version}")
}
}
2 changes: 0 additions & 2 deletions libs/@local/harpc/wire-protocol/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
#![cfg_attr(test, feature(async_fn_track_caller))]
#![feature(
// Language Features
associated_type_defaults,
exhaustive_patterns,
never_type,
)]

pub mod codec;
Expand Down
2 changes: 0 additions & 2 deletions libs/@local/hashql/ast/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,13 @@
#![feature(
// Language Features
coverage_attribute,
if_let_guard,
macro_metavar_expr_concat,

// Library Features
allocator_api,
formatting_options,
iter_intersperse,
)]
#![cfg_attr(test, feature(assert_matches))]

extern crate alloc;

Expand Down
2 changes: 0 additions & 2 deletions libs/@local/hashql/compiletest/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@
#![feature(
// Language Features
coverage_attribute,
if_let_guard,

// Library Features
assert_matches,
duration_millis_float,
exitcode_exit_method,
file_buffered,
Expand Down
5 changes: 0 additions & 5 deletions libs/@local/hashql/core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
arbitrary_self_types,
associated_type_defaults,
coverage_attribute,
if_let_guard,
impl_trait_in_assoc_type,
macro_metavar_expr,
macro_metavar_expr_concat,
Expand All @@ -17,15 +16,11 @@

// Library Features
allocator_api,
assert_matches,
binary_heap_into_iter_sorted,
clone_from_ref,
const_cmp,
const_ops,
const_trait_impl,
debug_closure_helpers,
extend_one,
formatting_options,
get_disjoint_mut_helpers,
iter_intersperse,
iter_map_windows,
Expand Down
2 changes: 1 addition & 1 deletion libs/@local/hashql/core/src/type/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,7 @@ pub(crate) fn type_parameter_not_found<K>(
)
.primary(Label::new(
param.span,
format!("Invalid reference to undefined type parameter ?{argument}",),
format!("Invalid reference to undefined type parameter ?{argument}"),
));

diagnostic.add_message(Message::help(
Expand Down
1 change: 0 additions & 1 deletion libs/@local/hashql/diagnostics/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#![cfg_attr(doc, doc = simple_mermaid::mermaid!("../docs/dependency-diagram.mmd"))]
#![feature(
// Language Features
trait_alias,
const_trait_impl,
const_convert,
const_default,
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 @@ -7,7 +7,6 @@
// Language Features
coverage_attribute,
exhaustive_patterns,
if_let_guard,
never_type,

// Library Features
Expand Down
1 change: 0 additions & 1 deletion libs/@local/hashql/hir/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

// Library Features
allocator_api,
iter_intersperse,
try_trait_v2,
unwrap_infallible,
)]
Expand Down
2 changes: 1 addition & 1 deletion libs/@local/hashql/macros/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![feature(proc_macro_diagnostic, proc_macro_totokens)]
#![feature(proc_macro_diagnostic)]

extern crate alloc;
extern crate proc_macro;
Expand Down
1 change: 0 additions & 1 deletion libs/@local/hashql/mir/benches/execution.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#![expect(clippy::significant_drop_tightening)]
#![feature(allocator_api)]

extern crate alloc;

Expand Down
11 changes: 5 additions & 6 deletions libs/@local/hashql/mir/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,33 +7,32 @@
associated_type_defaults,
coverage_attribute,
exhaustive_patterns,
if_let_guard,
impl_trait_in_assoc_type,
macro_metavar_expr_concat,
never_type,
const_trait_impl,

// Library Features
allocator_api,
assert_matches,
binary_heap_drain_sorted,
clone_from_ref,
const_type_name,
get_mut_unchecked,
iter_array_chunks,
iter_collect_into,
iter_intersperse,
iterator_try_collect,
likely_unlikely,
maybe_uninit_array_assume_init,
maybe_uninit_fill,
step_trait,
string_from_utf8_lossy_owned,
try_trait_v2,
temporary_niche_types,
const_convert,
variant_count,
)]
#![cfg_attr(test, feature(
// Library Features
maybe_uninit_array_assume_init,
string_from_utf8_lossy_owned,
))]
#![expect(clippy::indexing_slicing)]
extern crate alloc;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ impl<A: Allocator> InlineHeuristics<'_, '_, A> {
}

// Subtract size penalty: larger functions need more bonuses to be profitable.
score -= target_cost * self.config.size_penalty_factor;
score = target_cost.mul_add(-self.config.size_penalty_factor, score);

score
}
Expand Down
5 changes: 4 additions & 1 deletion libs/@local/hashql/mir/src/pass/transform/inline/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,10 @@ impl<'heap, A: Allocator> InlineState<'_, '_, '_, 'heap, A> {

// Update caller cost: remove Apply costs and add callee costs.
// This ensures subsequent callers see the true accumulated cost.
self.costs.properties[body].cost -= (targets.len() as f32) * self.config.cost.rvalue_apply;
self.costs.properties[body].cost = (targets.len() as f32).mul_add(
-self.config.cost.rvalue_apply,
self.costs.properties[body].cost,
);
for target in targets {
debug_assert_eq!(target.caller, body);

Expand Down
Loading
Loading