We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6782bb4 commit ce5ec54Copy full SHA for ce5ec54
tests/run-make/optimization-remarks-dir/Makefile
@@ -0,0 +1,12 @@
1
+include ../tools.mk
2
+
3
+PROFILE_DIR=$(TMPDIR)/profiles
4
5
+all: check_inline check_filter
6
7
+check_inline:
8
+ $(RUSTC) -O main.rs -Cremark=all -Zremark-dir=$(PROFILE_DIR)
9
+ cat $(PROFILE_DIR)/*.opt.yaml | $(CGREP) -e "inline"
10
+check_filter:
11
+ $(RUSTC) -O main.rs -Cremark=foo -Zremark-dir=$(PROFILE_DIR)
12
+ cat $(PROFILE_DIR)/*.opt.yaml | $(CGREP) -e -v "inline"
tests/run-make/optimization-remarks-dir/main.rs
@@ -0,0 +1,6 @@
+#[inline(never)]
+fn foo() {}
+fn main() {
+ foo();
+}
0 commit comments