Skip to content

Commit

Permalink
third-party/rust: add fixup for linkme-impl
Browse files Browse the repository at this point in the history
Summary:
X-link: facebook/buck2#809

Build script is here: https://github.com/dtolnay/linkme/blob/master/impl/build.rs

It adds `no_unsafe_attributes` and `no_unsafe_extern_blocks` if `rustc<1.82`.

We currently use 1.81 nightly.

Without these buck2 build fails with: {P1678493456}
https://github.com/facebook/buck2/actions/runs/11814773718/job/32914516948

Reviewed By: zertosh

Differential Revision: D65880700

fbshipit-source-id: 9f3ce7ad052046b9e7062a70da4ffdcbcb71b88a
  • Loading branch information
KapJI authored and facebook-github-bot committed Nov 13, 2024
1 parent 89b0e8c commit dc8551f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions third-party/rust/fixups/linkme-impl/fixups.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under both the MIT license found in the
# LICENSE-MIT file in the root directory of this source tree and the Apache
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.

[[buildscript]]
[buildscript.rustc_flags]

0 comments on commit dc8551f

Please sign in to comment.