summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlcnr <rust@lcnr.de>2021-03-26 19:52:09 +0100
committerGitHub <noreply@github.com>2021-03-26 19:52:09 +0100
commit7ca2c981b28676a8411e0b2c96db001b9633c1d2 (patch)
tree6564451ee24d93afe16901045cd6ff8939926b56
parentb8719c51e0e44483cff9b6975a830f6e51812a48 (diff)
downloadrust-7ca2c981b28676a8411e0b2c96db001b9633c1d2.tar.gz
fix doc comment for `ty::Dynamiclcnr-doc-patch
-rw-r--r--compiler/rustc_middle/src/ty/sty.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/ty/sty.rs b/compiler/rustc_middle/src/ty/sty.rs
index 2cd969d7a16..e78e928398f 100644
--- a/compiler/rustc_middle/src/ty/sty.rs
+++ b/compiler/rustc_middle/src/ty/sty.rs
@@ -160,7 +160,7 @@ pub enum TyKind<'tcx> {
/// ```
FnPtr(PolyFnSig<'tcx>),
- /// A trait, defined with `trait`.
+ /// A trait object. Written as `dyn for<'b> Trait<'b, Assoc = u32> + Send + 'a`.
Dynamic(&'tcx List<Binder<ExistentialPredicate<'tcx>>>, ty::Region<'tcx>),
/// The anonymous type of a closure. Used to represent the type of