mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 17:18:32 +03:00
comment -> doc comment
This commit is contained in:
@@ -5351,9 +5351,9 @@ fn check_rustc_args_require_const(&self,
|
||||
directly, not through a function pointer");
|
||||
}
|
||||
|
||||
// Resolves `typ` by a single level if `typ` is a type variable.
|
||||
// If no resolution is possible, then an error is reported.
|
||||
// Numeric inference variables may be left unresolved.
|
||||
/// Resolves `typ` by a single level if `typ` is a type variable.
|
||||
/// If no resolution is possible, then an error is reported.
|
||||
/// Numeric inference variables may be left unresolved.
|
||||
pub fn structurally_resolved_type(&self, sp: Span, ty: Ty<'tcx>) -> Ty<'tcx> {
|
||||
let ty = self.resolve_vars_with_obligations(ty);
|
||||
if !ty.is_ty_var() {
|
||||
|
||||
Reference in New Issue
Block a user