forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#133703 - matthiaskrgr:rollup-fwlw0mc, r=matth…
…iaskrgr Rollup of 7 pull requests Successful merges: - rust-lang#132974 (Properly pass linker arguments that contain commas) - rust-lang#133403 (Make `adjust_fulfillment_errors` work with `HostEffectPredicate` and `const_conditions`) - rust-lang#133482 (Only error raw lifetime followed by `\'` in edition 2021+) - rust-lang#133595 (Do not emit `missing_doc_code_examples` rustdoc lint on module and a few other items) - rust-lang#133669 (Move some functions out of const_swap feature gate) - rust-lang#133674 (Fix chaining `carrying_add`s) - rust-lang#133691 (Check let source before suggesting annotation) r? `@ghost` `@rustbot` modify labels: rollup
- Loading branch information
Showing
69 changed files
with
704 additions
and
333 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
use super::*; | ||
|
||
#[test] | ||
fn test_rpaths_to_args() { | ||
let mut cmd = Command::new("foo"); | ||
convert_link_args_to_cc_args(&mut cmd, &["-rpath", "path1", "-rpath", "path2"]); | ||
assert_eq!(cmd.get_args(), [OsStr::new("-Wl,-rpath,path1,-rpath,path2")]); | ||
} | ||
|
||
#[test] | ||
fn test_xlinker() { | ||
let mut cmd = Command::new("foo"); | ||
convert_link_args_to_cc_args(&mut cmd, &[ | ||
"arg1", | ||
"arg2", | ||
"arg3,with,comma", | ||
"arg4,with,comma", | ||
"arg5", | ||
"arg6,with,comma", | ||
]); | ||
|
||
assert_eq!(cmd.get_args(), [ | ||
OsStr::new("-Wl,arg1,arg2"), | ||
OsStr::new("-Xlinker"), | ||
OsStr::new("arg3,with,comma"), | ||
OsStr::new("-Xlinker"), | ||
OsStr::new("arg4,with,comma"), | ||
OsStr::new("-Wl,arg5"), | ||
OsStr::new("-Xlinker"), | ||
OsStr::new("arg6,with,comma"), | ||
]); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.