You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But Semantics::resolve_variant is public. rust-analyzer seems to think this line is actually calling SemanticsImpl::resolve_variant, which indeed is private. But it's accessible (or rather, would be if it were public) becase Semantics implements Deref<Target=SemanticsImpl> so that's confusing rust-analyzer I guess.
Uh oh!
There was an error while loading. Please reload this page.
I'm using rust-analyzer while trying to make changes to rust-analyzer, and getting an error reported here:
rust-analyzer/crates/ide-diagnostics/src/handlers/no_such_field.rs
Line 60 in cd413d0
But
Semantics::resolve_variant
is public. rust-analyzer seems to think this line is actually callingSemanticsImpl::resolve_variant
, which indeed is private. But it's accessible (or rather, would be if it were public) becase Semantics implementsDeref<Target=SemanticsImpl>
so that's confusing rust-analyzer I guess.Tried making a minimal repro but I'm not getting the error here so maybe it only happens when you're accessing methods across a crate boundary or something. https://play.rust-lang.org/?version=stable&mode=debug&edition=2024&gist=a90984eb9d3bbabc1e0c570422e77388
Version 0.4.2477, Server Version 0.4.2477-standalone
The text was updated successfully, but these errors were encountered: