From 2add77dffbf746ed95a5420f23bbaff6b3f99be5 Mon Sep 17 00:00:00 2001 From: Dylan MacKenzie Date: Tue, 10 Dec 2019 22:20:44 -0800 Subject: [PATCH] Improve message when active feature indexing panics --- src/librustc_feature/active.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc_feature/active.rs b/src/librustc_feature/active.rs index 91a84f711f2..123188944b2 100644 --- a/src/librustc_feature/active.rs +++ b/src/librustc_feature/active.rs @@ -61,7 +61,7 @@ macro_rules! declare_features { match feature { $( sym::$feature => &self.$feature, )* - _ => panic!("{} was not defined in `declare_features`", feature), + _ => panic!("`{}` was not listed in `declare_features`", feature), } } }