Skip to content

Commit

Permalink
Rename alloc::force_expr to __rust_force_expr.
Browse files Browse the repository at this point in the history
  • Loading branch information
m-ou-se committed Jan 21, 2021
1 parent 8f28a32 commit 1934eaf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions library/alloc/src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),+]))
);
}

Expand Down Expand Up @@ -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
};
Expand Down

0 comments on commit 1934eaf

Please sign in to comment.