Skip to content

Commit f5106a2

Browse files
committed
Poke in the dark and see if bors+windows stops screaming
1 parent a9156e9 commit f5106a2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/librustc/ty/instance.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ impl<'tcx> InstanceDef<'tcx> {
109109
return true
110110
}
111111
let codegen_fn_attrs = tcx.codegen_fn_attrs(self.def_id());
112-
codegen_fn_attrs.requests_inline() || tcx.is_const_fn(self.def_id())
112+
// need to use `is_const_fn_raw` since we don't really care if the user can use it as a
113+
// const fn, just whether the function should be inlined
114+
codegen_fn_attrs.requests_inline() || tcx.is_const_fn_raw(self.def_id())
113115
}
114116
}
115117

0 commit comments

Comments
 (0)