rust-clippy/tests/ui/doc_unsafe.stderr

46 lines
1.3 KiB
Text
Raw Normal View History

error: unsafe function's docs miss `# Safety` section
--> $DIR/doc_unsafe.rs:9:1
|
LL | pub unsafe fn destroy_the_planet() {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `-D clippy::missing-safety-doc` implied by `-D warnings`
2019-10-02 15:19:30 +00:00
error: unsafe function's docs miss `# Safety` section
--> $DIR/doc_unsafe.rs:32:5
2019-10-02 15:19:30 +00:00
|
LL | pub unsafe fn republished() {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
2019-10-02 15:19:30 +00:00
error: unsafe function's docs miss `# Safety` section
--> $DIR/doc_unsafe.rs:40:5
2019-10-02 15:19:30 +00:00
|
LL | unsafe fn woefully_underdocumented(self);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: docs for unsafe trait missing `# Safety` section
--> $DIR/doc_unsafe.rs:46:1
|
LL | pub unsafe trait UnsafeTrait {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2019-10-02 15:19:30 +00:00
error: unsafe function's docs miss `# Safety` section
--> $DIR/doc_unsafe.rs:76:5
2019-10-02 15:19:30 +00:00
|
LL | pub unsafe fn more_undocumented_unsafe() -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2019-10-02 15:19:30 +00:00
2020-01-04 19:19:14 +00:00
error: unsafe function's docs miss `# Safety` section
--> $DIR/doc_unsafe.rs:92:9
2020-01-04 19:19:14 +00:00
|
LL | pub unsafe fn whee() {
| ^^^^^^^^^^^^^^^^^^^^
2020-01-04 19:19:14 +00:00
...
LL | very_unsafe!();
| -------------- in this macro invocation
|
= note: this error originates in the macro `very_unsafe` (in Nightly builds, run with -Z macro-backtrace for more info)
2020-01-04 19:19:14 +00:00
error: aborting due to 6 previous errors