File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -309,7 +309,7 @@ impl UnresolvedPackageGroup {
309309 let mut map = ast:: SourceMap :: default ( ) ;
310310 map. push_str ( path, contents) ;
311311 // TODO: avoid clone by changing `SourceMap::parse` to return the map
312- // back on error, e.g. `Err((SourceMap, WitError ))`.
312+ // back on error, e.g. `Err((SourceMap, ParseErrors ))`.
313313 let map_for_err = map. clone ( ) ;
314314 map. parse ( )
315315 . map_err ( |e| anyhow:: anyhow!( "{}" , e. highlight( & map_for_err) ) )
@@ -386,7 +386,7 @@ impl UnresolvedPackageGroup {
386386 map. push_file ( & path) ?;
387387 }
388388 // TODO: avoid clone by changing `SourceMap::parse` to return the map
389- // back on error, e.g. `Err((SourceMap, WitError ))`.
389+ // back on error, e.g. `Err((SourceMap, ParseErrors ))`.
390390 let map_for_err = map. clone ( ) ;
391391 map. parse ( )
392392 . map_err ( |e| anyhow:: anyhow!( "{}" , e. highlight( & map_for_err) ) )
Original file line number Diff line number Diff line change @@ -401,7 +401,7 @@ impl Resolve {
401401 }
402402
403403 /// Appends a main [`UnresolvedPackageGroup`] and its dependencies to this
404- /// [`Resolve`] in a single call, returning a structured [`WitError `] on
404+ /// [`Resolve`] in a single call, returning a structured [`ResolveErrors `] on
405405 /// failure.
406406 ///
407407 /// This is the preferred alternative to calling [`Resolve::push_group`]
@@ -410,7 +410,7 @@ impl Resolve {
410410 /// or [`UnresolvedPackageGroup::parse_str`]). Wit-parser sorts them into
411411 /// the correct topological order internally and detects dependency cycles.
412412 ///
413- /// On error, spans in the returned [`WitError `] are absolute within
413+ /// On error, spans in the returned [`ResolveErrors `] are absolute within
414414 /// `self.source_map` and can be resolved with
415415 /// [`SourceMap::get_location`].
416416 ///
You can’t perform that action at this time.
0 commit comments