about summary refs log tree commit diff
path: root/compiler/rustc_feature/src
diff options
context:
space:
mode:
authorlcnr <rust@lcnr.de>2022-01-27 07:58:33 +0100
committerlcnr <rust@lcnr.de>2022-01-27 07:58:33 +0100
commite6808381e529c7e24645de3a0c605ac07edeaff3 (patch)
tree6216d93e30d1b4d760fe4353b9247067f769e0d9 /compiler/rustc_feature/src
parent563250a65c884c6767dc2ee2e2580360d33d561c (diff)
downloadrust-e6808381e529c7e24645de3a0c605ac07edeaff3.tar.gz
rust-e6808381e529c7e24645de3a0c605ac07edeaff3.zip
update pass_by_value
Diffstat (limited to 'compiler/rustc_feature/src')
-rw-r--r--compiler/rustc_feature/src/builtin_attrs.rs2
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 0e643ff5998..fc7f01f041d 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), WarnFollowing,
+        template!(Word), ErrorFollowing,
         "#[rustc_pass_by_value] is used to mark types that must be passed by value instead of reference."
     ),
     BuiltinAttribute {