Skip to content

Commit b7d8c8e

Browse files
prql-botgithub-actions[bot]max-sixtyClaude
authored
build: Update rust toolchain version (#5340)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Maximilian Roos <[email protected]> Co-authored-by: Claude <[email protected]>
1 parent 819e303 commit b7d8c8e

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

prqlc/prqlc/src/debug/log.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ pub enum DebugEntryKind {
9191
ReprRq(rq::RelationalQuery),
9292
ReprPqEarly(Vec<pq_ast::SqlTransform>),
9393
ReprPq(pq_ast::SqlQuery),
94-
ReprSqlParser(sqlparser::ast::Query),
94+
ReprSqlParser(Box<sqlparser::ast::Query>),
9595
ReprSql(String),
9696

9797
Message(Message),

prqlc/prqlc/src/sql/gen_expr.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,7 @@ impl SQLExpression for UnaryOperator {
996996
/// A wrapper around sql_ast::Expr, that may have already been converted to source.
997997
#[derive(Debug, Clone)]
998998
pub enum ExprOrSource {
999-
Expr(sql_ast::Expr),
999+
Expr(Box<sql_ast::Expr>),
10001000
Source(SourceExpr),
10011001
}
10021002

@@ -1012,7 +1012,7 @@ pub struct SourceExpr {
10121012
impl ExprOrSource {
10131013
pub fn into_ast(self) -> sql_ast::Expr {
10141014
match self {
1015-
ExprOrSource::Expr(ast) => ast,
1015+
ExprOrSource::Expr(ast) => *ast,
10161016
ExprOrSource::Source(SourceExpr { text: source, .. }) => {
10171017
// The s-string hack
10181018
sql_ast::Expr::Identifier(sql_ast::Ident::new(source))
@@ -1029,7 +1029,7 @@ impl ExprOrSource {
10291029

10301030
fn wrap_in_parenthesis(self) -> Self {
10311031
match self {
1032-
ExprOrSource::Expr(expr) => ExprOrSource::Expr(sql_ast::Expr::Nested(Box::new(expr))),
1032+
ExprOrSource::Expr(expr) => ExprOrSource::Expr(Box::new(sql_ast::Expr::Nested(expr))),
10331033
ExprOrSource::Source(SourceExpr {
10341034
text, window_frame, ..
10351035
}) => {
@@ -1057,7 +1057,7 @@ impl SQLExpression for ExprOrSource {
10571057

10581058
impl From<sql_ast::Expr> for ExprOrSource {
10591059
fn from(value: sql_ast::Expr) -> Self {
1060-
ExprOrSource::Expr(value)
1060+
ExprOrSource::Expr(Box::new(value))
10611061
}
10621062
}
10631063

prqlc/prqlc/src/sql/gen_query.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ pub fn translate_query(query: RelationalQuery, dialect: Option<Dialect>) -> Resu
4646
});
4747
}
4848

49-
debug::log_entry(|| debug::DebugEntryKind::ReprSqlParser(query.clone()));
49+
debug::log_entry(|| debug::DebugEntryKind::ReprSqlParser(Box::new(query.clone())));
5050
Ok(query)
5151
}
5252

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[toolchain]
22
# Generally run 1 behind latest
3-
channel = "1.86.0"
3+
channel = "1.87.0"
44
components = ["rustfmt", "clippy"]
55
# We want two targets: wasm32, and the default target for the platform, which we
66
# don't list here. (i.e. we use each platform to test each platform)

0 commit comments

Comments
 (0)