diff options
| author | Josh Stone <jistone@redhat.com> | 2021-04-12 16:03:53 -0700 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2021-04-16 11:11:59 -0700 |
| commit | b79af2fcde91abeae805c2dbccfdbf7114bfd47b (patch) | |
| tree | 05a7eed70824bfae0aef053f516fb5a5327824fb /compiler/rustc_feature | |
| parent | 2faef12b656d40522ca3b4a53b36299b4364e717 (diff) | |
| download | rust-b79af2fcde91abeae805c2dbccfdbf7114bfd47b.tar.gz rust-b79af2fcde91abeae805c2dbccfdbf7114bfd47b.zip | |
Implement #[rustc_skip_array_during_method_dispatch]
Diffstat (limited to 'compiler/rustc_feature')
| -rw-r--r-- | compiler/rustc_feature/src/builtin_attrs.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler/rustc_feature/src/builtin_attrs.rs b/compiler/rustc_feature/src/builtin_attrs.rs index f286ea7cdec..be3caf709c7 100644 --- a/compiler/rustc_feature/src/builtin_attrs.rs +++ b/compiler/rustc_feature/src/builtin_attrs.rs @@ -540,6 +540,11 @@ pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[ rustc_main, Normal, template!(Word), "the `#[rustc_main]` attribute is used internally to specify test entry point function", ), + rustc_attr!( + rustc_skip_array_during_method_dispatch, Normal, template!(Word), + "the `#[rustc_skip_array_during_method_dispatch]` attribute is used to exclude a trait \ + from method dispatch when the receiver is an array, for compatibility in editions < 2021." + ), // ========================================================================== // Internal attributes, Testing: |
