Some call sites hold on to the dyn.Path provided to them by the callback. It must therefore never be mutated after the callback returns, or these mutations leak out into unknown scope.
This change means it is no longer possible for this failure mode to happen.
Changes
Some call sites hold on to the
dyn.Path
provided to them by the callback. It must therefore never be mutated after the callback returns, or these mutations leak out into unknown scope.This change means it is no longer possible for this failure mode to happen.
Tests
Unit test.