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/codegen-units/item-collection/unreferenced-const-fn.rs

11 lines
217 B
Rust
Raw Normal View History

[AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives
2024-02-22 12:10:29 +00:00
//@ compile-flags:-Zprint-mono-items=lazy
Add regression tests for non-instantiation of inline and const fns.
2017-10-27 14:32:26 +02:00
#![deny(dead_code)]
#![crate_type = "rlib"]
ty: remove obsolete printer This commit removes the obsolete printer and replaces all uses of it with `FmtPrinter`. Of the replaced uses, all but one use was in `debug!` logging, two cases were notable: - `MonoItem::to_string` is used in `-Z print-mono-items` and therefore affects the output of all codegen-units tests. - `DefPathBasedNames` was used in `librustc_codegen_llvm/type_of.rs` with `LLVMStructCreateNamed` and that'll now get different values, but this should result in no functional change. Signed-off-by: David Wood <david@davidtw.co>
2020-08-28 14:31:03 +01:00
//~ MONO_ITEM fn foo @@ unreferenced_const_fn-cgu.0[External]
Automatically enable cross-crate inlining for small functions
2023-10-06 20:29:42 -04:00
#[inline(never)]
Add regression tests for non-instantiation of inline and const fns.
2017-10-27 14:32:26 +02:00
pub const fn foo(x: u32) -> u32 {
x + 0xf00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 1198ms Template: 2ms
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