about summary refs log tree commit diff
path: root/src/librustc/middle
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2018-06-07 23:07:46 -0700
committerEsteban Küber <esteban@kuber.com.ar>2018-06-08 15:25:20 -0700
commit82d3a49564aa09229fd9cc43e605b5a44f1108c1 (patch)
tree1eb8bfb02deae69d5df4e2dbca911a078ec8fad0 /src/librustc/middle
parent41affd03eb169830773cd1b11efda562ab81fad0 (diff)
downloadrust-82d3a49564aa09229fd9cc43e605b5a44f1108c1.tar.gz
rust-82d3a49564aa09229fd9cc43e605b5a44f1108c1.zip
Suggestion for 'static impl Trait return
When encountering a named or anonymous sup requirement (for example,
`&'a self`) and a `'static` impl Trait return type, suggest adding the
`'_` lifetime constraing to the return type.
Diffstat (limited to 'src/librustc/middle')
-rw-r--r--src/librustc/middle/mem_categorization.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/middle/mem_categorization.rs b/src/librustc/middle/mem_categorization.rs
index 959dda69e30..abccad5a148 100644
--- a/src/librustc/middle/mem_categorization.rs
+++ b/src/librustc/middle/mem_categorization.rs
@@ -179,7 +179,7 @@ pub enum Note {
 // and how it is located, as well as the mutability of the memory in
 // which the value is stored.
 //
-// *WARNING* The field `cmt.type` is NOT necessarily the same as the
+// *WARNING* The field `cmt.ty` is NOT necessarily the same as the
 // result of `node_id_to_type(cmt.id)`. This is because the `id` is
 // always the `id` of the node producing the type; in an expression
 // like `*x`, the type of this deref node is the deref'd type (`T`),