Skip to content

Commit

Permalink
Auto merge of #18267 - lnicola:sync-from-rust, r=lnicola
Browse files Browse the repository at this point in the history
minor: Sync from downstream
  • Loading branch information
bors committed Oct 8, 2024
2 parents 9806060 + b9e58a2 commit efaf8bd
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions crates/ide-assists/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,8 @@ expect-test = "1.4.0"
test-utils.workspace = true
test-fixture.workspace = true

[features]
in-rust-tree = []

[lints]
workspace = true
2 changes: 2 additions & 0 deletions crates/ide-assists/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@
//! See also this post:
//! <https://rust-analyzer.github.io/blog/2020/09/28/how-to-make-a-light-bulb.html>

#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))]

mod assist_config;
mod assist_context;
#[cfg(test)]
Expand Down
2 changes: 2 additions & 0 deletions crates/mbe/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
//! The tests for this functionality live in another crate:
//! `hir_def::macro_expansion_tests::mbe`.

#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))]

#[cfg(not(feature = "in-rust-tree"))]
extern crate ra_ap_rustc_lexer as rustc_lexer;
#[cfg(feature = "in-rust-tree")]
Expand Down
2 changes: 1 addition & 1 deletion rust-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1b5aa96d6016bafe50e071b45d4d2e3c90fd766f
cf24c73141a77db730f4b7fda69dcd7e8b113b51

0 comments on commit efaf8bd

Please sign in to comment.