specialization_graph_of
's errored
field is used in the only call site, and used to immediately throw away the rest of the value. Let's use Result
to statically signal that this is happening
This commit is contained in:
parent
3a6bf351a3
commit
5461836281
5 changed files with 49 additions and 46 deletions
|
@ -1294,8 +1294,7 @@ rustc_queries! {
|
|||
desc { |tcx| "finding trait impls of `{}`", tcx.def_path_str(trait_id) }
|
||||
}
|
||||
|
||||
query specialization_graph_of(trait_id: DefId) -> &'tcx specialization_graph::Graph {
|
||||
arena_cache
|
||||
query specialization_graph_of(trait_id: DefId) -> Result<&'tcx specialization_graph::Graph, ErrorGuaranteed> {
|
||||
desc { |tcx| "building specialization graph of trait `{}`", tcx.def_path_str(trait_id) }
|
||||
cache_on_disk_if { true }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue