mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-19 11:35:16 +00:00
Use dyn cache for Semantics macro resolution
This commit is contained in:
parent
7d40763c88
commit
9349045e09
11 changed files with 44 additions and 41 deletions
|
|
@ -657,10 +657,12 @@ const fn const_fn<const CONST_PARAM: ()>(const {}: const fn()) where (): const C
|
|||
&raw const ();
|
||||
const
|
||||
);
|
||||
().assoc_const_method();
|
||||
}
|
||||
trait ConstTrait {
|
||||
const ASSOC_CONST: () = ();
|
||||
const fn assoc_const_fn() {}
|
||||
const fn assoc_const_method(self) {}
|
||||
}
|
||||
impl const ConstTrait for () {
|
||||
const ASSOC_CONST: () = ();
|
||||
|
|
@ -1070,16 +1072,15 @@ fn test_block_mod_items() {
|
|||
macro_rules! foo {
|
||||
($foo:ident) => {
|
||||
mod y {
|
||||
struct $foo;
|
||||
pub struct $foo;
|
||||
}
|
||||
};
|
||||
}
|
||||
fn main() {
|
||||
foo!(Foo);
|
||||
mod module {
|
||||
// FIXME: IDE layer has this unresolved
|
||||
foo!(Bar);
|
||||
fn func() {
|
||||
fn func(_: y::Bar) {
|
||||
mod inner {
|
||||
struct Innerest<const C: usize> { field: [(); {C}] }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue