-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathclippy.toml
6 lines (6 loc) · 964 Bytes
/
clippy.toml
1
2
3
4
5
6
disallowed-methods = [
{ path = "rustc_span::def_id::DefId::is_local", reason = "treating a `DefId` as a `LocalDefId` is typically wrong because it doesn't consider that the `DefId` may correspond to a local extern spec. Use `MaybeExternId` or `ResolvedDefId` if possible" },
{ path = "rustc_span::def_id::DefId::expect_local", reason = "treating a `DefId` as a `LocalDefId` is typically wrong because it doesn't consider that the `DefId` may correspond to a local extern spec. Use `MaybeExternId` or `ResolvedDefId` if possible" },
{ path = "rustc_span::def_id::DefId::as_local", reason = "treating a `DefId` as a `LocalDefId` is typically wrong because it doesn't consider that the `DefId` may correspond to a local extern spec. Use `MaybeExternId` or `ResolvedDefId` if possible" },
{ path = "flux_middle::rty::AssocReftId::new", reason = "you should only create an `AssocReftId` if you can guarantee that the associated refinement exists" },
]