Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

ices/98006.sh: fixed with no errors #1313

Merged
merged 1 commit into from
Jun 19, 2022
Merged

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#98006

#!/bin/bash

cat > out.rs <<'EOF'


#![feature(no_core)]
#![no_core]

#[doc(primitive = "usize")]
/// This is the built-in type `usize`.
mod usize {
}

EOF

rustdoc -Zunstable-options --output-format json --document-private-items out.rs
=== stdout ===
=== stderr ===
warning: `doc(primitive)` should never have been stable
 --> out.rs:6:7
  |
6 | #[doc(primitive = "usize")]
  |       ^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(invalid_doc_attributes)]` on by default
  = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
  = note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>

warning: 1 warning emitted

==============

=== stdout ===
=== stderr ===
warning: `doc(primitive)` should never have been stable
 --> out.rs:6:7
  |
6 | #[doc(primitive = "usize")]
  |       ^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(invalid_doc_attributes)]` on by default
  = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
  = note: for more information, see issue #82730 <rust-lang/rust#82730>

warning: 1 warning emitted

==============
@JohnTitor JohnTitor merged commit 821f218 into master Jun 19, 2022
@JohnTitor JohnTitor deleted the autofix/ices/98006.sh branch June 19, 2022 03:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants