about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2019-06-08 23:55:09 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2019-06-09 00:08:53 +0300
commitee189ae028ce4ff620630686432f44b0ea706181 (patch)
tree2815b351515f86ec04cec3221bbab5f7a7fc621b
parent8e8ab49bcacda0875afe02410e28883304e970c4 (diff)
downloadrust-ee189ae028ce4ff620630686432f44b0ea706181.tar.gz
rust-ee189ae028ce4ff620630686432f44b0ea706181.zip
Address review comments
-rw-r--r--src/test/ui/attributes/obsolete-attr.rs (renamed from src/test/ui/lint/lint-obsolete-attr.rs)3
-rw-r--r--src/test/ui/attributes/obsolete-attr.stderr (renamed from src/test/ui/lint/lint-obsolete-attr.stderr)4
-rw-r--r--src/test/ui/attributes/unknown-attr.rs (renamed from src/test/ui/lint/lint-unknown-attr.rs)3
-rw-r--r--src/test/ui/attributes/unknown-attr.stderr (renamed from src/test/ui/lint/lint-unknown-attr.stderr)6
4 files changed, 7 insertions, 9 deletions
diff --git a/src/test/ui/lint/lint-obsolete-attr.rs b/src/test/ui/attributes/obsolete-attr.rs
index 49a8dde5da8..89e2ad2669c 100644
--- a/src/test/ui/lint/lint-obsolete-attr.rs
+++ b/src/test/ui/attributes/obsolete-attr.rs
@@ -1,5 +1,4 @@
-// When denying at the crate level, be sure to not get random warnings from the
-// injected intrinsics by the compiler.
+// Obsolete attributes fall back to feature gated custom attributes.
 
 #[ab_isize="stdcall"] extern {} //~ ERROR attribute `ab_isize` is currently unknown
 
diff --git a/src/test/ui/lint/lint-obsolete-attr.stderr b/src/test/ui/attributes/obsolete-attr.stderr
index 039b07e6ea5..2ed7f87935f 100644
--- a/src/test/ui/lint/lint-obsolete-attr.stderr
+++ b/src/test/ui/attributes/obsolete-attr.stderr
@@ -1,5 +1,5 @@
 error[E0658]: The attribute `fixed_stack_segment` is currently unknown to the compiler and may have meaning added to it in the future
-  --> $DIR/lint-obsolete-attr.rs:6:3
+  --> $DIR/obsolete-attr.rs:5:3
    |
 LL | #[fixed_stack_segment] fn f() {}
    |   ^^^^^^^^^^^^^^^^^^^
@@ -8,7 +8,7 @@ LL | #[fixed_stack_segment] fn f() {}
    = help: add #![feature(custom_attribute)] to the crate attributes to enable
 
 error[E0658]: The attribute `ab_isize` is currently unknown to the compiler and may have meaning added to it in the future
-  --> $DIR/lint-obsolete-attr.rs:4:3
+  --> $DIR/obsolete-attr.rs:3:3
    |
 LL | #[ab_isize="stdcall"] extern {}
    |   ^^^^^^^^
diff --git a/src/test/ui/lint/lint-unknown-attr.rs b/src/test/ui/attributes/unknown-attr.rs
index cddac850c59..e2a4f3226d5 100644
--- a/src/test/ui/lint/lint-unknown-attr.rs
+++ b/src/test/ui/attributes/unknown-attr.rs
@@ -1,5 +1,4 @@
-// When denying at the crate level, be sure to not get random warnings from the
-// injected intrinsics by the compiler.
+// Unknown attributes fall back to feature gated custom attributes.
 
 #![feature(custom_inner_attributes)]
 
diff --git a/src/test/ui/lint/lint-unknown-attr.stderr b/src/test/ui/attributes/unknown-attr.stderr
index 4f00a51a5db..d0ac58108fc 100644
--- a/src/test/ui/lint/lint-unknown-attr.stderr
+++ b/src/test/ui/attributes/unknown-attr.stderr
@@ -1,5 +1,5 @@
 error[E0658]: The attribute `mutable_doc` is currently unknown to the compiler and may have meaning added to it in the future
-  --> $DIR/lint-unknown-attr.rs:6:4
+  --> $DIR/unknown-attr.rs:5:4
    |
 LL | #![mutable_doc]
    |    ^^^^^^^^^^^
@@ -8,7 +8,7 @@ LL | #![mutable_doc]
    = help: add #![feature(custom_attribute)] to the crate attributes to enable
 
 error[E0658]: The attribute `dance` is currently unknown to the compiler and may have meaning added to it in the future
-  --> $DIR/lint-unknown-attr.rs:8:3
+  --> $DIR/unknown-attr.rs:7:3
    |
 LL | #[dance] mod a {}
    |   ^^^^^
@@ -17,7 +17,7 @@ LL | #[dance] mod a {}
    = help: add #![feature(custom_attribute)] to the crate attributes to enable
 
 error[E0658]: The attribute `dance` is currently unknown to the compiler and may have meaning added to it in the future
-  --> $DIR/lint-unknown-attr.rs:10:3
+  --> $DIR/unknown-attr.rs:9:3
    |
 LL | #[dance] fn main() {}
    |   ^^^^^