diff options
author | Aleksey Kladov <[email protected]> | 2021-05-24 20:21:25 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2021-05-24 20:21:25 +0100 |
commit | 45112aa8c0a55f003acc3b20646e840909dea08f (patch) | |
tree | 93437bb5e3f358bd183fb7167fb1498e5f4e8247 /crates/hir_ty/src | |
parent | 3926f60cb525592400018b0afb0c0553dabfdb32 (diff) |
internal: rename hypothetical -> speculative
Lets steal this good naming from Roslyn before I forget about it yet
again.
Diffstat (limited to 'crates/hir_ty/src')
-rw-r--r-- | crates/hir_ty/src/lower.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir_ty/src/lower.rs b/crates/hir_ty/src/lower.rs index 1645ac533..c83933c73 100644 --- a/crates/hir_ty/src/lower.rs +++ b/crates/hir_ty/src/lower.rs | |||
@@ -1026,7 +1026,7 @@ pub(crate) fn trait_environment_query( | |||
1026 | }; | 1026 | }; |
1027 | if let Some(AssocContainerId::TraitId(trait_id)) = container { | 1027 | if let Some(AssocContainerId::TraitId(trait_id)) = container { |
1028 | // add `Self: Trait<T1, T2, ...>` to the environment in trait | 1028 | // add `Self: Trait<T1, T2, ...>` to the environment in trait |
1029 | // function default implementations (and hypothetical code | 1029 | // function default implementations (and speculative code |
1030 | // inside consts or type aliases) | 1030 | // inside consts or type aliases) |
1031 | cov_mark::hit!(trait_self_implements_self); | 1031 | cov_mark::hit!(trait_self_implements_self); |
1032 | let substs = TyBuilder::type_params_subst(db, trait_id); | 1032 | let substs = TyBuilder::type_params_subst(db, trait_id); |