mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
a number of code simplifications
This commit is contained in:
parent
3987c835f2
commit
ac3844a0bb
13 changed files with 99 additions and 124 deletions
|
@ -34,10 +34,7 @@ pub(crate) fn unresolved_proc_macro(
|
|||
let message = format!(
|
||||
"{message}: {}",
|
||||
if config_enabled {
|
||||
match def_map.proc_macro_loading_error() {
|
||||
Some(e) => e,
|
||||
None => "proc macro not found in the built dylib",
|
||||
}
|
||||
def_map.proc_macro_loading_error().unwrap_or("proc macro not found in the built dylib")
|
||||
} else {
|
||||
match d.kind {
|
||||
hir::MacroKind::Attr if proc_macros_enabled => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue