From 91bb566ee68f2c241ac0035965c3d589783e4151 Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Fri, 29 Nov 2024 14:46:58 -0600 Subject: [PATCH] udpate rust toolchain to rust 1.81.0 (#14473) # Description With the release of rust 1.83.0 it's time to update to rust 1.81.0. --- Cargo.toml | 2 +- crates/nu-cli/src/util.rs | 2 ++ crates/nu-parser/src/parse_patterns.rs | 3 ++- crates/nu-parser/src/parse_shape_specs.rs | 2 ++ crates/nu-parser/src/parser.rs | 2 ++ crates/nu-parser/tests/test_lex.rs | 2 ++ rust-toolchain.toml | 2 +- 7 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 67c9e18c41..86d863f76c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ homepage = "https://www.nushell.sh" license = "MIT" name = "nu" repository = "https://github.com/nushell/nushell" -rust-version = "1.80.1" +rust-version = "1.81.0" version = "0.100.1" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/crates/nu-cli/src/util.rs b/crates/nu-cli/src/util.rs index 7b9d783534..50db15a68e 100644 --- a/crates/nu-cli/src/util.rs +++ b/crates/nu-cli/src/util.rs @@ -1,3 +1,5 @@ +#![allow(clippy::byte_char_slices)] + use nu_cmd_base::hook::eval_hook; use nu_engine::{eval_block, eval_block_with_early_return}; use nu_parser::{lex, parse, unescape_unquote_string, Token, TokenContents}; diff --git a/crates/nu-parser/src/parse_patterns.rs b/crates/nu-parser/src/parse_patterns.rs index dc4a64ce37..6f7cb62bc2 100644 --- a/crates/nu-parser/src/parse_patterns.rs +++ b/crates/nu-parser/src/parse_patterns.rs @@ -1,3 +1,5 @@ +#![allow(clippy::byte_char_slices)] + use crate::{ lex, lite_parse, parser::{is_variable, parse_value}, @@ -7,7 +9,6 @@ use nu_protocol::{ engine::StateWorkingSet, ParseError, Span, SyntaxShape, Type, VarId, }; - pub fn garbage(span: Span) -> MatchPattern { MatchPattern { pattern: Pattern::Garbage, diff --git a/crates/nu-parser/src/parse_shape_specs.rs b/crates/nu-parser/src/parse_shape_specs.rs index 2a59bb8a59..20d88554dc 100644 --- a/crates/nu-parser/src/parse_shape_specs.rs +++ b/crates/nu-parser/src/parse_shape_specs.rs @@ -1,3 +1,5 @@ +#![allow(clippy::byte_char_slices)] + use crate::{lex::lex_signature, parser::parse_value, trim_quotes, TokenContents}; use nu_protocol::{engine::StateWorkingSet, ParseError, Span, SyntaxShape, Type}; diff --git a/crates/nu-parser/src/parser.rs b/crates/nu-parser/src/parser.rs index d9f534cc60..b6f5fa161e 100644 --- a/crates/nu-parser/src/parser.rs +++ b/crates/nu-parser/src/parser.rs @@ -1,3 +1,5 @@ +#![allow(clippy::byte_char_slices)] + use crate::{ lex::{is_assignment_operator, lex, lex_n_tokens, lex_signature, LexState}, lite_parser::{lite_parse, LiteCommand, LitePipeline, LiteRedirection, LiteRedirectionTarget}, diff --git a/crates/nu-parser/tests/test_lex.rs b/crates/nu-parser/tests/test_lex.rs index 22fe4c4715..a14843f3f0 100644 --- a/crates/nu-parser/tests/test_lex.rs +++ b/crates/nu-parser/tests/test_lex.rs @@ -1,3 +1,5 @@ +#![allow(clippy::byte_char_slices)] + use nu_parser::{lex, lex_n_tokens, lex_signature, LexState, Token, TokenContents}; use nu_protocol::{ParseError, Span}; diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 183da649b8..99b3fdde4d 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -16,4 +16,4 @@ profile = "default" # use in nushell, we may opt to use the bleeding edge stable version of rust. # I believe rust is on a 6 week release cycle and nushell is on a 4 week release cycle. # So, every two nushell releases, this version number should be bumped by one. -channel = "1.80.1" +channel = "1.81.0"