diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2022-02-23 08:11:17 -0500 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2022-02-25 08:00:53 -0500 |
| commit | 76b13c9eeaa3bf814ff4559eafff235a892d213b (patch) | |
| tree | 7b14a6b2cf3257a3938c29aa729828925be3568b /compiler/rustc_span | |
| parent | 22c3a71de1f798822594498559622407ed882d88 (diff) | |
| download | rust-76b13c9eeaa3bf814ff4559eafff235a892d213b.tar.gz rust-76b13c9eeaa3bf814ff4559eafff235a892d213b.zip | |
Enable rustc_pass_by_value for Span
Diffstat (limited to 'compiler/rustc_span')
| -rw-r--r-- | compiler/rustc_span/src/lib.rs | 1 | ||||
| -rw-r--r-- | compiler/rustc_span/src/span_encoding.rs | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_span/src/lib.rs b/compiler/rustc_span/src/lib.rs index 9d4c2e3bb84..6d7377927c2 100644 --- a/compiler/rustc_span/src/lib.rs +++ b/compiler/rustc_span/src/lib.rs @@ -22,6 +22,7 @@ #![feature(negative_impls)] #![feature(nll)] #![feature(min_specialization)] +#![feature(rustc_attrs)] #![allow(rustc::potential_query_instability)] #[macro_use] diff --git a/compiler/rustc_span/src/span_encoding.rs b/compiler/rustc_span/src/span_encoding.rs index cd382d6c956..3ee329e9736 100644 --- a/compiler/rustc_span/src/span_encoding.rs +++ b/compiler/rustc_span/src/span_encoding.rs @@ -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, |
