-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
internal: sync from downstream #16317
Conversation
@bors r+ |
💔 Test failed - checks-actions |
@bors r- |
.github/workflows/ci.yaml
Outdated
@@ -48,6 +48,7 @@ jobs: | |||
CC: deny_c | |||
RUST_CHANNEL: "${{ needs.changes.outputs.proc_macros == 'true' && 'nightly' || 'stable' }}" | |||
USE_SYSROOT_ABI: "${{ needs.changes.outputs.proc_macros == 'true' && '--features sysroot-abi' || '' }}" | |||
RUSTUP_RUSTC_DEV: "${{ needs.changes.outputs.proc_macros == 'true' && 'rustc-dev' || '' }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We want this, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No we shouldn't need this 🤔 our CI should not rely on the rustc crates
#![warn(rust_2018_idioms, unused_lifetimes)] | ||
#![allow(unreachable_pub, internal_features)] | ||
|
||
extern crate proc_macro; | ||
extern crate rustc_driver as _; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is missing a cfg #[cfg(feature = "in-rust-tree")]
crates/proc-macro-srv/src/lib.rs
Outdated
@@ -11,11 +11,12 @@ | |||
//! rustc rather than `unstable`. (Although in general ABI compatibility is still an issue)… | |||
|
|||
#![cfg(any(feature = "sysroot-abi", rust_analyzer))] | |||
#![feature(proc_macro_internals, proc_macro_diagnostic, proc_macro_span)] | |||
#![feature(proc_macro_internals, proc_macro_diagnostic, proc_macro_span, rustc_private)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This feature needs to be gated #[cfg_attr(feature = "in-rust-tree", feature(rustc_private)]
312cf43
to
0ae7373
Compare
@@ -11,11 +11,14 @@ | |||
//! rustc rather than `unstable`. (Although in general ABI compatibility is still an issue)… | |||
|
|||
#![cfg(any(feature = "sysroot-abi", rust_analyzer))] | |||
#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Like this, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
Thanks for doing the syncs as always, especially since they seem to have been more trouble the past weeks 😅 |
CI failure is due to a new lint on nightly fwiw, since this touches the proc-macro server source CI runs the nightly toolchain. You can probably just pick the changes from this file here https://github.com/rust-lang/rust-analyzer/pull/16309/files#diff-0449230bb140c3330091dc8be2f8b5d227e6875704429de5116f428fcbe7b532 |
🤨 I can't repro that, and nothing should be causing that here, might be spurious let's see |
💔 Test failed - checks-actions |
Hm, feel free to just cfg that test out for now (since ignoring is rejected by CI as well), I'll look into what's going on there later. Probably related to the dylib linking changes in the sysroot, fairly sure the error there is incorrect and its something else. |
I can reproduce the failure using |
@@ -835,7 +835,7 @@ fn main() { | |||
#[cfg(any(feature = "sysroot-abi", rust_analyzer))] | |||
fn resolve_proc_macro() { | |||
use expect_test::expect; | |||
if skip_slow_tests() { | |||
if skip_slow_tests() || true { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added an early exit here.
Ugh right, I forgot to set the slow test var, repros for me as well then, that's good. Will take a look at that in a bit. |
Months, you mean 😄. Anyway, it's the least I can do.
Yeah, reverting that fixes the failure :-(. |
☀️ Test successful - checks-actions |
Ye okay I know why, now that we no longer save the document in the vfs we can't filter out |
CC #14730? |
Yes, that pretty much (and another smaller issue). |
No description provided.