about summary refs log tree commit diff
path: root/compiler/rustc_ast/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-03-18 05:27:26 +0000
committerbors <bors@rust-lang.org>2021-03-18 05:27:26 +0000
commit2aafe452b898aa3fdfb2c5a1a649ed0922e1401d (patch)
treeb7c27651086eb8ec2358fdee1b6795d71c191c04 /compiler/rustc_ast/src
parent81c1d7a1506e5f4bcc5f12fb49f3b6e9bb87c605 (diff)
parentb48530bf8b30c20a75f5bb7c2021a28c0ae40413 (diff)
downloadrust-2aafe452b898aa3fdfb2c5a1a649ed0922e1401d.tar.gz
rust-2aafe452b898aa3fdfb2c5a1a649ed0922e1401d.zip
Auto merge of #82868 - petrochenkov:bto, r=estebank
Report missing cases of `bare_trait_objects`

Fixes https://github.com/rust-lang/rust/issues/65371
Diffstat (limited to 'compiler/rustc_ast/src')
-rw-r--r--compiler/rustc_ast/src/ast.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ast/src/ast.rs b/compiler/rustc_ast/src/ast.rs
index ee7367d408d..7e82d7ff77d 100644
--- a/compiler/rustc_ast/src/ast.rs
+++ b/compiler/rustc_ast/src/ast.rs
@@ -1964,7 +1964,7 @@ impl TyKind {
 }
 
 /// Syntax used to declare a trait object.
-#[derive(Clone, Copy, PartialEq, Encodable, Decodable, Debug)]
+#[derive(Clone, Copy, PartialEq, Encodable, Decodable, Debug, HashStable_Generic)]
 pub enum TraitObjectSyntax {
     Dyn,
     None,