diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2021-07-13 10:57:10 -0400 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2021-07-13 10:57:10 -0400 |
| commit | 7d373c9c11a63714a1dd9ce79d38a088a435723d (patch) | |
| tree | 879fbb44b1912bd5f0134e7076cc50de1dcecec1 /compiler/rustc_query_impl/src | |
| parent | 81053b912fab51978f4806cddfc37eb9a9a5afc6 (diff) | |
| download | rust-7d373c9c11a63714a1dd9ce79d38a088a435723d.tar.gz rust-7d373c9c11a63714a1dd9ce79d38a088a435723d.zip | |
Avoid cloning ExpnData to access Span edition
ExpnData is a fairly hefty structure to clone; cloning it may not be cheap. In some cases this may get optimized out, but it's not clear that will always be the case. Try to avoid that cost.
Diffstat (limited to 'compiler/rustc_query_impl/src')
0 files changed, 0 insertions, 0 deletions
