rust/compiler/rustc_passes/src
Yuki Okushi ae95005ecc
Rollup merge of #77976 - oliviacrain:issue-77915-fix, r=matthewjasper
Mark inout asm! operands as used in liveness pass

Variables used in `inout` operands in inline assembly (that is, they're used as both input and output to some arbitrary assembly instruction) are being marked as read and written, but are not marked as being used in the RWU table during the liveness pass. This can result in such expressions triggering an unused variable lint warning. This is incorrect behavior- reads without uses are currently only used for compound assignments. We conservatively assume that an `inout` operand is being read and used in the context of the assembly instruction.

Closes #77915
2020-10-22 09:45:33 +09:00
..
check_attr.rs Enforce whitespace ascii character check for doc alias 2020-10-06 14:29:42 +02:00
check_const.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
dead.rs Remove weird slice conversion 2020-10-18 10:31:58 +02:00
diagnostic_items.rs transmute: use diagnostic item 2020-09-19 11:33:11 +02:00
entry.rs Enforce crate level attributes checks 2020-10-04 13:36:47 +02:00
hir_id_validator.rs Address review comment 2020-09-25 22:48:44 +01:00
hir_stats.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
intrinsicck.rs Replace target.target with target and target.ptr_width with target.pointer_width 2020-10-15 12:02:24 +02:00
lang_items.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
layout_test.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
lib.rs liveness: Use newtype_index for Variable and LiveNode 2020-09-26 16:44:41 +02:00
lib_features.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
liveness.rs Mark InOut operands as used in RWU table with write_place 2020-10-18 23:51:10 -05:00
loops.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
reachable.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
region.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
stability.rs stabilize union with 'ManuallyDrop' fields and 'impl Drop for Union' 2020-10-16 11:33:33 +02:00
upvars.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
weak_lang_items.rs Replace target.target with target and target.ptr_width with target.pointer_width 2020-10-15 12:02:24 +02:00