From 1c9f4f6d3647f386d30c62c543cc65224a23ff50 Mon Sep 17 00:00:00 2001 From: Nicolas Stucki Date: Tue, 16 Mar 2021 13:01:18 +0100 Subject: [PATCH] Remove outdated docs of @forceInline Closes #11766 --- docs/docs/reference/metaprogramming/inline.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/docs/docs/reference/metaprogramming/inline.md b/docs/docs/reference/metaprogramming/inline.md index e89276926cee..76fb920ea5a2 100644 --- a/docs/docs/reference/metaprogramming/inline.md +++ b/docs/docs/reference/metaprogramming/inline.md @@ -188,12 +188,6 @@ backend to inline code. The `inline` modifier is a more powerful option: - expansion happens in the frontend instead of in the backend and - expansion also applies to recursive methods. -To cross compile between both Scala 3 and Scala 2, we introduce a new `@forceInline` -annotation which is equivalent to the new `inline` modifier. Note that -Scala 2 ignores the `@forceInline` annotation, so one must use both -annotations to guarantee inlining for Scala 3 and at the same time hint inlining -for Scala 2 (i.e. `@forceInline @inline`). -