mirror of
https://github.com/eyre-rs/eyre.git
synced 2025-09-28 13:31:29 +00:00
chore: clarify file! behavior
This commit is contained in:
parent
e54e98f313
commit
0ad6355d9f
@ -57,8 +57,10 @@ fn test_backwards_compatibility() {
|
|||||||
// This integration is ran by cargo with cwd="color-spantrace", but the string literals for
|
// This integration is ran by cargo with cwd="color-spantrace", but the string literals for
|
||||||
// `file!` are relative to the workspace root. This changes the cwd to the workspace root.
|
// `file!` are relative to the workspace root. This changes the cwd to the workspace root.
|
||||||
//
|
//
|
||||||
// The behavior of file! when invoked from a workspace is not document, as non-member path
|
// The behavior of file! when invoked from a workspace is not documented. See: <https://doc.rust-lang.org/std/macro.file.html>.
|
||||||
// dependencies will get an absolute path.
|
//
|
||||||
|
// Noteworthy: non-member path dependencies will get an absolute path, as will registry and git
|
||||||
|
// dependencies.
|
||||||
std::env::set_current_dir("..").unwrap();
|
std::env::set_current_dir("..").unwrap();
|
||||||
|
|
||||||
Registry::default().with(ErrorLayer::default()).init();
|
Registry::default().with(ErrorLayer::default()).init();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user