Tags: u5surf/rust-analyzer
Tags
Merge rust-lang#5914 5914: Replace custom `xtask::not_bash::fs2` setup with fs_err crate r=matklad a=Veetaha Co-authored-by: Veetaha <veetaha2@gmail.com>
Merge rust-lang#4776 4776: Do a weekly minor publish to crates.io r=matklad a=pksunkara This is the same system I set up on Chalk repo. Every week it creates a new minor version, pushes it to github and then deploys it to crates.io. Co-authored-by: Pavan Kumar Sunkara <pavan.sss1991@gmail.com>
Merge rust-lang#5766 5766: Hacky support for fn-like proc macros r=matklad a=jonas-schievink It turns out that this is all that's needed to get something like this working: ```rust #[proc_macro] pub fn function_like_macro(_args: TokenStream) -> TokenStream { TokenStream::from_str("fn fn_success() {}").unwrap() } ``` ```rust function_like_macro!(); fn f() { fn_success(); } ``` The drawback is that it also makes this work, because there is no distinction between different proc macro kinds in the rest of r-a: ```rust #[derive(function_like_macro)] struct S {} fn f() { fn_success(); } ``` Another issue is that it seems to panic, and then panic, when using this on the rustc code base, due to some issue in the inscrutable proc macro bridge code. Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
Merge rust-lang#5698 5698: Display the value of a const on the hover r=jonas-schievink a=JmPotato Signed-off-by: JmPotato <ghzpotato@gmail.com> Close rust-lang#4051 To display the value of a const, I modified the implementation of `ShortLabel` for `ast::Const`. Co-authored-by: JmPotato <ghzpotato@gmail.com>
Merge rust-lang#5659 5659: Revert LineIndex optimizations to fix rust-lang#5656 r=matklad a=lazear This PR reverts the changes from rust-lang#5532, which was causing issues as described in rust-lang#5656 Co-authored-by: Michael Lazear <lazear@scripps.edu>
Merge rust-lang#5539 5539: SSR: Fix path resolution of locals in current scope r=matklad a=davidlattimore Co-authored-by: David Lattimore <dml@google.com>
Merge rust-lang#5438 5438: Fix a typo in completion docs r=kjeremy a=killercup Co-authored-by: Pascal Hertleif <killercup@gmail.com>
Merge rust-lang#5331 5331: Fix rust-lang#4966 r=flodiebold a=flodiebold We add a level of binders when converting our function pointer to Chalk's; we need to remove it again on the way back. Fixes rust-lang#4966. Co-authored-by: Florian Diebold <florian.diebold@freiheit.com>
Merge rust-lang#5234 5234: Fix: allow for binaries from $PATH to pass validity check r=matklad a=Veetaha Tackles rust-lang#5229 (comment) cc @matklad @lnicola Apparently `fs.existsSync()` works only with real paths and not with `$PATH` env var Co-authored-by: Veetaha <veetaha2@gmail.com>