-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Subtree update of rust-analyzer
#119289
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
Subtree update of rust-analyzer
#119289
Conversation
…lstrieb Add support for `--env` on `tracked_env::var` Follow-up of rust-lang#118368. Part of Part of rust-lang#80792. It adds support of the `--env` option for proc-macros through `tracked_env::var`. r? `@Nilstrieb`
internal: sync from downstream
…cola internal: Move proc-macro knowledge out of base-db into hir-expand It does not make much sense to me to have that live in base-db, additionally, it kind of conflicts with moving span things out into a separate crate
internal: Split out a span crate Allows getting rid of some of the dependency injection generics that my rewrite introduced
minor: Don't auto-publish sourcegen Closes rust-lang#16029
internal: Don't fail changelog generation on missing PRs One year later 😅.
internal: Move out `WithFixture` into dev-dep only crate
fix: resolve alias before resolve variant Closes rust-lang#15943 (again)
…barsky internal: Add minimal support for the 2024 edition CC rust-lang#16146
Fixes rust-lang#16110. The way rust desugars doc comments when expanding macros is rendering it as raw strings delimited with hashes. Rust-analyzer wasn't aware of this, so the desugared doc comments wouldn't match correctly when on the LHS of macro declarations. This PR fixes this by porting the code used by rustc: https://github.com/rust-lang/rust/blob/4cfdbd328b7171b2328d11b950b1af0978d6b1ef/compiler/rustc_ast/src/tokenstream.rs#L6837
After markdown syntax removal the length of the text is roughly the same so we can reserve memory beforehand
minor: use a single push_str instead of 2 push
…-to-raw-string, r=Veykril fix(mbe): desugar doc correctly for mbe Fixes rust-lang#16110. The way rust desugars doc comments when expanding macros is rendering it as raw strings delimited with hashes. Rust-analyzer wasn't aware of this, so the desugared doc comments wouldn't match correctly when on the LHS of macro declarations. This PR fixes this by porting the code used by rustc: https://github.com/rust-lang/rust/blob/59096cdad0e527ce4d254b55aca58539f726d3d6/compiler/rustc_ast/src/tokenstream.rs#L662-L671
This comment has been minimized.
This comment has been minimized.
1db5111
to
9ebe839
Compare
This comment has been minimized.
This comment has been minimized.
I honestly have no idea 😩. |
Oh no, this breaks now because the proc-macro-impl test crate has a feature flag ... can we just add a |
@@ -1,6 +1,10 @@ | |||
//! Exports a few trivial procedural macros for testing. | |||
|
|||
#![cfg(feature = "sysroot-abi")] |
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.
#![cfg(feature = "sysroot-abi")] | |
#![allow(unexpected_cfgs)] | |
#![cfg(feature = "sysroot-abi")] |
That is this might just work?
@bors r+ |
🌲 The tree is currently closed for pull requests below priority 100. This pull request will be tested once the tree is reopened. |
This comment has been minimized.
This comment has been minimized.
@bors r- |
Guess we also need to add proc_macro_def_site here now (then it really should work though 😅)
|
@bors r+ |
🌲 The tree is currently closed for pull requests below priority 100. This pull request will be tested once the tree is reopened. |
r? ghost