1
Fork 0

Enable rustc_pass_by_value for Span

This commit is contained in:
Mark Rousskov 2022-02-23 08:11:17 -05:00
parent 22c3a71de1
commit 76b13c9eea
8 changed files with 28 additions and 22 deletions

View file

@ -61,8 +61,7 @@ use rustc_data_structures::fx::FxIndexSet;
/// using the callback `SPAN_TRACK` to access the query engine.
///
#[derive(Clone, Copy, Eq, PartialEq, Hash)]
// FIXME: Enable this in the bootstrap bump, but separate commit.
// #[rustc_pass_by_value]
#[rustc_pass_by_value]
pub struct Span {
base_or_index: u32,
len_or_tag: u16,