Function doc_links_rebound
pub fn doc_links_rebound(
pre: (&ProjectIndex, &HashMap<String, Vec<String>>, &HashMap<PathBuf, Vec<LocalBinding>>),
post: (&ProjectIndex, &HashMap<String, Vec<String>>, &HashMap<PathBuf, Vec<LocalBinding>>),
pre_texts: &HashMap<PathBuf, String>,
post_texts: &HashMap<PathBuf, String>,
plan: &RenamePlan,
) -> Result<(), String>Expand description
#2456 (decision C): after a rename, every doc link must resolve to the same
definition it did before — modulo the rename itself. post_* describe the
re-analysed project with the edits applied, post_texts the edited sources.
A link that now resolves elsewhere, stops resolving, or starts resolving is
a silent re-binding, reported like any other.