File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
rust/ql/lib/codeql/rust/internal/typeinference Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2948,7 +2948,7 @@ private class VariantConstructor extends Constructor instanceof Variant {
29482948
29492949/**
29502950 * A matching configuration for resolving types of constructors of enums and
2951- * structs, such as `Result::Ok(42)`, `Foo { bar = 1 }` and `None`.
2951+ * structs, such as `Result::Ok(42)`, `Foo { bar: 1 }` and `None`.
29522952 */
29532953private module ConstructorMatchingInput implements MatchingInputSig {
29542954 import FunctionPositionMatchingInput
@@ -3586,7 +3586,7 @@ private module ConstructorPatMatchingInput implements MatchingInputSig {
35863586 result = inferType ( this .getNodeAt ( apos ) , path )
35873587 or
35883588 // The struct/enum type is supplied explicitly as a type qualifier, e.g.
3589- // `let Foo<Bar>::Variant { ... } = ...` or
3589+ // `let Foo:: <Bar>::Variant { ... } = ...` or
35903590 // `let Option::<Foo>::Some(x) = ...`.
35913591 apos .isReturn ( ) and
35923592 result = super .getPath ( ) .( TypeMention ) .getTypeAt ( path )
You can’t perform that action at this time.
0 commit comments