-
Couldn't load subscription status.
- Fork 1.9k
Upgrade rust 1.84.1 -> 1.90.0 (stable) #9987
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
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
53a75b8
Upgrade rust 1.84.1 -> 1.90.0 (stable)
ovr bae24db
chore: fix
ovr 36c37a7
chore: fix
ovr 7fb2005
chore: fix
ovr b6a0642
chore: fix
ovr 5a8d177
chore: fix
ovr 20ff161
chore: fix
ovr b46a16e
chore: fix
ovr 5fe8a23
chore: fix
ovr 9fe14e6
chore: fix
ovr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| [toolchain] | ||
| channel = "1.84.1" | ||
| channel = "1.90.0" | ||
| components = ["rustfmt", "clippy"] | ||
| profile = "minimal" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| [toolchain] | ||
| channel = "1.84.1" | ||
| channel = "1.90.0" | ||
| components = ["rustfmt", "rustc-dev", "clippy"] | ||
| profile = "minimal" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| [toolchain] | ||
| channel = "1.84.1" | ||
| channel = "1.90.0" | ||
| components = ["rustfmt", "clippy"] | ||
| profile = "minimal" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| [toolchain] | ||
| channel = "1.84.1" | ||
| channel = "1.90.0" | ||
| components = ["rustfmt", "clippy"] | ||
| profile = "minimal" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2708,7 +2708,7 @@ impl MemberRules { | |
| let Some(left_cube) = left_join_hints | ||
| .iter() | ||
| .filter(|hint| !hint.is_empty()) | ||
| .last() | ||
| .next_back() | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| .and_then(|hint| hint.last()) | ||
| .or_else(|| left_alias_to_cube.first().map(|(_, cube)| cube)) | ||
| .cloned() | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,17 +27,17 @@ use async_stream::stream; | |
|
|
||
| #[derive(Debug)] | ||
| pub struct Cursor { | ||
| pub query: ast::Statement, | ||
| pub query: Box<ast::Statement>, | ||
| // WITH HOLD specifies that the cursor can continue to be used after the transaction that created it successfully commits. | ||
| // WITHOUT HOLD specifies that the cursor cannot be used outside of the transaction that created it. | ||
| // WITHOUT HOLD specifies that the cursor cannot be used outside the transaction that created it. | ||
| pub hold: bool, | ||
| // What format will be used for Cursor | ||
| pub format: protocol::Format, | ||
| } | ||
|
|
||
| #[derive(Debug)] | ||
| pub enum PreparedStatement { | ||
| // Postgres allows to define prepared statement on empty query: "", | ||
| // Postgres allows defining a prepared statement on an empty query: "", | ||
| // then it requires special handling in the protocol | ||
| Empty { | ||
| /// Prepared statement can be declared from SQL or protocol (Parser) | ||
|
|
@@ -49,10 +49,10 @@ pub enum PreparedStatement { | |
| /// Prepared statement can be declared from SQL or protocol (Parser) | ||
| from_sql: bool, | ||
| created: DateTime<Utc>, | ||
| query: ast::Statement, | ||
| query: Box<ast::Statement>, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| parameters: protocol::ParameterDescription, | ||
| /// Fields which will be returned to the client, It can be None if server doesnt return any field | ||
| /// for example BEGIN | ||
| /// Fields which will be returned to the client; It can be None if the server doesn't return any field, | ||
| /// for example, BEGIN | ||
| description: Option<protocol::RowDescription>, | ||
| span_id: Option<Arc<SpanId>>, | ||
| }, | ||
|
|
@@ -107,7 +107,7 @@ impl PreparedStatement { | |
| .into()), | ||
| PreparedStatement::Query { query, .. } => { | ||
| let binder = PostgresStatementParamsBinder::new(values); | ||
| let mut statement = query.clone(); | ||
| let mut statement = query.as_ref().clone(); | ||
| binder.bind(&mut statement)?; | ||
|
|
||
| Ok(statement) | ||
|
|
||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://rust-lang.github.io/rust-clippy/master/index.html#cloned_ref_to_slice_refs