diff options
| author | Joshua Nelson <jyn514@gmail.com> | 2020-06-20 15:57:23 -0400 |
|---|---|---|
| committer | Joshua Nelson <jyn514@gmail.com> | 2020-07-15 10:54:05 -0400 |
| commit | a5275ff41521bb8e5a70f49f8ed420eaac7ed7de (patch) | |
| tree | c45a96121e03ea4ef4b5e8597b491544376b4f2a /src/test/rustdoc | |
| parent | f6764c42ab3a7d8875680536ec1e8df7d0ed3100 (diff) | |
| download | rust-a5275ff41521bb8e5a70f49f8ed420eaac7ed7de.tar.gz rust-a5275ff41521bb8e5a70f49f8ed420eaac7ed7de.zip | |
Don't run everybody_loops for rustdoc
Instead, ignore resolution errors that occur in item bodies. The reason this can't ignore item bodies altogether is because `const fn` could be used in generic types, for example `[T; f()]`
Diffstat (limited to 'src/test/rustdoc')
| -rw-r--r-- | src/test/rustdoc/doc-cfg.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/rustdoc/doc-cfg.rs b/src/test/rustdoc/doc-cfg.rs index aa407b7e926..8664930bc94 100644 --- a/src/test/rustdoc/doc-cfg.rs +++ b/src/test/rustdoc/doc-cfg.rs @@ -57,5 +57,7 @@ pub unsafe fn uses_target_feature() { // 'This is supported with target feature avx only.' #[doc(cfg(target_feature = "avx"))] pub fn uses_cfg_target_feature() { - uses_target_feature(); + unsafe { + uses_target_feature(); + } } |
