Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
a18f043
Add regression test
oli-obk Apr 23, 2024
c24148e
Allow coercing functions whose signature differs in opaque types in t…
oli-obk Apr 23, 2024
72968e5
Rename `FrameworkOnlyWindows` to `RawDylibOnlyWindows`
tbu- May 22, 2024
711338b
rustc: Use `tcx.used_crates(())` more
petrochenkov May 10, 2024
8369dbb
Use correct param-env in MissingCopyImplementations
compiler-errors May 22, 2024
c24d1c7
Rewrite `core-no-oom-handling` as rmake.rs
Oneirical May 22, 2024
d4e5426
rewrite and rename `issue-24445` to rmake
Oneirical May 22, 2024
ae49dbe
Cleanup: Fix up some diagnostics
fmease May 17, 2024
1f17e27
Rewrite and rename `issue-38237` to rmake
Oneirical May 22, 2024
3ac1a80
Remove unneeded string conversion
tbu- May 23, 2024
301c8de
Add regression tests
oli-obk May 23, 2024
4cf34cb
Allow const eval failures if the cause is a type layout issue
oli-obk Apr 29, 2024
abcf400
Rollup merge of #124297 - oli-obk:define_opaque_types13, r=jackh726
matthiaskrgr May 23, 2024
eb6b35b
Rollup merge of #124516 - oli-obk:taint_const_eval, r=RalfJung
matthiaskrgr May 23, 2024
eda4a35
Rollup merge of #124976 - petrochenkov:usedcrates, r=oli-obk
matthiaskrgr May 23, 2024
337987b
Rollup merge of #125210 - fmease:fix-up-some-diags, r=davidtwco
matthiaskrgr May 23, 2024
c9e457d
Rollup merge of #125409 - tbu-:pr_raw_dylib_only_windows, r=lcnr
matthiaskrgr May 23, 2024
e713b2a
Rollup merge of #125416 - compiler-errors:param-env-missing-copy, r=lcnr
matthiaskrgr May 23, 2024
eb1b9b0
Rollup merge of #125421 - Oneirical:bundle-them-yet-again, r=jieyouxu
matthiaskrgr May 23, 2024
cf92f4c
Rollup merge of #125438 - tbu-:pr_rm_to_string_lossy, r=jieyouxu
matthiaskrgr May 23, 2024
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
8 changes: 4 additions & 4 deletions compiler/rustc_codegen_ssa/src/back/link.rs
Original file line number Diff line number Diff line change
Expand Up @@ -786,12 +786,12 @@ fn link_natively(
if matches!(flavor, LinkerFlavor::Gnu(Cc::Yes, _))
&& unknown_arg_regex.is_match(&out)
&& out.contains("-no-pie")
&& cmd.get_args().iter().any(|e| e.to_string_lossy() == "-no-pie")
&& cmd.get_args().iter().any(|e| e == "-no-pie")
{
info!("linker output: {:?}", out);
warn!("Linker does not support -no-pie command line option. Retrying without.");
for arg in cmd.take_args() {
if arg.to_string_lossy() != "-no-pie" {
if arg != "-no-pie" {
cmd.arg(arg);
}
}
Expand Down Expand Up @@ -825,7 +825,7 @@ fn link_natively(
if matches!(flavor, LinkerFlavor::Gnu(Cc::Yes, _))
&& unknown_arg_regex.is_match(&out)
&& (out.contains("-static-pie") || out.contains("--no-dynamic-linker"))
&& cmd.get_args().iter().any(|e| e.to_string_lossy() == "-static-pie")
&& cmd.get_args().iter().any(|e| e == "-static-pie")
{
info!("linker output: {:?}", out);
warn!(
Expand Down Expand Up @@ -864,7 +864,7 @@ fn link_natively(
assert!(pre_objects_static.is_empty() || !pre_objects_static_pie.is_empty());
assert!(post_objects_static.is_empty() || !post_objects_static_pie.is_empty());
for arg in cmd.take_args() {
if arg.to_string_lossy() == "-static-pie" {
if arg == "-static-pie" {
// Replace the output kind.
cmd.arg("-static");
} else if pre_objects_static_pie.contains(&arg) {
Expand Down
2 changes: 1 addition & 1 deletion src/tools/tidy/src/style.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ pub fn is_in(full_path: &Path, parent_folder_to_find: &str, folder_to_find: &str
if parent.file_name().map_or_else(
|| false,
|f| {
f.to_string_lossy() == folder_to_find
f == folder_to_find
&& parent
.parent()
.and_then(|f| f.file_name())
Expand Down