mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 12:15:42 +02:00
# Description Adds a temporary workaround to prevent #15654 from being a breaking change when using a closure stored in a variable, and issues a warning. Also has a special case related to https://github.com/carapace-sh/carapace-bin/pull/2796 which suggests re-running `carapace init`   # After Submitting Remove variable name detection after grace period
This commit is contained in:
@ -1219,12 +1219,12 @@ This is an internal Nushell error, please file an issue https://github.com/nushe
|
||||
span: Span,
|
||||
},
|
||||
|
||||
#[error("{deprecated} is deprecated and will be removed in a future release")]
|
||||
#[diagnostic()]
|
||||
Deprecated {
|
||||
deprecated: &'static str,
|
||||
suggestion: &'static str,
|
||||
#[label("{deprecated} is deprecated. {suggestion}")]
|
||||
#[error("{deprecation_type} deprecated.")]
|
||||
#[diagnostic(code(nu::shell::deprecated))]
|
||||
DeprecationWarning {
|
||||
deprecation_type: &'static str,
|
||||
suggestion: String,
|
||||
#[label("{suggestion}")]
|
||||
span: Span,
|
||||
#[help]
|
||||
help: Option<&'static str>,
|
||||
|
Reference in New Issue
Block a user