We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6114d41 commit 4af5924Copy full SHA for 4af5924
src/library/tools/R/check.R
@@ -3934,13 +3934,14 @@ add_dummies <- function(dir, Log)
3934
lines <- readLines(InstLog, warn = FALSE)
3935
l1 <- grep("(cargo build| Compiling )", lines)
3936
if(!length(l1)) return(NA)
3937
+ l2 <- grep(" Compiling ", lines)
3938
checkingLog(Log, "Rust compilation")
3939
msg <- character(); OK <- TRUE
- if(any(grep("Downloading crates ...", lines))) {
3940
+ if(any(grep("Downloading crates ...", lines, fixed = TRUE))) {
3941
OK <- FALSE
3942
msg <- c(msg, "Downloads Rust crates")
3943
}
- lines <- lines[1:l1[1L]]
3944
+ lines <- if(length(l2)) lines[1:l2[1L]] else lines[1:l1[1L]]
3945
patt <- "rustc *[[:digit:]]+[].][[:digit:]]"
3946
ans <- any(grepl(patt, lines, ignore.case = TRUE))
3947
if(!ans) {
0 commit comments