You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#15076 removed the extra alloca created for by-value bindings in a match. Unfortunately, that also changed at which point the value gets dropped. The previous (and IMHO desired/correct) behaviour was to drop the value when the match binding goes out of scope, but now the value gets dropped when the matched value goes out of scope.
This caused memory usage to go up quite a bit. Compiling librustc goes from hovering around 1GB and peaking around 1.6G to hovering around 2G and peaking and 2.5G.
#15076 removed the extra alloca created for by-value bindings in a match. Unfortunately, that also changed at which point the value gets dropped. The previous (and IMHO desired/correct) behaviour was to drop the value when the match binding goes out of scope, but now the value gets dropped when the matched value goes out of scope.
Example:
Output:
The text was updated successfully, but these errors were encountered: