Skip to content

Commit

Permalink
chore: Update rustc 2024-06-23 (#17135)
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 authored Jun 23, 2024
1 parent e5b0cc6 commit 3444f64
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions crates/polars-plan/src/plans/aexpr/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ impl Hash for IRAggExpr {
}
}

#[cfg(feature = "cse")]
impl IRAggExpr {
pub(super) fn equal_nodes(&self, other: &IRAggExpr) -> bool {
use IRAggExpr::*;
Expand Down
9 changes: 8 additions & 1 deletion crates/polars-plan/src/plans/visitor/expr.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
use std::fmt::{Debug, Formatter};
use std::fmt::Debug;
#[cfg(feature = "cse")]
use std::fmt::Formatter;

use polars_core::prelude::{Field, Schema};
use polars_utils::unitvec;
Expand Down Expand Up @@ -143,18 +145,21 @@ impl AexprNode {
}
}

#[cfg(feature = "cse")]
pub struct AExprArena<'a> {
node: Node,
arena: &'a Arena<AExpr>,
}

#[cfg(feature = "cse")]
impl Debug for AExprArena<'_> {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
write!(f, "AexprArena: {}", self.node.0)
}
}

impl AExpr {
#[cfg(feature = "cse")]
fn is_equal_node(&self, other: &Self) -> bool {
use AExpr::*;
match (self, other) {
Expand Down Expand Up @@ -221,6 +226,7 @@ impl AExpr {
}
}

#[cfg(feature = "cse")]
impl<'a> AExprArena<'a> {
fn new(node: Node, arena: &'a Arena<AExpr>) -> Self {
Self { node, arena }
Expand All @@ -237,6 +243,7 @@ impl<'a> AExprArena<'a> {
}
}

#[cfg(feature = "cse")]
impl PartialEq for AExprArena<'_> {
fn eq(&self, other: &Self) -> bool {
let mut scratch1 = vec![];
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-2024-06-03"
channel = "nightly-2024-06-23"

0 comments on commit 3444f64

Please sign in to comment.