Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
5014353
Don't attempt to export compiler-builtins symbols from rust dylibs
bjorn3 Feb 27, 2025
d73479e
Fix lint name in unused linker_messages warning
bjorn3 Feb 27, 2025
61e550a
uefi: helpers: Add DevicePathNode abstractions
Ayush1325 Feb 22, 2025
6f214c5
Fix pluralization of tests
Kobzol Mar 13, 2025
208cef4
Add note about the experimental status
Kobzol Mar 13, 2025
2192d5c
Print the compared SHAs
Kobzol Mar 13, 2025
7ed913b
Add cache for downloading job metrics
Kobzol Mar 13, 2025
5a7f227
Collapse report in `<details>`
Kobzol Mar 13, 2025
d5d633d
Group diffs by tests, rather than job groups
Kobzol Mar 13, 2025
f981a0a
Do not print doctest diffs in the report
Kobzol Mar 13, 2025
c437178
Create libgccjit.so.0 alias also for CI-downloaded GCC
Kobzol Mar 12, 2025
955aef5
Change GCC build flags
Kobzol Mar 12, 2025
3fc7ca0
Use GCC for building GCC
Kobzol Mar 13, 2025
34272a5
Do not overwrite original `config.toml` in `opt-dist`
Kobzol Mar 13, 2025
38fc116
Store libgccjit.so in a lib directory in the GCC CI tarball
Kobzol Mar 13, 2025
4c32adb
Deny impls for BikeshedGuaranteedNoDrop
compiler-errors Mar 14, 2025
90bf2b1
Show valid crate types when the user passes unknown `--crate-type` value
malezjaa Dec 24, 2024
6ef465b
Add clarification about doctests
Kobzol Mar 14, 2025
bf095f6
Ensure that GCC is not built using Clang, as it misbehaves
Kobzol Mar 14, 2025
52b9169
Rollup merge of #134720 - malezjaa:feat/crate-type-valid-values, r=ji…
jhpratt Mar 14, 2025
a95e9ef
Rollup merge of #137424 - Ayush1325:uefi-path-node, r=nicholasbishop,…
jhpratt Mar 14, 2025
693bada
Rollup merge of #137736 - bjorn3:compiler_builtins_export_fix, r=petr…
jhpratt Mar 14, 2025
e7a3465
Rollup merge of #138451 - Kobzol:gcc-ci-build-gcc, r=GuillaumeGomez
jhpratt Mar 14, 2025
3ec4d0e
Rollup merge of #138454 - Kobzol:post-merge-workflow-fixes, r=jieyouxu
jhpratt Mar 14, 2025
98c85a3
Rollup merge of #138477 - compiler-errors:deny-bikeshed-guaranteed-no…
jhpratt Mar 14, 2025
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
7 changes: 6 additions & 1 deletion compiler/rustc_session/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2709,7 +2709,12 @@ pub fn parse_crate_types_from_list(list_list: Vec<String>) -> Result<Vec<CrateTy
"cdylib" => CrateType::Cdylib,
"bin" => CrateType::Executable,
"proc-macro" => CrateType::ProcMacro,
_ => return Err(format!("unknown crate type: `{part}`")),
_ => {
return Err(format!(
"unknown crate type: `{part}`, expected one of: \
`lib`, `rlib`, `staticlib`, `dylib`, `cdylib`, `bin`, `proc-macro`",
));
}
};
if !crate_types.contains(&new_part) {
crate_types.push(new_part)
Expand Down
4 changes: 4 additions & 0 deletions tests/ui/crate_type_flag.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
//@ compile-flags: --crate-type dynlib
//@ error-pattern: unknown crate type: `dynlib`, expected one of: `lib`, `rlib`, `staticlib`, `dylib`, `cdylib`, `bin`, `proc-macro`

fn main() {}
2 changes: 2 additions & 0 deletions tests/ui/crate_type_flag.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
error: unknown crate type: `dynlib`, expected one of: `lib`, `rlib`, `staticlib`, `dylib`, `cdylib`, `bin`, `proc-macro`

Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
error: unknown crate type: ``
error: unknown crate type: ``, expected one of: `lib`, `rlib`, `staticlib`, `dylib`, `cdylib`, `bin`, `proc-macro`

Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
error: unknown crate type: `proc_macro`
error: unknown crate type: `proc_macro`, expected one of: `lib`, `rlib`, `staticlib`, `dylib`, `cdylib`, `bin`, `proc-macro`

6 changes: 3 additions & 3 deletions tests/ui/invalid-compile-flags/crate-type-flag.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,16 @@
// `proc-macro` is accepted, but `proc_macro` is not.
//@ revisions: proc_underscore_macro
//@[proc_underscore_macro] compile-flags: --crate-type=proc_macro
//@[proc_underscore_macro] error-pattern: "unknown crate type: `proc_macro`"
//@[proc_underscore_macro] error-pattern: unknown crate type: `proc_macro`

// Empty `--crate-type` not accepted.
//@ revisions: empty_crate_type
//@[empty_crate_type] compile-flags: --crate-type=
//@[empty_crate_type] error-pattern: "unknown crate type: ``"
//@[empty_crate_type] error-pattern: unknown crate type: ``

// Random unknown crate type. Also check that we can handle non-ASCII.
//@ revisions: unknown
//@[unknown] compile-flags: --crate-type=🤡
//@[unknown] error-pattern: "unknown crate type: `🤡`"
//@[unknown] error-pattern: unknown crate type: `🤡`

fn main() {}
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
error: unknown crate type: `🤡`
error: unknown crate type: `🤡`, expected one of: `lib`, `rlib`, `staticlib`, `dylib`, `cdylib`, `bin`, `proc-macro`