Switch query descriptions to just String

In practice we never used the borrowed variant anyway.
This commit is contained in:
Mark Rousskov 2021-02-08 17:20:41 -05:00
parent 921ec4b3fc
commit f564d7abba
5 changed files with 5 additions and 8 deletions

View file

@ -13,7 +13,6 @@ use rustc_hir::def_id::{CrateNum, DefId, LocalDefId};
use rustc_query_system::query::QueryDescription;
use rustc_span::symbol::Symbol;
use std::borrow::Cow;
fn describe_as_module(def_id: LocalDefId, tcx: TyCtxt<'_>) -> String {
if def_id.is_top_level_module() {