Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
master
rust/tests/mir-opt/inline/inline_async.rs

20 lines
388 B
Rust
Raw Permalink Normal View History

Allow to run filecheck in mir-opt tests.
2023-10-16 17:36:39 +00:00
// skip-filecheck
s/generator/coroutine/
2023-10-19 21:46:28 +00:00
// Checks that inliner doesn't introduce cycles when optimizing coroutines.
inliner: Avoid query cycles when optimizing generators The HIR Id trick is insufficient to prevent query cycles when optimizing generators, since merely requesting a layout of a generator also computes its `optimized_mir`. Make no attempts to inline functions into generators within the same crate to avoid query cycles.
2020-09-02 00:00:00 +00:00
// The outcome of optimization is not verfied, just the absence of the cycle.
// Regression test for #76181.
//
[AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives
2024-02-22 12:10:29 +00:00
//@ edition:2018
inliner: Avoid query cycles when optimizing generators The HIR Id trick is insufficient to prevent query cycles when optimizing generators, since merely requesting a layout of a generator also computes its `optimized_mir`. Make no attempts to inline functions into generators within the same crate to avoid query cycles.
2020-09-02 00:00:00 +00:00
#![crate_type = "lib"]
pub struct S;
impl S {
pub async fn g(&mut self) {
self.h();
}
pub fn h(&mut self) {
let _ = self.g();
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 1345ms 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