about summary refs log tree commit diff
path: root/src/test/compile-fail-fulldeps
diff options
context:
space:
mode:
authorZack M. Davis <code@zackmdavis.net>2016-06-12 17:46:43 -0700
committerZack M. Davis <code@zackmdavis.net>2016-07-30 15:18:07 -0700
commit661b4f09fb8d765292521f618bcb8d79da544154 (patch)
treed0e325cf13a44d111f8255b5792435eab1e43da7 /src/test/compile-fail-fulldeps
parent7f7969ef44af9e7f060e7a505366a7925e4470c2 (diff)
downloadrust-661b4f09fb8d765292521f618bcb8d79da544154.tar.gz
rust-661b4f09fb8d765292521f618bcb8d79da544154.zip
diagnostically note source of overruling outer forbid
When we emit E0453 (lint level attribute overruled by outer `forbid`
lint level), it could be helpful to note where the `forbid` level was
set, for the convenience of users who, e.g., believe that the correct
fix is to weaken the `forbid` to `deny`.
Diffstat (limited to 'src/test/compile-fail-fulldeps')
-rw-r--r--src/test/compile-fail-fulldeps/lint-plugin-forbid-attrs.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/compile-fail-fulldeps/lint-plugin-forbid-attrs.rs b/src/test/compile-fail-fulldeps/lint-plugin-forbid-attrs.rs
index 83c845bfdf9..61a8ee88a70 100644
--- a/src/test/compile-fail-fulldeps/lint-plugin-forbid-attrs.rs
+++ b/src/test/compile-fail-fulldeps/lint-plugin-forbid-attrs.rs
@@ -14,6 +14,8 @@
 #![feature(plugin)]
 #![plugin(lint_plugin_test)]
 #![forbid(test_lint)]
+//~^ NOTE lint level defined here
+//~| NOTE `forbid` lint level set here
 
 fn lintme() { } //~ ERROR item is named 'lintme'