Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 2 Packages Projects Releases Wiki Activity
Files
51b51b51d7931da85280382a81c4dd80c73ca754
rust/tests/ui/explicit-tail-calls/become-macro.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
208 B
Rust
Raw Normal View History

implement checks for tail calls this implements checks necessary to guarantee that we can actually perform a tail call. while extremely restrictive, this is what is documented in the RFC, and all these checks are needed for one reason or another.
2023-05-11 11:43:09 +00:00
//@ check-pass
use `expect(incomplete_feature)` instead of `allow` in tail call tests
2024-11-29 04:28:02 +01:00
#![expect(incomplete_features)]
implement checks for tail calls this implements checks necessary to guarantee that we can actually perform a tail call. while extremely restrictive, this is what is documented in the RFC, and all these checks are needed for one reason or another.
2023-05-11 11:43:09 +00:00
#![feature(explicit_tail_calls, decl_macro)]
macro call($f:expr $(, $args:expr)* $(,)?) {
($f)($($args),*)
}
fn main() {
become call!(f);
}
fn f() {}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 221ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API