about summary refs log tree commit diff
path: root/tests/ui/force-inlining/inherent.stderr
diff options
context:
space:
mode:
authorReuben Cruise <reuben.cruise@arm.com>2025-09-25 16:11:34 +0100
committerReuben Cruise <reuben.cruise@arm.com>2025-10-02 11:30:11 +0100
commit5bf5e7116099d85a99d047cfa43db155074e594a (patch)
treea486a482df041b66dafc4d44b40b77dd43830e1a /tests/ui/force-inlining/inherent.stderr
parentcaccb4d0368bd918ef6668af8e13834d07040417 (diff)
downloadrust-5bf5e7116099d85a99d047cfa43db155074e594a.tar.gz
rust-5bf5e7116099d85a99d047cfa43db155074e594a.zip
Extends `rustc_force_inline` to inherent methods
- Changes parser to allow application to inherent methods.
- Adds tests to confirm extended functionality works just as the existing.
Diffstat (limited to 'tests/ui/force-inlining/inherent.stderr')
-rw-r--r--tests/ui/force-inlining/inherent.stderr13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/force-inlining/inherent.stderr b/tests/ui/force-inlining/inherent.stderr
new file mode 100644
index 00000000000..1ffc78848fe
--- /dev/null
+++ b/tests/ui/force-inlining/inherent.stderr
@@ -0,0 +1,13 @@
+error: `Foo::bar` is incompatible with `#[rustc_force_inline]`
+  --> $DIR/inherent.rs:7:5
+   |
+LL |     #[rustc_force_inline]
+   |     ^^^^^^^^^^^^^^^^^^^^^
+...
+LL |     fn bar() {}
+   |     -------- `Foo::bar` defined here
+   |
+   = note: incompatible due to: #[rustc_no_mir_inline]
+
+error: aborting due to 1 previous error
+