Run:
RUSTFLAGS="-Zprint-type-sizes" cargo +toolchain check 2>&1 | tee rust_sizes.txt
grep " type.*bytes" rust_sizes.txt | sed 's/:\(.*\):\(.*\):\(.*\)/\2 \3 \1/' | sort -u | sort -nk3 | less
This will include output like the following:
print-type-size type 1160 bytes, alignment 8 bytes `plan::Sink`
print-type-size type 1160 bytes, alignment 8 bytes `sql::plan::Sink`