about summary refs log tree commit diff
path: root/compiler/rustc_middle/src/mir/syntax.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2025-04-14 15:10:43 +0000
committerMichael Goulet <michael@errs.io>2025-04-15 18:30:35 +0000
commitc774adcbb535e69bffe5be329af006959f897fbd (patch)
treec84fe987b44fccc409f3e81d7f78be851dec0ebe /compiler/rustc_middle/src/mir/syntax.rs
parent13b4734e3102b4fd5ad99b98a8cc46744faf5d68 (diff)
downloadrust-c774adcbb535e69bffe5be329af006959f897fbd.tar.gz
rust-c774adcbb535e69bffe5be329af006959f897fbd.zip
Split TypeFolder and FallibleTypeFolder
Diffstat (limited to 'compiler/rustc_middle/src/mir/syntax.rs')
-rw-r--r--compiler/rustc_middle/src/mir/syntax.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_middle/src/mir/syntax.rs b/compiler/rustc_middle/src/mir/syntax.rs
index ff9d32ebb71..c7561f8afef 100644
--- a/compiler/rustc_middle/src/mir/syntax.rs
+++ b/compiler/rustc_middle/src/mir/syntax.rs
@@ -931,6 +931,8 @@ pub enum TerminatorKind<'tcx> {
         asm_macro: InlineAsmMacro,
 
         /// The template for the inline assembly, with placeholders.
+        #[type_foldable(identity)]
+        #[type_visitable(ignore)]
         template: &'tcx [InlineAsmTemplatePiece],
 
         /// The operands for the inline assembly, as `Operand`s or `Place`s.
@@ -941,6 +943,8 @@ pub enum TerminatorKind<'tcx> {
 
         /// Source spans for each line of the inline assembly code. These are
         /// used to map assembler errors back to the line in the source code.
+        #[type_foldable(identity)]
+        #[type_visitable(ignore)]
         line_spans: &'tcx [Span],
 
         /// Valid targets for the inline assembly.