mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-17 19:21:15 -03:00
Eliminate moved_ref
Use real rvalue references instead
This commit is contained in:
@@ -3305,7 +3305,7 @@ static int read_ni(int fd, const io_chain_t &io) {
|
||||
parse_error_list_t errors;
|
||||
parse_node_tree_t tree;
|
||||
if (!parse_util_detect_errors(str, &errors, false /* do not accept incomplete */, &tree)) {
|
||||
parser.eval_acquiring_tree(str, io, TOP, moved_ref<parse_node_tree_t>(tree));
|
||||
parser.eval(str, io, TOP, std::move(tree));
|
||||
} else {
|
||||
wcstring sb;
|
||||
parser.get_backtrace(str, errors, &sb);
|
||||
|
||||
Reference in New Issue
Block a user