Skip to content

Commit

Permalink
Add a doc comment to infer_projection
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Sep 20, 2021
1 parent b952ada commit afb7472
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions compiler/rustc_infer/src/infer/projection.rs
Expand Up @@ -7,6 +7,12 @@ use super::type_variable::{TypeVariableOrigin, TypeVariableOriginKind};
use super::InferCtxt;

impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
/// Instead of normalizing an associated type projection,
/// this function generates an inference variable and registers
/// an obligation that this inference variable must be the result
/// of the given projection. This allows us to proceed with projections
/// while they cannot be resolved yet due to missing information or
/// simply due to the lack of access to the trait resolution machinery.
pub fn infer_projection(
&self,
param_env: ty::ParamEnv<'tcx>,
Expand Down

0 comments on commit afb7472

Please sign in to comment.