]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_mir/interpret/step.rs
Rollup merge of #69580 - matthiaskrgr:map_clone, r=Centril
[rust.git] / src / librustc_mir / interpret / step.rs
index a99abc4cbf428ff504c6751448bf7e93e8239623..7d59c0181a8f3645ef84163382892ec8d043c7fb 100644 (file)
@@ -38,6 +38,9 @@ pub fn run(&mut self) -> InterpResult<'tcx> {
     /// Returns `true` as long as there are more things to do.
     ///
     /// This is used by [priroda](https://github.com/oli-obk/priroda)
+    ///
+    /// This is marked `#inline(always)` to work around adverserial codegen when `opt-level = 3`
+    #[inline(always)]
     pub fn step(&mut self) -> InterpResult<'tcx, bool> {
         if self.stack.is_empty() {
             return Ok(false);