Skip to content

Latest commit

 

History

History
49 lines (46 loc) · 3.36 KB

README.md

File metadata and controls

49 lines (46 loc) · 3.36 KB

Ownership diagnostics

Every enabled descriptor has a dedicated help page. IDs and severities are maintained independently of the optional IDE cleanup provider.

Diagnostic Default severity Rule
NAM1001 error Native owner alias is not permitted
NAM1002 error Owner-derived handle cannot be copied
NAM1003 error Native ownership must end before lexical exit
NAM1004 error Native value belongs to a returned generation
NAM1005 error Using-owner lifecycle is automatic
NAM1006 error Region construction must be lexical
NAM1007 error Native return has live generation state
NAM1009 error Native owner lifecycle transition is invalid
NAM1011 error Native value cannot cross an asynchronous boundary
NAM1012 error Region-local value escapes its region
NAM1013 error Pooled value escapes its owner
NAM1015 error Deterministic field pool requires disposal
NAM1016 error Pooled value crosses an unknown call
NAM1017 warning Deferred pool return has live generation state
NAM1018 error Scoped acquisition must initialize a scoped local
NAM1019 warning Ordinary native acquisition does not recycle scoped storage
NAM1020 warning Scoped native storage is not recycled on every exit
NAM1021 error Transfer ownership cannot be copied
NAM1022 error Inactive transfer cannot be used
NAM1023 error Transfer move requires active ownership
NAM1024 error Native transfer view cannot escape
NAM1025 error Transfer ownership must end
NAM1026 error Transfer acquisition requires a local source
NAM1027 error Transfer parameter must own its value
NAM1028 error Native builder ownership cannot be copied
NAM1029 error Inactive native builder cannot be used
NAM1030 error Native builder completion requires active ownership
NAM1031 error Native builder ownership must end
NAM1032 error Native builder acquisition requires one local owner
NAM1033 error Native builder parameter is not permitted
NAM1034 error Native builder completion requires a typed transfer destination
NAM1035 warning NativeRegion scope has a managed allocation
NAM1036 error Native workspace ownership cannot be copied
NAM1037 error Native workspace operation requires active authority
NAM1038 error Native workspace ownership must end
NAM1039 error Native workspace acquisition requires one proven owner
NAM1040 error Native workspace parameter must be a scoped read-only borrow
NAM1050 error Prepared lease requires a successful acquisition guard
NAM9001 error Bundled analyzer is required

See safe fixes and the managed-first allocator guide.