Skip to content

Commit 2744cb7

Browse files
Rollup merge of #156211 - kupiakos:space-in-hashbrown-src-location, r=wesleywiser
tests/ui: allow spaces in hashbrown src normalization If one's home directory contains a space, the default location for the hashbrown source location also contains a space, and so the UI test normalization in issue-21763 fails to normalize as expected. While this new regex does not handle all valid paths, such as those beginning with `\\?\` or `\\name\`, this handles most absolute UNIX and Windows paths. Relative paths don't seem to be applicable.
2 parents b1d2262 + a8d85e6 commit 2744cb7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/ui/issues/issue-21763.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Regression test for HashMap only impl'ing Send/Sync if its contents do
22

3-
//@ normalize-stderr: "\S+[\\/]hashbrown\S+" -> "$$HASHBROWN_SRC_LOCATION"
3+
//@ normalize-stderr: "(?:[A-Za-z]:[/\\]|/).*[\\/]hashbrown\S+" -> "$$HASHBROWN_SRC_LOCATION"
44

55
use std::collections::HashMap;
66
use std::rc::Rc;

0 commit comments

Comments
 (0)