]> git.lizzy.rs Git - rust.git/commitdiff
Merge #11334
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>
Sun, 23 Jan 2022 16:43:22 +0000 (16:43 +0000)
committerGitHub <noreply@github.com>
Sun, 23 Jan 2022 16:43:22 +0000 (16:43 +0000)
11334: fix: don't panic in semantics due to `cfg_attr` disrupting offsets r=Veykril a=Veykril

Reduces the panic in https://github.com/rust-analyzer/rust-analyzer/issues/11298 to an early return, that means we won't resolve these cases again for now, but this is better than constantly panicking in highlighting and hovering.
bors r+

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>

Trivial merge