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

ices/102363.sh: fixed with no errors #1558

Merged
merged 1 commit into from
Apr 3, 2023
Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Apr 1, 2023

Issue: rust-lang/rust#102363

#!/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 --document-private-items  -Zunstable-options  --output-format=json out.rs
=== stdout ===
=== stderr ===
/home/runner/work/glacier/glacier/ices/102363.sh: line 3: usize: command not found
warning: unknown `doc` attribute `primitive`
 --> out.rs:4:7
  |
4 | #[doc(primitive = "usize")]
  |       ^^^^^^^^^^^^^^^^^^^
  |
  = 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>
  = note: `#[warn(invalid_doc_attributes)]` on by default

warning: 1 warning emitted

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

=== stdout ===
=== stderr ===
/home/runner/work/glacier/glacier/ices/102363.sh: line 3: usize: command not found
warning: unknown `doc` attribute `primitive`
 --> out.rs:4:7
  |
4 | #[doc(primitive = "usize")]
  |       ^^^^^^^^^^^^^^^^^^^
  |
  = 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>
  = note: `#[warn(invalid_doc_attributes)]` on by default

warning: 1 warning emitted

==============
@JohnTitor JohnTitor merged commit 17cb2d5 into master Apr 3, 2023
@JohnTitor JohnTitor deleted the autofix/ices/102363.sh branch April 3, 2023 21:10
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.

2 participants