nushell/crates/nu-cmd-lang/src
Bahex 2e1b6acc0e
feat(const): implement run_const for const (#15082)
- fixes #14559

# Description
Allow using `const` keyword in const contexts. The `run_const` body is
basically empty as the actual logic is already handled by the parser.

# User-Facing Changes
`const` keyword can now be used in `const` contexts.

# Tests + Formatting

I'll add some tests before marking this ready. 

- 🟢 toolkit fmt
- 🟢 toolkit clippy
- 🟢 toolkit test
- 🟢 toolkit test stdlib

# After Submitting
N/A

---------

Co-authored-by: Bahex <17417311+Bahex@users.noreply.github.com>
2025-02-12 16:59:51 +01:00
..
core_commands feat(const): implement run_const for const (#15082) 2025-02-12 16:59:51 +01:00
default_context.rs Custom command attributes (#14906) 2025-02-11 06:34:51 -06:00
example_support.rs fix: clippy warnings with --all-features (#15035) 2025-02-07 12:30:25 +01:00
example_test.rs Implementing ByteStream interuption on infinite stream (#13552) 2025-01-11 13:28:08 -08:00
lib.rs Refactor/fix tests affecting the whole command set (#15073) 2025-02-11 11:36:36 +01:00
parse_const_test.rs Refactor/fix tests affecting the whole command set (#15073) 2025-02-11 11:36:36 +01:00