diff --git a/diesel/src/query_dsl/mod.rs b/diesel/src/query_dsl/mod.rs index cf30d40005ae..a8c7eab5b0a8 100644 --- a/diesel/src/query_dsl/mod.rs +++ b/diesel/src/query_dsl/mod.rs @@ -173,7 +173,7 @@ pub trait QueryDsl: Sized { /// Animal::new("spider", None, 8)]), distinct_animals); /// # } /// ``` - #[cfg(feature = "postgres")] + #[cfg(feature = "postgres_backend")] fn distinct_on(self, expr: Expr) -> DistinctOn where Self: methods::DistinctOnDsl,