Skip to content

Commit 818b50e

Browse files
committed
also nora's fault
1 parent 8c95727 commit 818b50e

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

library/core/src/pin.rs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1936,10 +1936,8 @@ unsafe impl<T: ?Sized> PinCoerceUnsized for *mut T {}
19361936
#[stable(feature = "pin_macro", since = "1.68.0")]
19371937
#[rustc_macro_transparency = "semitransparent"]
19381938
#[allow_internal_unstable(super_let)]
1939-
pub macro pin($value:expr $(,)?) {
1940-
{
1941-
super let mut pinned = $value;
1942-
// SAFETY: The value is pinned: it is the local above which cannot be named outside this macro.
1943-
unsafe { $crate::pin::Pin::new_unchecked(&mut pinned) }
1944-
}
1945-
}
1939+
pub macro pin($value:expr $(,)?) {{
1940+
let mut pinned = $value;
1941+
// SAFETY: The value is pinned: it is the local above which cannot be named outside this macro.
1942+
unsafe { $crate::pin::Pin::new_unchecked(&mut pinned) }
1943+
}}

src/bootstrap/src/core/build_steps/llvm.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1230,8 +1230,7 @@ fn supported_sanitizers(
12301230
.iter()
12311231
.map(move |c| SanitizerRuntime {
12321232
cmake_target: format!("clang_rt.{c}_{os}_dynamic"),
1233-
path: out_dir
1234-
.join(format!("build/lib/darwin/libclang_rt.{c}_{os}_dynamic.dylib")),
1233+
path: out_dir.join(format!("build/lib/darwin/libclang_rt.{c}_{os}_dynamic.dylib")),
12351234
name: format!("librustc-{channel}_rt.{c}.dylib"),
12361235
})
12371236
.collect()

0 commit comments

Comments
 (0)