From 3cb10fec4b55572eff3275399e4faa72026356f2 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Sun, 4 Nov 2018 23:54:10 +0100 Subject: [PATCH] collections: add `-Z emit-stack-sizes` link also add a link to the `stack-sizes` tool --- src/collections/collections.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/collections/collections.md b/src/collections/collections.md index 6a740eb..bc67088 100644 --- a/src/collections/collections.md +++ b/src/collections/collections.md @@ -222,9 +222,10 @@ available. Furthermore, fixed capacity collections allocated on the stack will be reported by [`-Z emit-stack-sizes`] flag which means that tools that analyze stack usage -will include them in their analysis. +(like [`stack-sizes`]) will include them in their analysis. - +[`-Z emit-stack-sizes`]: https://doc.rust-lang.org/beta/unstable-book/compiler-flags/emit-stack-sizes.html +[`stack-sizes`]: https://crates.io/crates/stack-sizes However, fixed capacity collections can *not* be shrunk which can result in lower load factors (the ratio between the size of the collection and its