diff options
| author | David Wood <david@davidtw.co> | 2018-10-01 17:46:04 +0200 |
|---|---|---|
| committer | David Wood <david@davidtw.co> | 2018-10-02 00:35:15 +0200 |
| commit | 43b5d725d0b458e317c52ef200d323998fa0c20f (patch) | |
| tree | 2173f9fa73cbc837395f77d52dd64251d6bff968 /src/test/incremental/hashes | |
| parent | f55129d0037c112a80276ee1de0c2245ddc6462c (diff) | |
| download | rust-43b5d725d0b458e317c52ef200d323998fa0c20f.tar.gz rust-43b5d725d0b458e317c52ef200d323998fa0c20f.zip | |
Improve implicit self mutability suggestions.
This commit adds an `ImplicitSelfKind` to the HIR and the MIR that keeps track of whether a implicit self argument is immutable by-value, mutable by-value, immutable reference or mutable reference so that the addition of the `mut` keyword can be suggested for the immutable by-value case.
Diffstat (limited to 'src/test/incremental/hashes')
| -rw-r--r-- | src/test/incremental/hashes/trait_defs.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/incremental/hashes/trait_defs.rs b/src/test/incremental/hashes/trait_defs.rs index b089d7d1eae..e7d25d07d12 100644 --- a/src/test/incremental/hashes/trait_defs.rs +++ b/src/test/incremental/hashes/trait_defs.rs @@ -270,7 +270,7 @@ trait TraitChangeModeSelfOwnToMut: Sized { #[rustc_clean(label="Hir", cfg="cfail2")] #[rustc_clean(label="Hir", cfg="cfail3")] trait TraitChangeModeSelfOwnToMut: Sized { - #[rustc_clean(label="Hir", cfg="cfail2")] + #[rustc_dirty(label="Hir", cfg="cfail2")] #[rustc_clean(label="Hir", cfg="cfail3")] #[rustc_dirty(label="HirBody", cfg="cfail2")] #[rustc_clean(label="HirBody", cfg="cfail3")] |
