about summary refs log tree commit diff
path: root/compiler/rustc_errors/src/snippet.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-06-04 03:39:24 +0000
committerbors <bors@rust-lang.org>2023-06-04 03:39:24 +0000
commit9eee230cd0a56bfba3ce65121798d9f9f4341cdd (patch)
tree319338c2838ffbf39ef0de3651c23cd215a03218 /compiler/rustc_errors/src/snippet.rs
parentd8095acb5f8134cbff59b2cc8c8b7f5cec364280 (diff)
parent9e683442a9ed4d5c353f40d58dc64a0bc6492a59 (diff)
downloadrust-9eee230cd0a56bfba3ce65121798d9f9f4341cdd.tar.gz
rust-9eee230cd0a56bfba3ce65121798d9f9f4341cdd.zip
Auto merge of #112240 - cjgillot:recurse-inline, r=scottmcm
Only check inlining counter after recursing.

This PR aims to reduce the strength of https://github.com/rust-lang/rust/pull/105119 even more.

In the current implementation, we check the inline count before recursing. This means that we never actually reach inlining depth 3.

This PR checks the counter after recursion, to give a chance to inline at depth >= 3.

r? `@scottmcm`
cc `@JakobDegen`
Diffstat (limited to 'compiler/rustc_errors/src/snippet.rs')
0 files changed, 0 insertions, 0 deletions