Skip to content

Commit 7b69de9

Browse files
authored
Merge branch 'rust-lang:master' into rwlock-downgrade
2 parents 34e255d + 2f26b2a commit 7b69de9

File tree

494 files changed

+5381
-3746
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

494 files changed

+5381
-3746
lines changed

Diff for: Cargo.lock

+9-9
Original file line numberDiff line numberDiff line change
@@ -986,14 +986,14 @@ dependencies = [
986986
]
987987

988988
[[package]]
989-
name = "derivative"
990-
version = "2.2.0"
989+
name = "derive-where"
990+
version = "1.2.7"
991991
source = "registry+https://github.com/rust-lang/crates.io-index"
992-
checksum = "fcc3dd5e9e9c0b295d6e1e4d811fb6f157d5ffd784b8d202fc62eac8035a770b"
992+
checksum = "62d671cc41a825ebabc75757b62d3d168c577f9149b2d49ece1dad1f72119d25"
993993
dependencies = [
994994
"proc-macro2",
995995
"quote",
996-
"syn 1.0.109",
996+
"syn 2.0.67",
997997
]
998998

999999
[[package]]
@@ -3882,7 +3882,6 @@ dependencies = [
38823882
"termcolor",
38833883
"termize",
38843884
"tracing",
3885-
"unicode-width",
38863885
"windows",
38873886
]
38883887

@@ -4249,7 +4248,7 @@ name = "rustc_middle"
42494248
version = "0.0.0"
42504249
dependencies = [
42514250
"bitflags 2.5.0",
4252-
"derivative",
4251+
"derive-where",
42534252
"either",
42544253
"field-offset",
42554254
"gsgdt",
@@ -4379,7 +4378,7 @@ name = "rustc_next_trait_solver"
43794378
version = "0.0.0"
43804379
dependencies = [
43814380
"bitflags 2.5.0",
4382-
"derivative",
4381+
"derive-where",
43834382
"rustc_ast_ir",
43844383
"rustc_data_structures",
43854384
"rustc_index",
@@ -4629,7 +4628,7 @@ dependencies = [
46294628
name = "rustc_span"
46304629
version = "0.0.0"
46314630
dependencies = [
4632-
"derivative",
4631+
"derive-where",
46334632
"indexmap",
46344633
"itoa",
46354634
"md-5",
@@ -4769,7 +4768,7 @@ name = "rustc_type_ir"
47694768
version = "0.0.0"
47704769
dependencies = [
47714770
"bitflags 2.5.0",
4772-
"derivative",
4771+
"derive-where",
47734772
"indexmap",
47744773
"rustc_ast_ir",
47754774
"rustc_data_structures",
@@ -5206,6 +5205,7 @@ name = "stable_mir"
52065205
version = "0.1.0-preview"
52075206
dependencies = [
52085207
"scoped-tls",
5208+
"serde",
52095209
]
52105210

52115211
[[package]]

Diff for: RELEASES.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Version 1.80 (2024-07-25)
1+
Version 1.80.0 (2024-07-25)
22
==========================
33

44
<a id="1.80-Language"></a>

Diff for: compiler/rustc_ast/src/ast.rs

+38-1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ use rustc_macros::{Decodable, Encodable, HashStable_Generic};
3636
use rustc_span::source_map::{respan, Spanned};
3737
use rustc_span::symbol::{kw, sym, Ident, Symbol};
3838
use rustc_span::{ErrorGuaranteed, Span, DUMMY_SP};
39+
use std::borrow::Cow;
3940
use std::cmp;
4041
use std::fmt;
4142
use std::mem;
@@ -2264,6 +2265,42 @@ bitflags::bitflags! {
22642265
}
22652266
}
22662267

2268+
impl InlineAsmOptions {
2269+
pub fn human_readable_names(&self) -> Vec<&'static str> {
2270+
let mut options = vec![];
2271+
2272+
if self.contains(InlineAsmOptions::PURE) {
2273+
options.push("pure");
2274+
}
2275+
if self.contains(InlineAsmOptions::NOMEM) {
2276+
options.push("nomem");
2277+
}
2278+
if self.contains(InlineAsmOptions::READONLY) {
2279+
options.push("readonly");
2280+
}
2281+
if self.contains(InlineAsmOptions::PRESERVES_FLAGS) {
2282+
options.push("preserves_flags");
2283+
}
2284+
if self.contains(InlineAsmOptions::NORETURN) {
2285+
options.push("noreturn");
2286+
}
2287+
if self.contains(InlineAsmOptions::NOSTACK) {
2288+
options.push("nostack");
2289+
}
2290+
if self.contains(InlineAsmOptions::ATT_SYNTAX) {
2291+
options.push("att_syntax");
2292+
}
2293+
if self.contains(InlineAsmOptions::RAW) {
2294+
options.push("raw");
2295+
}
2296+
if self.contains(InlineAsmOptions::MAY_UNWIND) {
2297+
options.push("may_unwind");
2298+
}
2299+
2300+
options
2301+
}
2302+
}
2303+
22672304
impl std::fmt::Debug for InlineAsmOptions {
22682305
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22692306
bitflags::parser::to_writer(self, f)
@@ -2272,7 +2309,7 @@ impl std::fmt::Debug for InlineAsmOptions {
22722309

22732310
#[derive(Clone, PartialEq, Encodable, Decodable, Debug, Hash, HashStable_Generic)]
22742311
pub enum InlineAsmTemplatePiece {
2275-
String(String),
2312+
String(Cow<'static, str>),
22762313
Placeholder { operand_idx: usize, modifier: Option<char>, span: Span },
22772314
}
22782315

0 commit comments

Comments
 (0)