diff options
| author | Mahdi Dibaiee <mdibaiee@pm.me> | 2022-01-11 09:28:13 +0000 |
|---|---|---|
| committer | Mahdi Dibaiee <mdibaiee@pm.me> | 2022-01-11 09:28:13 +0000 |
| commit | a6762e962e50d5b6f864e33ebb27878e90651f22 (patch) | |
| tree | 9c9ac8a3c059c4d84f3407d16611e63123c41458 /compiler/rustc_feature/src | |
| parent | 71e33146734362984258df415ac8308618968ed4 (diff) | |
| download | rust-a6762e962e50d5b6f864e33ebb27878e90651f22.tar.gz rust-a6762e962e50d5b6f864e33ebb27878e90651f22.zip | |
rustc_pass_by_value: allow types with no parameters on self
includes minor refactorings
Diffstat (limited to 'compiler/rustc_feature/src')
| -rw-r--r-- | compiler/rustc_feature/src/builtin_attrs.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_feature/src/builtin_attrs.rs b/compiler/rustc_feature/src/builtin_attrs.rs index 88bf81864b2..46817bc9c3f 100644 --- a/compiler/rustc_feature/src/builtin_attrs.rs +++ b/compiler/rustc_feature/src/builtin_attrs.rs @@ -625,7 +625,7 @@ pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[ ), rustc_attr!( rustc_pass_by_value, Normal, - template!(Word, NameValueStr: "reason"), WarnFollowing, + template!(Word), WarnFollowing, "#[rustc_pass_by_value] is used to mark types that must be passed by value instead of reference." ), BuiltinAttribute { |
