Skip to content

Commit 43fc68e

Browse files
authored
Merge pull request #2313 from jieyouxu/rustc-pull
Rustc pull
2 parents 0ab049e + 2e635a1 commit 43fc68e

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

crates/hir-expand/src/inert_attr_macro.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -665,10 +665,6 @@ pub const INERT_ATTRIBUTES: &[BuiltinAttribute] = &[
665665
rustc_attr!(TEST, rustc_layout, Normal, template!(List: "field1, field2, ..."), WarnFollowing),
666666
rustc_attr!(TEST, rustc_abi, Normal, template!(List: "field1, field2, ..."), WarnFollowing),
667667
rustc_attr!(TEST, rustc_regions, Normal, template!(Word), WarnFollowing),
668-
rustc_attr!(
669-
TEST, rustc_error, Normal,
670-
template!(Word, List: "delayed_bug_from_inside_query"), WarnFollowingWordOnly
671-
),
672668
rustc_attr!(TEST, rustc_dump_user_args, Normal, template!(Word), WarnFollowing),
673669
rustc_attr!(TEST, rustc_evaluate_where_clauses, Normal, template!(Word), WarnFollowing),
674670
rustc_attr!(

crates/proc-macro-srv/src/dylib/version.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,15 +110,15 @@ pub fn read_version(obj: &object::File<'_>) -> io::Result<String> {
110110
));
111111
}
112112
let version = u32::from_be_bytes([dot_rustc[4], dot_rustc[5], dot_rustc[6], dot_rustc[7]]);
113-
// Last supported version is:
113+
// Last breaking version change is:
114114
// https://github.com/rust-lang/rust/commit/b94cfefc860715fb2adf72a6955423d384c69318
115115
let (mut metadata_portion, bytes_before_version) = match version {
116116
8 => {
117117
let len_bytes = &dot_rustc[8..12];
118118
let data_len = u32::from_be_bytes(len_bytes.try_into().unwrap()) as usize;
119119
(&dot_rustc[12..data_len + 12], 13)
120120
}
121-
9 => {
121+
9 | 10 => {
122122
let len_bytes = &dot_rustc[8..16];
123123
let data_len = u64::from_le_bytes(len_bytes.try_into().unwrap()) as usize;
124124
(&dot_rustc[16..data_len + 12], 17)

0 commit comments

Comments
 (0)