Skip to content

Rollup of 7 pull requests #113490

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 25 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
28f3986
use Const::eval instead of QueryNormalize in error reporting
compiler-errors Jun 24, 2023
30c61ee
std: edit [T]::swap docs
marcospb19 Jun 26, 2023
2c33dfe
Don't sort strings right after we just sorted by types
compiler-errors Jun 27, 2023
13fcd8d
Add release notes for 1.71.0
cuviper Jun 28, 2023
281e072
Remove target feature note
cuviper Jun 29, 2023
43f4fa4
Move the TypeId change to Compatibility Notes
cuviper Jun 29, 2023
a30f797
Add a release note about recursive panics
cuviper Jun 29, 2023
76a7772
resolve typerelative ctors to adt
ericmarkmartin Jun 30, 2023
7dfb9ed
add regression test
ericmarkmartin Jul 1, 2023
b9e991a
add thir-print test
ericmarkmartin Jul 1, 2023
7bb9de8
Use consistent formatting in Readme
atouchet Jul 2, 2023
07b1912
refactor
ericmarkmartin Jul 2, 2023
afccc44
add mir dump test
ericmarkmartin Jul 5, 2023
261c023
rename constants in mir dump test
ericmarkmartin Jul 5, 2023
0ba1e0f
Fix standalone build
celinval Jun 20, 2023
a6632f1
Implement Stable for AssertMessage
celinval Jun 20, 2023
633c022
Implement a few more rvalue translation to smir
celinval Jun 13, 2023
50b4d1f
Migrate GUI colors test to original CSS color format
GuillaumeGomez Jul 8, 2023
f521d93
Rollup merge of #112717 - celinval:stable-mir-rvalue-1, r=oli-obk
matthiaskrgr Jul 8, 2023
6e20345
Rollup merge of #113005 - compiler-errors:dont-query-normalize, r=cjg…
matthiaskrgr Jul 8, 2023
f98b417
Rollup merge of #113064 - marcospb19:add-note-in-vec-swap-docs, r=Mar…
matthiaskrgr Jul 8, 2023
a0d91e8
Rollup merge of #113138 - cuviper:relnotes-1.71.0, r=Mark-Simulacrum
matthiaskrgr Jul 8, 2023
8c4a459
Rollup merge of #113217 - ericmarkmartin:lower-type-relative-ctor-to-…
matthiaskrgr Jul 8, 2023
5959038
Rollup merge of #113254 - atouchet:rd3, r=Mark-Simulacrum
matthiaskrgr Jul 8, 2023
34c6506
Rollup merge of #113482 - GuillaumeGomez:migrate-gui-test-color-20, r…
matthiaskrgr Jul 8, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix standalone build
Add extern declarations and optional dependencies to fix build done
directly via `cargo build`.
celinval committed Jul 7, 2023
commit 0ba1e0f0febcde615a70d271572c2054e14965dc
1 change: 1 addition & 0 deletions Cargo.lock
Original file line number Diff line number Diff line change
@@ -3949,6 +3949,7 @@ dependencies = [
"rustc_middle",
"rustc_span",
"scoped-tls",
"rustc_target",
"tracing",
]

6 changes: 5 additions & 1 deletion compiler/rustc_smir/Cargo.toml
Original file line number Diff line number Diff line change
@@ -4,14 +4,18 @@ version = "0.0.0"
edition = "2021"

[dependencies]
rustc_hir = { path = "../rustc_hir" }
# Use optional dependencies for rustc_* in order to support building this crate separately.
rustc_hir = { path = "../rustc_hir", optional = true }
rustc_middle = { path = "../rustc_middle", optional = true }
rustc_span = { path = "../rustc_span", optional = true }
rustc_target = { path = "../rustc_target", optional = true }
tracing = "0.1"
scoped-tls = "1.0"

[features]
default = [
"rustc_hir",
"rustc_middle",
"rustc_span",
"rustc_target",
]
2 changes: 1 addition & 1 deletion compiler/rustc_smir/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "nightly-2023-02-28"
channel = "nightly-2023-06-14"
components = [ "rustfmt", "rustc-dev" ]
10 changes: 10 additions & 0 deletions compiler/rustc_smir/src/lib.rs
Original file line number Diff line number Diff line change
@@ -14,6 +14,16 @@
#![feature(local_key_cell_methods)]
#![feature(ptr_metadata)]

// Declare extern rustc_* crates to enable building this crate separately from the compiler.
#[cfg(not(feature = "default"))]
extern crate rustc_hir;
#[cfg(not(feature = "default"))]
extern crate rustc_middle;
#[cfg(not(feature = "default"))]
extern crate rustc_span;
#[cfg(not(feature = "default"))]
extern crate rustc_target;

pub mod rustc_internal;
pub mod stable_mir;