Automatic merge from submit-queue (batch tested with PRs 40746, 41699, 42108, 42174, 42093) Output result of apply operation Fixes #41690 Plumbs the resulting object from patch operations back to the top level so it can be output when printing