Use `::foo` for crate dependencies, instead of `foo`.
In the special case of `::std`, this also completely removes the need for `rust_std` to disambiguate from C++ std.
PiperOrigin-RevId: 459736798
diff --git a/rs_bindings_from_cc/test/golden/namespace_rs_api.rs b/rs_bindings_from_cc/test/golden/namespace_rs_api.rs
index c87104a..b359999 100644
--- a/rs_bindings_from_cc/test/golden/namespace_rs_api.rs
+++ b/rs_bindings_from_cc/test/golden/namespace_rs_api.rs
@@ -11,14 +11,12 @@
#![allow(non_upper_case_globals)]
#![deny(warnings)]
-use ::std as rust_std;
-
// Part of the Crubit project, under the Apache License v2.0 with LLVM
// Exceptions. See /LICENSE for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
pub mod test_namespace_bindings {
- #[ctor::recursively_pinned]
+ #[::ctor::recursively_pinned]
#[repr(C)]
pub struct S {
pub i: i32,
@@ -32,70 +30,64 @@
// Error while generating bindings for item 'S::S':
// Cannot generate bindings for overloaded function
- impl<'b> ctor::CtorNew<&'b crate::test_namespace_bindings::S> for S {
- type CtorType = impl ctor::Ctor<Output = Self>;
+ impl<'b> ::ctor::CtorNew<&'b crate::test_namespace_bindings::S> for S {
+ type CtorType = impl ::ctor::Ctor<Output = Self>;
#[inline(always)]
fn ctor_new(args: &'b crate::test_namespace_bindings::S) -> Self::CtorType {
let __param_0 = args;
- ctor::FnCtor::new(
- move |dest: crate::rust_std::pin::Pin<
- &mut crate::rust_std::mem::MaybeUninit<Self>,
- >| {
- unsafe {
- crate::detail::__rust_thunk___ZN23test_namespace_bindings1SC1ERKS0_(
- crate::rust_std::pin::Pin::into_inner_unchecked(dest),
- __param_0,
- );
- }
+ ::ctor::FnCtor::new(
+ move |dest: ::std::pin::Pin<&mut ::std::mem::MaybeUninit<Self>>| unsafe {
+ crate::detail::__rust_thunk___ZN23test_namespace_bindings1SC1ERKS0_(
+ ::std::pin::Pin::into_inner_unchecked(dest),
+ __param_0,
+ );
},
)
}
}
- impl<'b> ctor::CtorNew<(&'b crate::test_namespace_bindings::S,)> for S {
- type CtorType = impl ctor::Ctor<Output = Self>;
+ impl<'b> ::ctor::CtorNew<(&'b crate::test_namespace_bindings::S,)> for S {
+ type CtorType = impl ::ctor::Ctor<Output = Self>;
#[inline(always)]
fn ctor_new(args: (&'b crate::test_namespace_bindings::S,)) -> Self::CtorType {
let (arg,) = args;
- <Self as ctor::CtorNew<&'b crate::test_namespace_bindings::S>>::ctor_new(arg)
+ <Self as ::ctor::CtorNew<&'b crate::test_namespace_bindings::S>>::ctor_new(arg)
}
}
- impl<'b> ctor::CtorNew<ctor::RvalueReference<'b, crate::test_namespace_bindings::S>> for S {
- type CtorType = impl ctor::Ctor<Output = Self>;
+ impl<'b> ::ctor::CtorNew<::ctor::RvalueReference<'b, crate::test_namespace_bindings::S>> for S {
+ type CtorType = impl ::ctor::Ctor<Output = Self>;
#[inline(always)]
fn ctor_new(
- args: ctor::RvalueReference<'b, crate::test_namespace_bindings::S>,
+ args: ::ctor::RvalueReference<'b, crate::test_namespace_bindings::S>,
) -> Self::CtorType {
let __param_0 = args;
- ctor::FnCtor::new(
- move |dest: crate::rust_std::pin::Pin<
- &mut crate::rust_std::mem::MaybeUninit<Self>,
- >| {
- unsafe {
- crate::detail::__rust_thunk___ZN23test_namespace_bindings1SC1EOS0_(
- crate::rust_std::pin::Pin::into_inner_unchecked(dest),
- __param_0,
- );
- }
+ ::ctor::FnCtor::new(
+ move |dest: ::std::pin::Pin<&mut ::std::mem::MaybeUninit<Self>>| unsafe {
+ crate::detail::__rust_thunk___ZN23test_namespace_bindings1SC1EOS0_(
+ ::std::pin::Pin::into_inner_unchecked(dest),
+ __param_0,
+ );
},
)
}
}
- impl<'b> ctor::CtorNew<(ctor::RvalueReference<'b, crate::test_namespace_bindings::S>,)> for S {
- type CtorType = impl ctor::Ctor<Output = Self>;
+ impl<'b> ::ctor::CtorNew<(::ctor::RvalueReference<'b, crate::test_namespace_bindings::S>,)> for S {
+ type CtorType = impl ::ctor::Ctor<Output = Self>;
#[inline(always)]
fn ctor_new(
- args: (ctor::RvalueReference<'b, crate::test_namespace_bindings::S>,),
+ args: (::ctor::RvalueReference<'b, crate::test_namespace_bindings::S>,),
) -> Self::CtorType {
let (arg,) = args;
- <Self as ctor::CtorNew<ctor::RvalueReference<'b,crate::test_namespace_bindings::S>>>::ctor_new(arg)
+ <Self as ::ctor::CtorNew<
+ ::ctor::RvalueReference<'b, crate::test_namespace_bindings::S>,
+ >>::ctor_new(arg)
}
}
impl<'b> ::ctor::Assign<&'b crate::test_namespace_bindings::S> for S {
#[inline(always)]
fn assign<'a>(
- self: crate::rust_std::pin::Pin<&'a mut Self>,
+ self: ::std::pin::Pin<&'a mut Self>,
__param_0: &'b crate::test_namespace_bindings::S,
) {
unsafe {
@@ -106,11 +98,11 @@
}
}
- impl<'b> ::ctor::Assign<ctor::RvalueReference<'b, crate::test_namespace_bindings::S>> for S {
+ impl<'b> ::ctor::Assign<::ctor::RvalueReference<'b, crate::test_namespace_bindings::S>> for S {
#[inline(always)]
fn assign<'a>(
- self: crate::rust_std::pin::Pin<&'a mut Self>,
- __param_0: ctor::RvalueReference<'b, crate::test_namespace_bindings::S>,
+ self: ::std::pin::Pin<&'a mut Self>,
+ __param_0: ::ctor::RvalueReference<'b, crate::test_namespace_bindings::S>,
) {
unsafe {
crate::detail::__rust_thunk___ZN23test_namespace_bindings1SaSEOS0_(self, __param_0);
@@ -153,10 +145,10 @@
}
pub mod inner_0 {
- #[ctor::recursively_pinned]
+ #[::ctor::recursively_pinned]
#[repr(C)]
pub struct S {
- __non_field_data: [crate::rust_std::mem::MaybeUninit<u8>; 1],
+ __non_field_data: [::std::mem::MaybeUninit<u8>; 1],
}
forward_declare::unsafe_define!(
forward_declare::symbol!("S"),
@@ -167,72 +159,67 @@
// Error while generating bindings for item 'S::S':
// Cannot generate bindings for overloaded function
- impl<'b> ctor::CtorNew<&'b crate::test_namespace_bindings_reopened::inner::S> for S {
- type CtorType = impl ctor::Ctor<Output = Self>;
+ impl<'b> ::ctor::CtorNew<&'b crate::test_namespace_bindings_reopened::inner::S> for S {
+ type CtorType = impl ::ctor::Ctor<Output = Self>;
#[inline(always)]
fn ctor_new(
args: &'b crate::test_namespace_bindings_reopened::inner::S,
) -> Self::CtorType {
let __param_0 = args;
- ctor::FnCtor::new(
- move |dest: crate::rust_std::pin::Pin<
- &mut crate::rust_std::mem::MaybeUninit<Self>,
- >| {
- unsafe {
- crate::detail::__rust_thunk___ZN32test_namespace_bindings_reopened5inner1SC1ERKS1_(crate::rust_std::pin::Pin::into_inner_unchecked(dest),__param_0);
- }
+ ::ctor::FnCtor::new(
+ move |dest: ::std::pin::Pin<&mut ::std::mem::MaybeUninit<Self>>| unsafe {
+ crate::detail::__rust_thunk___ZN32test_namespace_bindings_reopened5inner1SC1ERKS1_(::std::pin::Pin::into_inner_unchecked(dest),__param_0);
},
)
}
}
- impl<'b> ctor::CtorNew<(&'b crate::test_namespace_bindings_reopened::inner::S,)> for S {
- type CtorType = impl ctor::Ctor<Output = Self>;
+ impl<'b> ::ctor::CtorNew<(&'b crate::test_namespace_bindings_reopened::inner::S,)> for S {
+ type CtorType = impl ::ctor::Ctor<Output = Self>;
#[inline(always)]
fn ctor_new(
args: (&'b crate::test_namespace_bindings_reopened::inner::S,),
) -> Self::CtorType {
let (arg,) = args;
- <Self as ctor::CtorNew<&'b crate::test_namespace_bindings_reopened::inner::S>>::ctor_new(arg)
+ <Self as::ctor::CtorNew<&'b crate::test_namespace_bindings_reopened::inner::S>>::ctor_new(arg)
}
}
impl<'b>
- ctor::CtorNew<
- ctor::RvalueReference<'b, crate::test_namespace_bindings_reopened::inner::S>,
+ ::ctor::CtorNew<
+ ::ctor::RvalueReference<'b, crate::test_namespace_bindings_reopened::inner::S>,
> for S
{
- type CtorType = impl ctor::Ctor<Output = Self>;
+ type CtorType = impl ::ctor::Ctor<Output = Self>;
#[inline(always)]
fn ctor_new(
- args: ctor::RvalueReference<'b, crate::test_namespace_bindings_reopened::inner::S>,
+ args: ::ctor::RvalueReference<
+ 'b,
+ crate::test_namespace_bindings_reopened::inner::S,
+ >,
) -> Self::CtorType {
let __param_0 = args;
- ctor::FnCtor::new(
- move |dest: crate::rust_std::pin::Pin<
- &mut crate::rust_std::mem::MaybeUninit<Self>,
- >| {
- unsafe {
- crate::detail::__rust_thunk___ZN32test_namespace_bindings_reopened5inner1SC1EOS1_(crate::rust_std::pin::Pin::into_inner_unchecked(dest),__param_0);
- }
+ ::ctor::FnCtor::new(
+ move |dest: ::std::pin::Pin<&mut ::std::mem::MaybeUninit<Self>>| unsafe {
+ crate::detail::__rust_thunk___ZN32test_namespace_bindings_reopened5inner1SC1EOS1_(::std::pin::Pin::into_inner_unchecked(dest),__param_0);
},
)
}
}
impl<'b>
- ctor::CtorNew<(
- ctor::RvalueReference<'b, crate::test_namespace_bindings_reopened::inner::S>,
+ ::ctor::CtorNew<(
+ ::ctor::RvalueReference<'b, crate::test_namespace_bindings_reopened::inner::S>,
)> for S
{
- type CtorType = impl ctor::Ctor<Output = Self>;
+ type CtorType = impl ::ctor::Ctor<Output = Self>;
#[inline(always)]
fn ctor_new(
args: (
- ctor::RvalueReference<'b, crate::test_namespace_bindings_reopened::inner::S>,
+ ::ctor::RvalueReference<'b, crate::test_namespace_bindings_reopened::inner::S>,
),
) -> Self::CtorType {
let (arg,) = args;
- <Self as ctor::CtorNew<
- ctor::RvalueReference<'b, crate::test_namespace_bindings_reopened::inner::S>,
+ <Self as ::ctor::CtorNew<
+ ::ctor::RvalueReference<'b, crate::test_namespace_bindings_reopened::inner::S>,
>>::ctor_new(arg)
}
}
@@ -240,7 +227,7 @@
impl<'b> ::ctor::Assign<&'b crate::test_namespace_bindings_reopened::inner::S> for S {
#[inline(always)]
fn assign<'a>(
- self: crate::rust_std::pin::Pin<&'a mut Self>,
+ self: ::std::pin::Pin<&'a mut Self>,
__param_0: &'b crate::test_namespace_bindings_reopened::inner::S,
) {
unsafe {
@@ -251,13 +238,13 @@
impl<'b>
::ctor::Assign<
- ctor::RvalueReference<'b, crate::test_namespace_bindings_reopened::inner::S>,
+ ::ctor::RvalueReference<'b, crate::test_namespace_bindings_reopened::inner::S>,
> for S
{
#[inline(always)]
fn assign<'a>(
- self: crate::rust_std::pin::Pin<&'a mut Self>,
- __param_0: ctor::RvalueReference<
+ self: ::std::pin::Pin<&'a mut Self>,
+ __param_0: ::ctor::RvalueReference<
'b,
crate::test_namespace_bindings_reopened::inner::S,
>,
@@ -302,120 +289,109 @@
pub mod test_namespace_bindings_inline {
pub mod inner {
- #[ctor::recursively_pinned]
+ #[::ctor::recursively_pinned]
#[repr(C)]
pub struct StructInInlineNamespace {
- __non_field_data: [crate::rust_std::mem::MaybeUninit<u8>; 1],
+ __non_field_data: [::std::mem::MaybeUninit<u8>; 1],
}
forward_declare::unsafe_define!(
forward_declare::symbol!("StructInInlineNamespace"),
crate::test_namespace_bindings_inline::inner::StructInInlineNamespace
);
- impl ctor::CtorNew<()> for StructInInlineNamespace {
- type CtorType = impl ctor::Ctor<Output = Self>;
+ impl ::ctor::CtorNew<()> for StructInInlineNamespace {
+ type CtorType = impl ::ctor::Ctor<Output = Self>;
#[inline(always)]
fn ctor_new(args: ()) -> Self::CtorType {
let () = args;
- ctor::FnCtor::new(
- move |dest: crate::rust_std::pin::Pin<
- &mut crate::rust_std::mem::MaybeUninit<Self>,
- >| {
- unsafe {
- crate::detail::__rust_thunk___ZN30test_namespace_bindings_inline5inner23StructInInlineNamespaceC1Ev(crate::rust_std::pin::Pin::into_inner_unchecked(dest));
- }
+ ::ctor::FnCtor::new(
+ move |dest: ::std::pin::Pin<&mut ::std::mem::MaybeUninit<Self>>| unsafe {
+ crate::detail::__rust_thunk___ZN30test_namespace_bindings_inline5inner23StructInInlineNamespaceC1Ev(::std::pin::Pin::into_inner_unchecked(dest));
},
)
}
}
impl<'b>
- ctor::CtorNew<&'b crate::test_namespace_bindings_inline::inner::StructInInlineNamespace>
- for StructInInlineNamespace
+ ::ctor::CtorNew<
+ &'b crate::test_namespace_bindings_inline::inner::StructInInlineNamespace,
+ > for StructInInlineNamespace
{
- type CtorType = impl ctor::Ctor<Output = Self>;
+ type CtorType = impl ::ctor::Ctor<Output = Self>;
#[inline(always)]
fn ctor_new(
args: &'b crate::test_namespace_bindings_inline::inner::StructInInlineNamespace,
) -> Self::CtorType {
let __param_0 = args;
- ctor::FnCtor::new(
- move |dest: crate::rust_std::pin::Pin<
- &mut crate::rust_std::mem::MaybeUninit<Self>,
- >| {
- unsafe {
- crate::detail::__rust_thunk___ZN30test_namespace_bindings_inline5inner23StructInInlineNamespaceC1ERKS1_(crate::rust_std::pin::Pin::into_inner_unchecked(dest),__param_0);
- }
+ ::ctor::FnCtor::new(
+ move |dest: ::std::pin::Pin<&mut ::std::mem::MaybeUninit<Self>>| unsafe {
+ crate::detail::__rust_thunk___ZN30test_namespace_bindings_inline5inner23StructInInlineNamespaceC1ERKS1_(::std::pin::Pin::into_inner_unchecked(dest),__param_0);
},
)
}
}
impl<'b>
- ctor::CtorNew<(
+ ::ctor::CtorNew<(
&'b crate::test_namespace_bindings_inline::inner::StructInInlineNamespace,
)> for StructInInlineNamespace
{
- type CtorType = impl ctor::Ctor<Output = Self>;
+ type CtorType = impl ::ctor::Ctor<Output = Self>;
#[inline(always)]
fn ctor_new(
args: (&'b crate::test_namespace_bindings_inline::inner::StructInInlineNamespace,),
) -> Self::CtorType {
let (arg,) = args;
- <Self as ctor::CtorNew<
+ <Self as ::ctor::CtorNew<
&'b crate::test_namespace_bindings_inline::inner::StructInInlineNamespace,
>>::ctor_new(arg)
}
}
impl<'b>
- ctor::CtorNew<
- ctor::RvalueReference<
+ ::ctor::CtorNew<
+ ::ctor::RvalueReference<
'b,
crate::test_namespace_bindings_inline::inner::StructInInlineNamespace,
>,
> for StructInInlineNamespace
{
- type CtorType = impl ctor::Ctor<Output = Self>;
+ type CtorType = impl ::ctor::Ctor<Output = Self>;
#[inline(always)]
fn ctor_new(
- args: ctor::RvalueReference<
+ args: ::ctor::RvalueReference<
'b,
crate::test_namespace_bindings_inline::inner::StructInInlineNamespace,
>,
) -> Self::CtorType {
let __param_0 = args;
- ctor::FnCtor::new(
- move |dest: crate::rust_std::pin::Pin<
- &mut crate::rust_std::mem::MaybeUninit<Self>,
- >| {
- unsafe {
- crate::detail::__rust_thunk___ZN30test_namespace_bindings_inline5inner23StructInInlineNamespaceC1EOS1_(crate::rust_std::pin::Pin::into_inner_unchecked(dest),__param_0);
- }
+ ::ctor::FnCtor::new(
+ move |dest: ::std::pin::Pin<&mut ::std::mem::MaybeUninit<Self>>| unsafe {
+ crate::detail::__rust_thunk___ZN30test_namespace_bindings_inline5inner23StructInInlineNamespaceC1EOS1_(::std::pin::Pin::into_inner_unchecked(dest),__param_0);
},
)
}
}
impl<'b>
- ctor::CtorNew<(
- ctor::RvalueReference<
+ ::ctor::CtorNew<(
+ ::ctor::RvalueReference<
'b,
crate::test_namespace_bindings_inline::inner::StructInInlineNamespace,
>,
)> for StructInInlineNamespace
{
- type CtorType = impl ctor::Ctor<Output = Self>;
+ type CtorType = impl ::ctor::Ctor<Output = Self>;
#[inline(always)]
fn ctor_new(
args: (
- ctor::RvalueReference<
+ ::ctor::RvalueReference<
'b,
crate::test_namespace_bindings_inline::inner::StructInInlineNamespace,
>,
),
) -> Self::CtorType {
let (arg,) = args;
- <Self as ctor::CtorNew<
- ctor::RvalueReference<
+ <Self as ::ctor::CtorNew<
+ ::ctor::RvalueReference<
'b,
crate::test_namespace_bindings_inline::inner::StructInInlineNamespace,
>,
@@ -430,7 +406,7 @@
{
#[inline(always)]
fn assign<'a>(
- self: crate::rust_std::pin::Pin<&'a mut Self>,
+ self: ::std::pin::Pin<&'a mut Self>,
__param_0:&'b crate::test_namespace_bindings_inline::inner::StructInInlineNamespace,
) {
unsafe {
@@ -441,7 +417,7 @@
impl<'b>
::ctor::Assign<
- ctor::RvalueReference<
+ ::ctor::RvalueReference<
'b,
crate::test_namespace_bindings_inline::inner::StructInInlineNamespace,
>,
@@ -449,8 +425,8 @@
{
#[inline(always)]
fn assign<'a>(
- self: crate::rust_std::pin::Pin<&'a mut Self>,
- __param_0: ctor::RvalueReference<
+ self: ::std::pin::Pin<&'a mut Self>,
+ __param_0: ::ctor::RvalueReference<
'b,
crate::test_namespace_bindings_inline::inner::StructInInlineNamespace,
>,
@@ -492,21 +468,21 @@
use super::*;
extern "C" {
pub(crate) fn __rust_thunk___ZN23test_namespace_bindings1SC1ERKS0_<'a, 'b>(
- __this: &'a mut crate::rust_std::mem::MaybeUninit<crate::test_namespace_bindings::S>,
+ __this: &'a mut ::std::mem::MaybeUninit<crate::test_namespace_bindings::S>,
__param_0: &'b crate::test_namespace_bindings::S,
);
pub(crate) fn __rust_thunk___ZN23test_namespace_bindings1SC1EOS0_<'a, 'b>(
- __this: &'a mut crate::rust_std::mem::MaybeUninit<crate::test_namespace_bindings::S>,
- __param_0: ctor::RvalueReference<'b, crate::test_namespace_bindings::S>,
+ __this: &'a mut ::std::mem::MaybeUninit<crate::test_namespace_bindings::S>,
+ __param_0: ::ctor::RvalueReference<'b, crate::test_namespace_bindings::S>,
);
pub(crate) fn __rust_thunk___ZN23test_namespace_bindings1SaSERKS0_<'a, 'b>(
- __this: crate::rust_std::pin::Pin<&'a mut crate::test_namespace_bindings::S>,
+ __this: ::std::pin::Pin<&'a mut crate::test_namespace_bindings::S>,
__param_0: &'b crate::test_namespace_bindings::S,
- ) -> crate::rust_std::pin::Pin<&'a mut crate::test_namespace_bindings::S>;
+ ) -> ::std::pin::Pin<&'a mut crate::test_namespace_bindings::S>;
pub(crate) fn __rust_thunk___ZN23test_namespace_bindings1SaSEOS0_<'a, 'b>(
- __this: crate::rust_std::pin::Pin<&'a mut crate::test_namespace_bindings::S>,
- __param_0: ctor::RvalueReference<'b, crate::test_namespace_bindings::S>,
- ) -> crate::rust_std::pin::Pin<&'a mut crate::test_namespace_bindings::S>;
+ __this: ::std::pin::Pin<&'a mut crate::test_namespace_bindings::S>,
+ __param_0: ::ctor::RvalueReference<'b, crate::test_namespace_bindings::S>,
+ ) -> ::std::pin::Pin<&'a mut crate::test_namespace_bindings::S>;
#[link_name = "_ZN23test_namespace_bindings1fENS_1SE"]
pub(crate) fn __rust_thunk___ZN23test_namespace_bindings1fENS_1SE(
s: crate::test_namespace_bindings::S,
@@ -521,29 +497,31 @@
#[link_name = "_ZN32test_namespace_bindings_reopened1xEv"]
pub(crate) fn __rust_thunk___ZN32test_namespace_bindings_reopened1xEv();
pub(crate) fn __rust_thunk___ZN32test_namespace_bindings_reopened5inner1SC1ERKS1_<'a, 'b>(
- __this: &'a mut crate::rust_std::mem::MaybeUninit<
+ __this: &'a mut ::std::mem::MaybeUninit<
crate::test_namespace_bindings_reopened::inner::S,
>,
__param_0: &'b crate::test_namespace_bindings_reopened::inner::S,
);
pub(crate) fn __rust_thunk___ZN32test_namespace_bindings_reopened5inner1SC1EOS1_<'a, 'b>(
- __this: &'a mut crate::rust_std::mem::MaybeUninit<
+ __this: &'a mut ::std::mem::MaybeUninit<
crate::test_namespace_bindings_reopened::inner::S,
>,
- __param_0: ctor::RvalueReference<'b, crate::test_namespace_bindings_reopened::inner::S>,
+ __param_0: ::ctor::RvalueReference<
+ 'b,
+ crate::test_namespace_bindings_reopened::inner::S,
+ >,
);
pub(crate) fn __rust_thunk___ZN32test_namespace_bindings_reopened5inner1SaSERKS1_<'a, 'b>(
- __this: crate::rust_std::pin::Pin<
- &'a mut crate::test_namespace_bindings_reopened::inner::S,
- >,
+ __this: ::std::pin::Pin<&'a mut crate::test_namespace_bindings_reopened::inner::S>,
__param_0: &'b crate::test_namespace_bindings_reopened::inner::S,
- ) -> crate::rust_std::pin::Pin<&'a mut crate::test_namespace_bindings_reopened::inner::S>;
+ ) -> ::std::pin::Pin<&'a mut crate::test_namespace_bindings_reopened::inner::S>;
pub(crate) fn __rust_thunk___ZN32test_namespace_bindings_reopened5inner1SaSEOS1_<'a, 'b>(
- __this: crate::rust_std::pin::Pin<
- &'a mut crate::test_namespace_bindings_reopened::inner::S,
+ __this: ::std::pin::Pin<&'a mut crate::test_namespace_bindings_reopened::inner::S>,
+ __param_0: ::ctor::RvalueReference<
+ 'b,
+ crate::test_namespace_bindings_reopened::inner::S,
>,
- __param_0: ctor::RvalueReference<'b, crate::test_namespace_bindings_reopened::inner::S>,
- ) -> crate::rust_std::pin::Pin<&'a mut crate::test_namespace_bindings_reopened::inner::S>;
+ ) -> ::std::pin::Pin<&'a mut crate::test_namespace_bindings_reopened::inner::S>;
#[link_name = "_ZN32test_namespace_bindings_reopened1yEv"]
pub(crate) fn __rust_thunk___ZN32test_namespace_bindings_reopened1yEv();
#[link_name = "_ZN32test_namespace_bindings_reopened5inner1zENS0_1SE"]
@@ -553,7 +531,7 @@
pub(crate) fn __rust_thunk___ZN30test_namespace_bindings_inline5inner23StructInInlineNamespaceC1Ev<
'a,
>(
- __this: &'a mut crate::rust_std::mem::MaybeUninit<
+ __this: &'a mut ::std::mem::MaybeUninit<
crate::test_namespace_bindings_inline::inner::StructInInlineNamespace,
>,
);
@@ -561,7 +539,7 @@
'a,
'b,
>(
- __this: &'a mut crate::rust_std::mem::MaybeUninit<
+ __this: &'a mut ::std::mem::MaybeUninit<
crate::test_namespace_bindings_inline::inner::StructInInlineNamespace,
>,
__param_0: &'b crate::test_namespace_bindings_inline::inner::StructInInlineNamespace,
@@ -570,10 +548,10 @@
'a,
'b,
>(
- __this: &'a mut crate::rust_std::mem::MaybeUninit<
+ __this: &'a mut ::std::mem::MaybeUninit<
crate::test_namespace_bindings_inline::inner::StructInInlineNamespace,
>,
- __param_0: ctor::RvalueReference<
+ __param_0: ::ctor::RvalueReference<
'b,
crate::test_namespace_bindings_inline::inner::StructInInlineNamespace,
>,
@@ -582,25 +560,25 @@
'a,
'b,
>(
- __this: crate::rust_std::pin::Pin<
+ __this: ::std::pin::Pin<
&'a mut crate::test_namespace_bindings_inline::inner::StructInInlineNamespace,
>,
__param_0: &'b crate::test_namespace_bindings_inline::inner::StructInInlineNamespace,
- ) -> crate::rust_std::pin::Pin<
+ ) -> ::std::pin::Pin<
&'a mut crate::test_namespace_bindings_inline::inner::StructInInlineNamespace,
>;
pub(crate) fn __rust_thunk___ZN30test_namespace_bindings_inline5inner23StructInInlineNamespaceaSEOS1_<
'a,
'b,
>(
- __this: crate::rust_std::pin::Pin<
+ __this: ::std::pin::Pin<
&'a mut crate::test_namespace_bindings_inline::inner::StructInInlineNamespace,
>,
- __param_0: ctor::RvalueReference<
+ __param_0: ::ctor::RvalueReference<
'b,
crate::test_namespace_bindings_inline::inner::StructInInlineNamespace,
>,
- ) -> crate::rust_std::pin::Pin<
+ ) -> ::std::pin::Pin<
&'a mut crate::test_namespace_bindings_inline::inner::StructInInlineNamespace,
>;
#[link_name = "_Z43useStructInInlineNamespaceWithFullQualifierN30test_namespace_bindings_inline5inner23StructInInlineNamespaceE"]
@@ -614,10 +592,10 @@
}
}
-const _: () = assert!(rust_std::mem::size_of::<Option<&i32>>() == rust_std::mem::size_of::<&i32>());
+const _: () = assert!(::std::mem::size_of::<Option<&i32>>() == ::std::mem::size_of::<&i32>());
-const _: () = assert!(rust_std::mem::size_of::<crate::test_namespace_bindings::S>() == 4);
-const _: () = assert!(rust_std::mem::align_of::<crate::test_namespace_bindings::S>() == 4);
+const _: () = assert!(::std::mem::size_of::<crate::test_namespace_bindings::S>() == 4);
+const _: () = assert!(::std::mem::align_of::<crate::test_namespace_bindings::S>() == 4);
const _: () = {
static_assertions::assert_not_impl_any!(crate::test_namespace_bindings::S: Copy);
};
@@ -628,9 +606,9 @@
assert!(memoffset_unstable_const::offset_of!(crate::test_namespace_bindings::S, i) == 0);
const _: () =
- assert!(rust_std::mem::size_of::<crate::test_namespace_bindings_reopened::inner::S>() == 1);
+ assert!(::std::mem::size_of::<crate::test_namespace_bindings_reopened::inner::S>() == 1);
const _: () =
- assert!(rust_std::mem::align_of::<crate::test_namespace_bindings_reopened::inner::S>() == 1);
+ assert!(::std::mem::align_of::<crate::test_namespace_bindings_reopened::inner::S>() == 1);
const _: () = {
static_assertions::assert_not_impl_any!(
crate::test_namespace_bindings_reopened::inner::S: Copy
@@ -643,12 +621,12 @@
};
const _: () = assert!(
- rust_std::mem::size_of::<crate::test_namespace_bindings_inline::inner::StructInInlineNamespace>(
- ) == 1
+ ::std::mem::size_of::<crate::test_namespace_bindings_inline::inner::StructInInlineNamespace>()
+ == 1
);
const _: () = assert!(
- rust_std::mem::align_of::<crate::test_namespace_bindings_inline::inner::StructInInlineNamespace>(
- ) == 1
+ ::std::mem::align_of::<crate::test_namespace_bindings_inline::inner::StructInInlineNamespace>()
+ == 1
);
const _: () = {
static_assertions::assert_not_impl_any!(