diff options
| author | Urgau <urgau@numericable.fr> | 2025-05-10 15:15:54 +0200 |
|---|---|---|
| committer | Urgau <urgau@numericable.fr> | 2025-05-26 21:52:21 +0200 |
| commit | 3fd0265fbb236c8309f2f913cf9946e64818f643 (patch) | |
| tree | 087850b011c4f037f751da64b1cfae64d5e2c709 /src/librustdoc/clean/inline.rs | |
| parent | 93f3db25c0e554d3143bed945e2671a14aa5288d (diff) | |
| download | rust-3fd0265fbb236c8309f2f913cf9946e64818f643.tar.gz rust-3fd0265fbb236c8309f2f913cf9946e64818f643.zip | |
rustdoc: use custom `CfgMatchesLintEmitter` to make check-cfg work
Diffstat (limited to 'src/librustdoc/clean/inline.rs')
| -rw-r--r-- | src/librustdoc/clean/inline.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/clean/inline.rs b/src/librustdoc/clean/inline.rs index 55a116a018a..f25cf606812 100644 --- a/src/librustdoc/clean/inline.rs +++ b/src/librustdoc/clean/inline.rs @@ -409,12 +409,12 @@ pub(crate) fn merge_attrs( } else { Attributes::from_hir(&both) }, - extract_cfg_from_attrs(both.iter(), cx.tcx, &cx.cache.hidden_cfg), + extract_cfg_from_attrs(both.iter(), cx.tcx, None, &cx.cache.hidden_cfg), ) } else { ( Attributes::from_hir(old_attrs), - extract_cfg_from_attrs(old_attrs.iter(), cx.tcx, &cx.cache.hidden_cfg), + extract_cfg_from_attrs(old_attrs.iter(), cx.tcx, None, &cx.cache.hidden_cfg), ) } } |
