-
Notifications
You must be signed in to change notification settings - Fork 13.8k
implement checks for tail calls #133607
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
implement checks for tail calls #133607
Changes from all commits
cfb7841
3208b86
d93ea6b
ef5808a
c6454dd
144d6cc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -916,6 +916,12 @@ rustc_queries! { | |
cache_on_disk_if { true } | ||
} | ||
|
||
/// Checks well-formedness of tail calls (`become f()`). | ||
query check_tail_calls(key: LocalDefId) -> Result<(), rustc_errors::ErrorGuaranteed> { | ||
desc { |tcx| "tail-call-checking `{}`", tcx.def_path_str(key) } | ||
cache_on_disk_if { true } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. probably dont need this caching There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. or at least possibly seeing if this is perf sensitive There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was copied from |
||
} | ||
|
||
/// Returns the types assumed to be well formed while "inside" of the given item. | ||
/// | ||
/// Note that we've liberated the late bound regions of function signatures, so | ||
|