about summary refs log tree commit diff
path: root/library/alloc
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2021-01-21 18:30:49 +0100
committerMara Bos <m-ou.se@m-ou.se>2021-01-21 18:30:49 +0100
commit1934eaf6d87df0eb557e80f9c6a63af8569c48bd (patch)
tree395a6ea3701401ac04941ac514dbc221e4c1afb7 /library/alloc
parent8f28a3269e1e9299764f3881880524bf49afcde3 (diff)
downloadrust-1934eaf6d87df0eb557e80f9c6a63af8569c48bd.tar.gz
rust-1934eaf6d87df0eb557e80f9c6a63af8569c48bd.zip
Rename alloc::force_expr to __rust_force_expr.
Diffstat (limited to 'library/alloc')
-rw-r--r--library/alloc/src/macros.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/library/alloc/src/macros.rs b/library/alloc/src/macros.rs
index 9e5e81595cf..f1e3ee97ccc 100644
--- a/library/alloc/src/macros.rs
+++ b/library/alloc/src/macros.rs
@@ -40,13 +40,13 @@
 #[allow_internal_unstable(box_syntax, liballoc_internals)]
 macro_rules! vec {
     () => (
-        $crate::force_expr!($crate::vec::Vec::new())
+        $crate::__rust_force_expr!($crate::vec::Vec::new())
     );
     ($elem:expr; $n:expr) => (
-        $crate::force_expr!($crate::vec::from_elem($elem, $n))
+        $crate::__rust_force_expr!($crate::vec::from_elem($elem, $n))
     );
     ($($x:expr),+ $(,)?) => (
-        $crate::force_expr!(<[_]>::into_vec(box [$($x),+]))
+        $crate::__rust_force_expr!(<[_]>::into_vec(box [$($x),+]))
     );
 }
 
@@ -116,7 +116,7 @@ macro_rules! format {
 #[doc(hidden)]
 #[macro_export]
 #[unstable(feature = "liballoc_internals", issue = "none", reason = "implementation detail")]
-macro_rules! force_expr {
+macro_rules! __rust_force_expr {
     ($e:expr) => {
         $e
     };