diff --git a/crates/nu-cmd-lang/src/core_commands/break_.rs b/crates/nu-cmd-lang/src/core_commands/break_.rs index 4952dade1e..e3aa31c829 100644 --- a/crates/nu-cmd-lang/src/core_commands/break_.rs +++ b/crates/nu-cmd-lang/src/core_commands/break_.rs @@ -39,6 +39,7 @@ impl Command for Break { ) -> Result { // This is compiled specially by the IR compiler. The code here is never used when // running in IR mode. + eprintln!("Tried to execute 'run' for the 'break' command: this code path should never be reached in IR mode"); unreachable!() } diff --git a/crates/nu-cmd-lang/src/core_commands/const_.rs b/crates/nu-cmd-lang/src/core_commands/const_.rs index ca0cf787a2..9517a53dd2 100644 --- a/crates/nu-cmd-lang/src/core_commands/const_.rs +++ b/crates/nu-cmd-lang/src/core_commands/const_.rs @@ -48,6 +48,7 @@ impl Command for Const { ) -> Result { // This is compiled specially by the IR compiler. The code here is never used when // running in IR mode. + eprintln!("Tried to execute 'run' for the 'const' command: this code path should never be reached in IR mode"); unreachable!() } diff --git a/crates/nu-cmd-lang/src/core_commands/continue_.rs b/crates/nu-cmd-lang/src/core_commands/continue_.rs index 27b550ee56..e52095cb2b 100644 --- a/crates/nu-cmd-lang/src/core_commands/continue_.rs +++ b/crates/nu-cmd-lang/src/core_commands/continue_.rs @@ -38,6 +38,7 @@ impl Command for Continue { ) -> Result { // This is compiled specially by the IR compiler. The code here is never used when // running in IR mode. + eprintln!("Tried to execute 'run' for the 'continue' command: this code path should never be reached in IR mode"); unreachable!() } diff --git a/crates/nu-cmd-lang/src/core_commands/for_.rs b/crates/nu-cmd-lang/src/core_commands/for_.rs index 7f37b5dc41..c0f45f0185 100644 --- a/crates/nu-cmd-lang/src/core_commands/for_.rs +++ b/crates/nu-cmd-lang/src/core_commands/for_.rs @@ -50,6 +50,7 @@ impl Command for For { ) -> Result { // This is compiled specially by the IR compiler. The code here is never used when // running in IR mode. + eprintln!("Tried to execute 'run' for the 'for' command: this code path should never be reached in IR mode"); unreachable!() } diff --git a/crates/nu-cmd-lang/src/core_commands/if_.rs b/crates/nu-cmd-lang/src/core_commands/if_.rs index e787dcf6e4..0b7463d4f1 100644 --- a/crates/nu-cmd-lang/src/core_commands/if_.rs +++ b/crates/nu-cmd-lang/src/core_commands/if_.rs @@ -100,6 +100,7 @@ impl Command for If { ) -> Result { // This is compiled specially by the IR compiler. The code here is never used when // running in IR mode. + eprintln!("Tried to execute 'run' for the 'if' command: this code path should never be reached in IR mode"); unreachable!() } diff --git a/crates/nu-cmd-lang/src/core_commands/let_.rs b/crates/nu-cmd-lang/src/core_commands/let_.rs index 40614e4fa3..47448dfdef 100644 --- a/crates/nu-cmd-lang/src/core_commands/let_.rs +++ b/crates/nu-cmd-lang/src/core_commands/let_.rs @@ -48,6 +48,7 @@ impl Command for Let { ) -> Result { // This is compiled specially by the IR compiler. The code here is never used when // running in IR mode. + eprintln!("Tried to execute 'run' for the 'let' command: this code path should never be reached in IR mode"); unreachable!() } diff --git a/crates/nu-cmd-lang/src/core_commands/loop_.rs b/crates/nu-cmd-lang/src/core_commands/loop_.rs index 8804766129..a07b316476 100644 --- a/crates/nu-cmd-lang/src/core_commands/loop_.rs +++ b/crates/nu-cmd-lang/src/core_commands/loop_.rs @@ -39,6 +39,7 @@ impl Command for Loop { ) -> Result { // This is compiled specially by the IR compiler. The code here is never used when // running in IR mode. + eprintln!("Tried to execute 'run' for the 'loop' command: this code path should never be reached in IR mode"); unreachable!() } diff --git a/crates/nu-cmd-lang/src/core_commands/match_.rs b/crates/nu-cmd-lang/src/core_commands/match_.rs index a36c64e917..db2bc2e1f0 100644 --- a/crates/nu-cmd-lang/src/core_commands/match_.rs +++ b/crates/nu-cmd-lang/src/core_commands/match_.rs @@ -43,6 +43,7 @@ impl Command for Match { ) -> Result { // This is compiled specially by the IR compiler. The code here is never used when // running in IR mode. + eprintln!("Tried to execute 'run' for the 'match' command: this code path should never be reached in IR mode"); unreachable!() } diff --git a/crates/nu-cmd-lang/src/core_commands/mut_.rs b/crates/nu-cmd-lang/src/core_commands/mut_.rs index a5feacfd85..04e554e226 100644 --- a/crates/nu-cmd-lang/src/core_commands/mut_.rs +++ b/crates/nu-cmd-lang/src/core_commands/mut_.rs @@ -48,6 +48,7 @@ impl Command for Mut { ) -> Result { // This is compiled specially by the IR compiler. The code here is never used when // running in IR mode. + eprintln!("Tried to execute 'run' for the 'mut' command: this code path should never be reached in IR mode"); unreachable!() } diff --git a/crates/nu-cmd-lang/src/core_commands/return_.rs b/crates/nu-cmd-lang/src/core_commands/return_.rs index 114d6e796a..b3571ee8a8 100644 --- a/crates/nu-cmd-lang/src/core_commands/return_.rs +++ b/crates/nu-cmd-lang/src/core_commands/return_.rs @@ -42,6 +42,7 @@ impl Command for Return { ) -> Result { // This is compiled specially by the IR compiler. The code here is never used when // running in IR mode. + eprintln!("Tried to execute 'run' for the 'return' command: this code path should never be reached in IR mode"); unreachable!() } diff --git a/crates/nu-cmd-lang/src/core_commands/try_.rs b/crates/nu-cmd-lang/src/core_commands/try_.rs index b99255337b..4b35a54974 100644 --- a/crates/nu-cmd-lang/src/core_commands/try_.rs +++ b/crates/nu-cmd-lang/src/core_commands/try_.rs @@ -49,6 +49,7 @@ impl Command for Try { ) -> Result { // This is compiled specially by the IR compiler. The code here is never used when // running in IR mode. + eprintln!("Tried to execute 'run' for the 'try' command: this code path should never be reached in IR mode"); unreachable!(); } diff --git a/crates/nu-cmd-lang/src/core_commands/while_.rs b/crates/nu-cmd-lang/src/core_commands/while_.rs index b8a63f6c35..ac5d13a881 100644 --- a/crates/nu-cmd-lang/src/core_commands/while_.rs +++ b/crates/nu-cmd-lang/src/core_commands/while_.rs @@ -48,6 +48,7 @@ impl Command for While { ) -> Result { // This is compiled specially by the IR compiler. The code here is never used when // running in IR mode. + eprintln!("Tried to execute 'run' for the 'while' command: this code path should never be reached in IR mode"); unreachable!() }