Do not default to 'static for trait object lifetimes

We lack trait object default lifetime elision, so `'static` can be wrong at times, confusing the user
This commit is contained in:
Lukas Wirth 2025-06-18 14:28:04 +02:00
parent df50136c23
commit 2b05bd7d7e
12 changed files with 70 additions and 70 deletions

View file

@ -1588,7 +1588,7 @@ fn add_target_crate_root(
None => Err("proc-macro crate build data is missing dylib path".to_owned()),
}
}
None => Err("proc-macro crate is missing its build data".to_owned()),
None => Err("build scripts have not been built".to_owned()),
};
proc_macros.insert(crate_id, proc_macro);
}