about summary refs log tree commit diff
path: root/src/test/ui/thinlto
diff options
context:
space:
mode:
authorNicholas Nethercote <nnethercote@mozilla.com>2019-05-28 07:43:05 +1000
committerNicholas Nethercote <nnethercote@mozilla.com>2019-05-30 08:38:15 +1000
commit2232321ac7d03ed8c1d191de0653d1c32db877d6 (patch)
tree17c3e1363ce0e9ab38f3e2ac747c48b56bc81a23 /src/test/ui/thinlto
parent2ca6facaaf6dac086acf188b728edce8dd6aa8e3 (diff)
downloadrust-2232321ac7d03ed8c1d191de0653d1c32db877d6.tar.gz
rust-2232321ac7d03ed8c1d191de0653d1c32db877d6.zip
Optimize `TyCtxt::adjust_ident`.
It's a hot function that returns a 2-tuple, but the hottest call site
(`hygienic_eq`) discards the second element.

This commit renames `adjust_ident` as `adjust_ident_and_get_scope`, and
then introduces a new `adjust_ident` that only computes the first
element. This change also avoids the need to pass in an unused
`DUMMY_HIR_ID` argument in a couple of places, which is nice.
Diffstat (limited to 'src/test/ui/thinlto')
0 files changed, 0 insertions, 0 deletions