File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ Only the last instance of `export_name` on an item is honored. Previous `export_
144144> `rustc ` currently warns on preceding duplicate `export_name ` attributes . This may become an error in the future .
145145
146146r [abi . export_name. unsafe ]
147- This attribute is unsafe as a symbol with a custom name may collide with another symbol with the same name (or with a well - known symbol ), leading to undefined behavior .
147+ The ` export_name ` attribute must be marked with [` unsafe `][ attributes . safety] because a symbol with a custom name may collide with another symbol with the same name (or with a well - known symbol ), leading to undefined behavior .
148148
149149r [abi . export_name. edition2024]
150150> [! EDITION - 2024 ]
You can’t perform that action at this time.
0 commit comments