chore: update rust toolchain to 2026-03-21 (#7849)

* chore: update rust toolchain to 2026-03-21

* chore: new format

* fix: lint

* chore: resolve lint issues

* chore: remove as_millis_f64

* chore: deps up
This commit is contained in:
Ning Sun
2026-03-30 20:13:14 +08:00
committed by GitHub
parent a8fe6b5e44
commit e14404c677
191 changed files with 353 additions and 446 deletions

View File

@@ -13,8 +13,6 @@
// limitations under the License.
#![feature(box_patterns)]
#![feature(assert_matches)]
#![feature(if_let_guard)]
pub mod ast;
pub mod dialect;

View File

@@ -677,7 +677,7 @@ fn parse_string_option_names(parser: &mut Parser) -> std::result::Result<String,
#[cfg(test)]
mod tests {
use std::assert_matches::assert_matches;
use std::assert_matches;
use common_error::ext::ErrorExt;
use datatypes::schema::{FulltextAnalyzer, FulltextBackend, FulltextOptions};

View File

@@ -130,7 +130,7 @@ impl ParserContext<'_> {
#[cfg(test)]
mod tests {
use std::assert_matches::assert_matches;
use std::assert_matches;
use crate::dialect::GreptimeDbDialect;
use crate::parser::{ParseOptions, ParserContext};

View File

@@ -267,7 +267,7 @@ impl ParserContext<'_> {
#[cfg(test)]
mod tests {
use std::assert_matches::assert_matches;
use std::assert_matches;
use std::collections::HashMap;
use sqlparser::ast::{Ident, ObjectName};

View File

@@ -1242,7 +1242,7 @@ fn ensure_partition_columns_defined<'a>(
#[cfg(test)]
mod tests {
use std::assert_matches::assert_matches;
use std::assert_matches;
use std::collections::HashMap;
use common_catalog::consts::FILE_ENGINE;

View File

@@ -43,7 +43,7 @@ impl ParserContext<'_> {
#[cfg(test)]
mod tests {
use std::assert_matches::assert_matches;
use std::assert_matches;
use super::*;
use crate::dialect::GreptimeDbDialect;

View File

@@ -64,7 +64,7 @@ impl ParserContext<'_> {
#[cfg(test)]
mod tests {
use std::assert_matches::assert_matches;
use std::assert_matches;
use super::*;
use crate::dialect::GreptimeDbDialect;

View File

@@ -599,7 +599,7 @@ impl ParserContext<'_> {
#[cfg(test)]
mod tests {
use std::assert_matches::assert_matches;
use std::assert_matches;
use sqlparser::ast::{Ident, ObjectName};

View File

@@ -390,7 +390,7 @@ impl Display for AlterDatabaseOperation {
#[cfg(test)]
mod tests {
use std::assert_matches::assert_matches;
use std::assert_matches;
use crate::dialect::GreptimeDbDialect;
use crate::parser::{ParseOptions, ParserContext};

View File

@@ -164,7 +164,7 @@ impl CopyTableArgument {
#[cfg(test)]
mod tests {
use std::assert_matches::assert_matches;
use std::assert_matches;
use crate::dialect::GreptimeDbDialect;
use crate::parser::{ParseOptions, ParserContext};

View File

@@ -709,7 +709,7 @@ impl Display for CreateView {
#[cfg(test)]
mod tests {
use std::assert_matches::assert_matches;
use std::assert_matches;
use crate::dialect::GreptimeDbDialect;
use crate::error::Error;

View File

@@ -44,7 +44,7 @@ impl Display for DescribeTable {
#[cfg(test)]
mod tests {
use std::assert_matches::assert_matches;
use std::assert_matches;
use crate::dialect::GreptimeDbDialect;
use crate::parser::{ParseOptions, ParserContext};

View File

@@ -167,7 +167,7 @@ impl Display for DropView {
#[cfg(test)]
mod tests {
use std::assert_matches::assert_matches;
use std::assert_matches;
use crate::dialect::GreptimeDbDialect;
use crate::parser::{ParseOptions, ParserContext};

View File

@@ -41,7 +41,7 @@ impl Display for SetVariables {
#[cfg(test)]
mod tests {
use std::assert_matches::assert_matches;
use std::assert_matches;
use crate::dialect::GreptimeDbDialect;
use crate::parser::{ParseOptions, ParserContext};

View File

@@ -340,7 +340,7 @@ impl Display for ShowProcessList {
#[cfg(test)]
mod tests {
use std::assert_matches::assert_matches;
use std::assert_matches;
use sqlparser::ast::UnaryOperator;

View File

@@ -98,7 +98,7 @@ impl Display for TruncateTable {
#[cfg(test)]
mod tests {
use std::assert_matches::assert_matches;
use std::assert_matches;
use crate::dialect::GreptimeDbDialect;
use crate::parser::{ParseOptions, ParserContext};