File tree 2 files changed +22
-2
lines changed
2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -6,10 +6,21 @@ use dylint_internal::{
6
6
} ;
7
7
use tempfile:: tempdir;
8
8
9
- // smoelius: The channel date is one day later than the `rustc --version` date.
9
+ // smoelius: The channel date is one day later than the `rustc --version` date. For example, suppose
10
+ // the code contains:
11
+ // ```
12
+ // #[rustversion::since(2024-03-29)] ...
13
+ // ```
14
+ // Then the boundary should be:
15
+ // ```
16
+ // ("2024-03-29", "2024-03-30"),
17
+ // ```
10
18
// smoelius: Put recent boundaries first, since they're more likely to cause problems.
11
19
// smoelius: The relevant PRs and merge commits appear before each boundary.
12
20
const BOUNDARIES : & [ ( & str , & str ) ] = & [
21
+ // https://github.com/rust-lang/rust/pull/122450
22
+ // https://github.com/rust-lang/rust/commit/685927aae69657b46323cffbeb0062835bd7fa2b
23
+ ( "2024-03-29" , "2024-03-30" ) ,
13
24
// https://github.com/rust-lang/rust/pull/121780
14
25
// https://github.com/rust-lang/rust/commit/1547c076bfec8abb819d6a81e1e4095d267bd5b4
15
26
// https://github.com/rust-lang/rust/pull/121969
Original file line number Diff line number Diff line change @@ -671,11 +671,20 @@ fn local_crate_source_file(sess: &rustc_session::Session) -> Option<PathBuf> {
671
671
// smoelius: Relevant PR and merge commit:
672
672
// - https://github.com/rust-lang/rust/pull/106810
673
673
// - https://github.com/rust-lang/rust/commit/65d2f2a5f9c323c88d1068e8e90d0b47a20d491c
674
- #[ rustversion:: since( 2023 -01 -19 ) ]
674
+ #[ rustversion:: all ( since( 2023 -01 -19 ) , before ( 2024 - 03 - 29 ) ) ]
675
675
fn local_crate_source_file ( sess : & rustc_session:: Session ) -> Option < PathBuf > {
676
676
sess. local_crate_source_file ( )
677
677
}
678
678
679
+ // smoelius: Relevant PR and merge commit:
680
+ // - https://github.com/rust-lang/rust/pull/122450
681
+ // - https://github.com/rust-lang/rust/commit/685927aae69657b46323cffbeb0062835bd7fa2b
682
+ #[ rustversion:: since( 2024 -03 -29 ) ]
683
+ fn local_crate_source_file ( sess : & rustc_session:: Session ) -> Option < PathBuf > {
684
+ sess. local_crate_source_file ( )
685
+ . and_then ( rustc_span:: RealFileName :: into_local_path)
686
+ }
687
+
679
688
#[ rustversion:: before( 2023 -06 -28 ) ]
680
689
fn early_error ( msg : String ) -> ! {
681
690
rustc_session:: early_error (
You can’t perform that action at this time.
0 commit comments