Remove unused #[allow(...)] statements from compiler/
This commit is contained in:
parent
c6e4db620a
commit
12187b7f86
21 changed files with 2 additions and 28 deletions
|
@ -32,6 +32,7 @@ pub enum AutoTraitResult<A> {
|
|||
NegativeImpl,
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
impl<A> AutoTraitResult<A> {
|
||||
fn is_auto(&self) -> bool {
|
||||
match *self {
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
//!
|
||||
//! [rustc dev guide]: https://rustc-dev-guide.rust-lang.org/traits/resolution.html
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub mod auto_trait;
|
||||
mod chalk_fulfill;
|
||||
pub mod codegen;
|
||||
|
|
|
@ -2148,7 +2148,6 @@ trait TraitObligationExt<'tcx> {
|
|||
}
|
||||
|
||||
impl<'tcx> TraitObligationExt<'tcx> for TraitObligation<'tcx> {
|
||||
#[allow(unused_comparisons)]
|
||||
fn derived_cause(
|
||||
&self,
|
||||
variant: fn(DerivedObligationCause<'tcx>) -> ObligationCauseCode<'tcx>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue