File tree Expand file tree Collapse file tree 7 files changed +8
-8
lines changed
Expand file tree Collapse file tree 7 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -232,6 +232,9 @@ pub(crate) fn create_config(
232232 rustc_lint:: builtin:: RENAMED_AND_REMOVED_LINTS . name. to_string( ) ,
233233 rustc_lint:: builtin:: UNKNOWN_LINTS . name. to_string( ) ,
234234 rustc_lint:: builtin:: UNEXPECTED_CFGS . name. to_string( ) ,
235+ rustc_lint:: builtin:: DUPLICATE_FEATURES . name. to_string( ) ,
236+ rustc_lint:: builtin:: UNUSED_FEATURES . name. to_string( ) ,
237+ rustc_lint:: builtin:: STABLE_FEATURES . name. to_string( ) ,
235238 // this lint is needed to support `#[expect]` attributes
236239 rustc_lint:: builtin:: UNFULFILLED_LINT_EXPECTATIONS . name. to_string( ) ,
237240 ] ;
Original file line number Diff line number Diff line change 33
44// https://github.com/rust-lang/rust/issues/20646
55#![ crate_name="issue_20646" ]
6- #![ feature( associated_types) ]
76
87extern crate issue_20646;
98
Original file line number Diff line number Diff line change 11#![ feature( doc_cfg) ]
2- #![ feature( target_feature, cfg_target_feature) ]
32
43//@ has doc_cfg/struct.Portable.html
54//@ !has - '//*[@id="main-content"]/*[@class="item-info"]/*[@class="stab portability"]' ''
Original file line number Diff line number Diff line change 11//@ only-64bit
22
3- #![ feature( const_transmute) ]
4-
53pub const ZST : & [ u8 ] = unsafe { std:: mem:: transmute ( 1usize ) } ;
64//~^ ERROR transmuting from 8-byte type to 16-byte type
Original file line number Diff line number Diff line change 11error[E0080]: transmuting from 8-byte type to 16-byte type: `usize` -> `&[u8]`
2- --> $DIR/issue-79494.rs:5 :33
2+ --> $DIR/issue-79494.rs:3 :33
33 |
44LL | pub const ZST: &[u8] = unsafe { std::mem::transmute(1usize) };
55 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `ZST` failed here
Original file line number Diff line number Diff line change 11#![ feature( rustdoc_internals) ]
2- #![ feature( rustdoc_internals) ] //~ ERROR
2+ #![ feature( rustdoc_internals) ] //~ DENY duplicate
33
44pub fn foo ( ) { }
Original file line number Diff line number Diff line change 1- error[E0636] : the feature `rustdoc_internals` has already been enabled
1+ error: the feature `rustdoc_internals` has already been enabled
22 --> $DIR/rustc-check-passes.rs:2:12
33 |
44LL | #![feature(rustdoc_internals)]
55 | ^^^^^^^^^^^^^^^^^
6+ |
7+ = note: `#[deny(duplicate_features)]` on by default
68
79error: aborting due to 1 previous error
810
9- For more information about this error, try `rustc --explain E0636`.
You can’t perform that action at this time.
0 commit comments