File tree Expand file tree Collapse file tree 5 files changed +8
-14
lines changed
tracing-attributes/tests/ui/fail
tracing-subscriber/src/filter/env Expand file tree Collapse file tree 5 files changed +8
-14
lines changed Original file line number Diff line number Diff line change @@ -33,20 +33,14 @@ error[E0277]: `(&str,)` doesn't implement `std::fmt::Display`
33
33
16 | | }
34
34
| | ^
35
35
| | |
36
- | |_`(&str,)` cannot be formatted with the default formatter
36
+ | |_the trait `std::fmt::Display` is not implemented for `(&str,)`
37
37
| return type was inferred to be `(&str,)` here
38
- |
39
- = help: the trait `std::fmt::Display` is not implemented for `(&str,)`
40
- = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
41
38
42
39
error[E0277]: `(&str,)` doesn't implement `std::fmt::Display`
43
40
--> tests/ui/fail/async_instrument.rs:14:34
44
41
|
45
42
14 | async fn opaque_unsatisfied() -> impl std::fmt::Display {
46
- | ^^^^^^^^^^^^^^^^^^^^^^ `(&str,)` cannot be formatted with the default formatter
47
- |
48
- = help: the trait `std::fmt::Display` is not implemented for `(&str,)`
49
- = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
43
+ | ^^^^^^^^^^^^^^^^^^^^^^ the trait `std::fmt::Display` is not implemented for `(&str,)`
50
44
51
45
error[E0308]: mismatched types
52
46
--> tests/ui/fail/async_instrument.rs:22:5
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ preserving structured information.
24
24
25
25
[ ` tracing ` ] is a framework for instrumenting Rust programs to collect
26
26
scoped, structured, and async-aware diagnostics. ` tracing-journald ` provides a
27
- [ ` tracing-subscriber ::Layer` ] [ layer ] implementation for logging ` tracing ` spans
27
+ [ ` tracing_subscriber ::Layer` ] [ layer ] implementation for logging ` tracing ` spans
28
28
and events to [ ` systemd-journald ` ] [ journald ] , on Linux distributions that use
29
29
` systemd ` .
30
30
Original file line number Diff line number Diff line change 7
7
//!
8
8
//! [`tracing`] is a framework for instrumenting Rust programs to collect
9
9
//! scoped, structured, and async-aware diagnostics. `tracing-journald` provides a
10
- //! [`tracing-subscriber ::Layer`] implementation for logging `tracing` spans
10
+ //! [`tracing_subscriber ::Layer`] implementation for logging `tracing` spans
11
11
//! and events to [`systemd-journald`][journald], on Linux distributions that
12
12
//! use `systemd`.
13
13
//!
Original file line number Diff line number Diff line change @@ -334,7 +334,7 @@ impl Eq for MatchPattern {}
334
334
impl PartialOrd for MatchPattern {
335
335
#[ inline]
336
336
fn partial_cmp ( & self , other : & Self ) -> Option < Ordering > {
337
- Some ( self . pattern . cmp ( & other. pattern ) )
337
+ Some ( self . cmp ( other) )
338
338
}
339
339
}
340
340
@@ -430,7 +430,7 @@ impl Eq for MatchDebug {}
430
430
impl PartialOrd for MatchDebug {
431
431
#[ inline]
432
432
fn partial_cmp ( & self , other : & Self ) -> Option < Ordering > {
433
- Some ( self . pattern . cmp ( & other. pattern ) )
433
+ Some ( self . cmp ( other) )
434
434
}
435
435
}
436
436
Original file line number Diff line number Diff line change @@ -78,8 +78,7 @@ use tracing_core::{
78
78
/// instead.
79
79
///
80
80
/// When field value filters are interpreted as regular expressions, the
81
- /// [`regex-automata` crate's regular expression syntax][re-syntax] is
82
- /// supported.
81
+ /// [`regex` crate's regular expression syntax][re-syntax] is supported.
83
82
///
84
83
/// **Note**: When filters are constructed from potentially untrusted inputs,
85
84
/// [disabling regular expression matching](Builder::with_regex) is strongly
@@ -192,6 +191,7 @@ use tracing_core::{
192
191
/// [global]: crate::layer#global-filtering
193
192
/// [plf]: crate::layer#per-layer-filtering
194
193
/// [filtering]: crate::layer#filtering-with-layers
194
+ /// [re-syntax]: https://docs.rs/regex/1.11.1/regex/#syntax
195
195
#[ cfg_attr( docsrs, doc( cfg( all( feature = "env-filter" , feature = "std" ) ) ) ) ]
196
196
#[ derive( Debug ) ]
197
197
pub struct EnvFilter {
You can’t perform that action at this time.
0 commit comments