-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Andy Lok <[email protected]>
- Loading branch information
1 parent
4c126f3
commit 2575e56
Showing
7 changed files
with
21 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ro/tests/ui/err/has-name-and-full-path.rs → ...ro/tests/ui/err/has-name-and-path-name.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
use minitrace::trace; | ||
|
||
#[trace(name = "Name", full_path = true)] | ||
#[trace(name = "Name", path_name = true)] | ||
fn f() {} | ||
|
||
fn main() {} |
4 changes: 2 additions & 2 deletions
4
...ests/ui/err/has-name-and-full-path.stderr → ...ests/ui/err/has-name-and-path-name.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
error: `name` and `full_path` can not be used together | ||
error: `name` and `path_name` can not be used together | ||
--> tests/ui/err/has-name-and-full-path.rs:3:1 | ||
| | ||
3 | #[trace(name = "Name", full_path = true)] | ||
3 | #[trace(name = "Name", path_name = true)] | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: this error originates in the attribute macro `trace` (in Nightly builds, run with -Z macro-backtrace for more info) |
2 changes: 1 addition & 1 deletion
2
...cro/tests/ui/ok/has-name-and-full-path.rs → ...cro/tests/ui/ok/has-name-and-path-name.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
minitrace-macro/tests/ui/ok/has-full-path.rs → minitrace-macro/tests/ui/ok/has-path-name.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
use minitrace::trace; | ||
|
||
#[trace(full_path = true)] | ||
#[trace(path_name = true)] | ||
async fn f(a: u32) -> u32 { | ||
a | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters