mirror of
https://github.com/github/codeql.git
synced 2026-05-05 05:35:13 +02:00
Merge pull request #21151 from hvitved/rust/disable-universal-conds-by-default
Type inference: Disable universal conditions by default
This commit is contained in:
@@ -438,7 +438,7 @@ mod method_non_parametric_trait_impl {
|
||||
|
||||
let thing = MyThing { a: S1 };
|
||||
let i = thing.convert_to(); // $ type=i:S1 target=T::convert_to
|
||||
let j = convert_to(thing); // $ type=j:S1 target=convert_to
|
||||
let j = convert_to(thing); // $ target=convert_to $ MISSING: type=j:S1 -- the blanket implementation `impl<T: MyTrait<S1>> ConvertTo<S1> for T` is currently not included in the constraint analysis
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -7151,8 +7151,6 @@ inferType
|
||||
| main.rs:440:17:440:21 | thing | | main.rs:224:5:227:5 | MyThing |
|
||||
| main.rs:440:17:440:21 | thing | A | main.rs:235:5:236:14 | S1 |
|
||||
| main.rs:440:17:440:34 | thing.convert_to() | | main.rs:235:5:236:14 | S1 |
|
||||
| main.rs:441:13:441:13 | j | | main.rs:235:5:236:14 | S1 |
|
||||
| main.rs:441:17:441:33 | convert_to(...) | | main.rs:235:5:236:14 | S1 |
|
||||
| main.rs:441:28:441:32 | thing | | main.rs:224:5:227:5 | MyThing |
|
||||
| main.rs:441:28:441:32 | thing | A | main.rs:235:5:236:14 | S1 |
|
||||
| main.rs:450:26:450:29 | SelfParam | | main.rs:449:5:453:5 | Self [trait OverlappingTrait] |
|
||||
|
||||
Reference in New Issue
Block a user