1
Fork 0

Add rustc_strict_coherence attribute and use it to check overlap

This commit is contained in:
Santiago Pastorino 2021-10-22 15:44:28 -03:00
parent 74454c4888
commit da79fa964c
No known key found for this signature in database
GPG key ID: 8131A24E0C79EFAF
6 changed files with 64 additions and 2 deletions

View file

@ -556,6 +556,7 @@ pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
rustc_attr!(TEST, rustc_outlives, Normal, template!(Word)),
rustc_attr!(TEST, rustc_capture_analysis, Normal, template!(Word)),
rustc_attr!(TEST, rustc_insignificant_dtor, Normal, template!(Word)),
rustc_attr!(TEST, rustc_strict_coherence, Normal, template!(Word)),
rustc_attr!(TEST, rustc_variance, Normal, template!(Word)),
rustc_attr!(TEST, rustc_layout, Normal, template!(List: "field1, field2, ...")),
rustc_attr!(TEST, rustc_regions, Normal, template!(Word)),