diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2018-06-07 23:07:46 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2018-06-08 15:25:20 -0700 |
| commit | 82d3a49564aa09229fd9cc43e605b5a44f1108c1 (patch) | |
| tree | 1eb8bfb02deae69d5df4e2dbca911a078ec8fad0 /src/librustc/middle | |
| parent | 41affd03eb169830773cd1b11efda562ab81fad0 (diff) | |
| download | rust-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.rs | 2 |
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`), |
