Skip to content

Commit 0a0b470

Browse files
committed
make mark_span_for_resize inert for perf comparison
1 parent 0986978 commit 0a0b470

File tree

1 file changed

+4
-0
lines changed
  • compiler/rustc_middle/src/ty

1 file changed

+4
-0
lines changed

compiler/rustc_middle/src/ty/mod.rs

+4
Original file line numberDiff line numberDiff line change
@@ -2400,7 +2400,11 @@ impl<'tcx> TyCtxt<'tcx> {
24002400
/// `Span` before it was changed. This is used today only to be able to identify `Span`s coming
24012401
/// from a proc-macro even when it was modified, to avoid giving spurious suggestions when the
24022402
/// `Span` points at an attribute and not user code.
2403+
#[inline(always)]
24032404
pub fn mark_span_for_resize(self, span: Span) -> Span {
2405+
if true {
2406+
return span;
2407+
}
24042408
self.with_stable_hashing_context(|hcx| {
24052409
span.mark_with_reason(None, rustc_span::DesugaringKind::Resize, span.edition(), hcx)
24062410
})

0 commit comments

Comments
 (0)