Skip to content

Commit

Permalink
Add some lints and allow(unknown_lints).
Browse files Browse the repository at this point in the history
The nightly CI test "cargo +nightly udeps --workspace" failed with:
    lint `private_in_public` has been removed: replaced with another
    group of lints, see RFC
    <https://rust-lang.github.io/rfcs/2145-type-privacy.html> for more
    information

We leave the old lint for the benefit of old rustc versions and add
the replacement lints, also adding #![allow(unknown_lints)].

Signed-off-by: Edmund Grimley Evans <[email protected]>
  • Loading branch information
egrimley-arm committed Sep 28, 2023
1 parent 0d79b23 commit c4e0901
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions psa-crypto-sys/build.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2020 Contributors to the Parsec project.
// SPDX-License-Identifier: Apache-2.0

#![allow(unknown_lints)]
#![deny(
nonstandard_style,
dead_code,
Expand All @@ -10,8 +11,12 @@
overflowing_literals,
path_statements,
patterns_in_fns_without_body,
private_bounds,
private_in_public,
private_interfaces,
renamed_and_removed_lints,
unconditional_recursion,
unnameable_types,
unused,
unused_allocation,
unused_comparisons,
Expand Down
5 changes: 5 additions & 0 deletions psa-crypto/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
//! This abstraction is built on top of the `psa-crypto-sys` crate.
#![cfg_attr(not(feature = "std"), no_std)]
#![allow(unknown_lints)]
#![deny(
nonstandard_style,
dead_code,
Expand All @@ -19,8 +20,12 @@
overflowing_literals,
path_statements,
patterns_in_fns_without_body,
private_bounds,
private_in_public,
private_interfaces,
renamed_and_removed_lints,
unconditional_recursion,
unnameable_types,
unused,
unused_allocation,
unused_comparisons,
Expand Down

0 comments on commit c4e0901

Please sign in to comment.