@@ -106,29 +106,29 @@ fn snapshot_execution_graph(
106106 execution_node_snapshots
107107}
108108
109- fn stablize_absolute_path ( path : & mut Arc < AbsolutePath > , base_dir : & AbsolutePath ) {
109+ fn stabilize_absolute_path ( path : & mut Arc < AbsolutePath > , base_dir : & AbsolutePath ) {
110110 let relative_path = path. strip_prefix ( base_dir) . unwrap ( ) . unwrap ( ) ;
111111 let new_base_dir =
112112 AbsolutePath :: new ( if cfg ! ( windows) { "C:\\ workspace" } else { "/workspace" } ) . unwrap ( ) ;
113113 * path = new_base_dir. join ( relative_path) . into ( ) ;
114114}
115115
116- fn stablize_specifier_lookup_error (
116+ fn stabilize_specifier_lookup_error (
117117 err : & mut SpecifierLookupError < PackageUnknownError > ,
118118 base_dir : & AbsolutePath ,
119119) {
120120 match err {
121121 SpecifierLookupError :: AmbiguousPackageName { package_paths, .. } => {
122122 for path in package_paths. iter_mut ( ) {
123- stablize_absolute_path ( path, base_dir) ;
123+ stabilize_absolute_path ( path, base_dir) ;
124124 }
125125 }
126126 SpecifierLookupError :: PackageNameNotFound { .. } => { }
127127 SpecifierLookupError :: TaskNameNotFound { package_index, .. } => {
128128 * package_index = Default :: default ( )
129129 }
130130 SpecifierLookupError :: PackageUnknown { unspecifier_package_error, .. } => {
131- stablize_absolute_path ( & mut unspecifier_package_error. cwd , base_dir) ;
131+ stabilize_absolute_path ( & mut unspecifier_package_error. cwd , base_dir) ;
132132 }
133133 }
134134}
@@ -206,7 +206,7 @@ fn run_case(runtime: &Runtime, tmpdir: &AbsolutePath, case_path: &Path) {
206206 let execution_graph = match indexed_task_graph. query_tasks ( task_query) {
207207 Ok ( ok) => ok,
208208 Err ( mut err) => {
209- stablize_specifier_lookup_error ( & mut err, & case_stage_path) ;
209+ stabilize_specifier_lookup_error ( & mut err, & case_stage_path) ;
210210 insta:: assert_debug_snapshot!( snapshot_name, err) ;
211211 continue ;
212212 }
0 commit comments