about summary refs log tree commit diff
path: root/src/libsyntax_pos
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-12-03 11:07:01 +0100
committerGitHub <noreply@github.com>2019-12-03 11:07:01 +0100
commit8dacfc2adac25b8e749a19623ce4db543bb33306 (patch)
tree4347631bddde91e7243e60aa55c196531388d59e /src/libsyntax_pos
parent3045d22263b88e17e3ff2e824b25d727d31dea6d (diff)
parent1d0c015f9b5e4da3695ed23f269dc51a8d09b8a9 (diff)
downloadrust-8dacfc2adac25b8e749a19623ce4db543bb33306.tar.gz
rust-8dacfc2adac25b8e749a19623ce4db543bb33306.zip
Rollup merge of #66651 - Areredify:on-unimplemented-scope, r=davidtwco
Add `enclosing scope` parameter to `rustc_on_unimplemented`

Adds a new parameter to `#[rustc_on_unimplemented]`, `enclosing scope`, which highlights the function or closure scope with a message.

The wip part refers to adding this annotation to `Try` trait to improve ergonomics (which I don't know how to do since I change both std and librustc)

Closes #61709.
Diffstat (limited to 'src/libsyntax_pos')
-rw-r--r--src/libsyntax_pos/symbol.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsyntax_pos/symbol.rs b/src/libsyntax_pos/symbol.rs
index 3059b059691..88a325112ac 100644
--- a/src/libsyntax_pos/symbol.rs
+++ b/src/libsyntax_pos/symbol.rs
@@ -280,6 +280,7 @@ symbols! {
         Err,
         Eq,
         Equal,
+        enclosing_scope,
         except,
         exclusive_range_pattern,
         exhaustive_integer_patterns,