Turns out this was used by the repl

This commit is contained in:
Richard Feldman 2022-11-22 11:55:46 -05:00
parent 7356809fc3
commit f60ed0059a
No known key found for this signature in database
GPG key ID: F1F21AA5B1D9E43B

View file

@ -3113,9 +3113,7 @@ fn finish_specialization<'a>(
None => unreachable!(),
}
}
Valid(To::NewPackage(p_or_p)) => {
panic!("This usage of `to` (`to {}`) is deprecated. Always use a package shorthand name with `to`!", p_or_p.to_str());
}
Valid(To::NewPackage(p_or_p)) => PathBuf::from(p_or_p.as_str()),
other => {
let buf = to_missing_platform_report(state.root_id, other);
return Err(LoadingProblem::FormattedReport(buf));