From 490082151bb107ec0d7d34f4cf01b7be7a439b59 Mon Sep 17 00:00:00 2001 From: "Michael B. Gale" Date: Wed, 24 Jul 2024 11:49:55 +0100 Subject: [PATCH] Go: Update frontend error messages for Go 1.23 --- .../diagnostics/CONSISTENCY/UnexpectedFrontendErrors.expected | 2 +- .../go/Files/CONSISTENCY/UnexpectedFrontendErrors.expected | 2 +- .../Diagnostics/CONSISTENCY/UnexpectedFrontendErrors.expected | 2 +- go/ql/test/query-tests/Diagnostics/ExtractionErrors.expected | 2 +- .../Summary/CONSISTENCY/UnexpectedFrontendErrors.expected | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/go/ql/test/extractor-tests/diagnostics/CONSISTENCY/UnexpectedFrontendErrors.expected b/go/ql/test/extractor-tests/diagnostics/CONSISTENCY/UnexpectedFrontendErrors.expected index aa526b3e75054..abe30bd008800 100644 --- a/go/ql/test/extractor-tests/diagnostics/CONSISTENCY/UnexpectedFrontendErrors.expected +++ b/go/ql/test/extractor-tests/diagnostics/CONSISTENCY/UnexpectedFrontendErrors.expected @@ -1,4 +1,4 @@ -| -:0:0:0:0 | package ; expected main | +| -:0:0:0:0 | package ; expected package main | | broken2/test1.go:4:2:4:2 | undefined: fmt | | broken2/test1.go:5:2:5:2 | undefined: fmt | | broken2/test1.go:5:14:5:14 | undefined: a | diff --git a/go/ql/test/library-tests/semmle/go/Files/CONSISTENCY/UnexpectedFrontendErrors.expected b/go/ql/test/library-tests/semmle/go/Files/CONSISTENCY/UnexpectedFrontendErrors.expected index 6a47139fb8ddb..e63bda23e9445 100644 --- a/go/ql/test/library-tests/semmle/go/Files/CONSISTENCY/UnexpectedFrontendErrors.expected +++ b/go/ql/test/library-tests/semmle/go/Files/CONSISTENCY/UnexpectedFrontendErrors.expected @@ -1,4 +1,4 @@ -| -:0:0:0:0 | package ; expected nonexistent | +| -:0:0:0:0 | package ; expected package nonexistent | | vendor/github.com/github/nonexistent/bad.go:1:57:1:57 | expected ';', found 'EOF' | | vendor/github.com/github/nonexistent/bad.go:1:57:1:57 | expected 'IDENT', found 'EOF' | | vendor/github.com/github/nonexistent/bad.go:1:57:1:57 | expected 'package', found 'EOF' | diff --git a/go/ql/test/query-tests/Diagnostics/CONSISTENCY/UnexpectedFrontendErrors.expected b/go/ql/test/query-tests/Diagnostics/CONSISTENCY/UnexpectedFrontendErrors.expected index 909c0a71eded4..19c2ad21db8ca 100644 --- a/go/ql/test/query-tests/Diagnostics/CONSISTENCY/UnexpectedFrontendErrors.expected +++ b/go/ql/test/query-tests/Diagnostics/CONSISTENCY/UnexpectedFrontendErrors.expected @@ -1,5 +1,5 @@ | -:0:0:0:0 | malformed import path "github.com/github/codeql-go/ql/test/query-tests/Diagnostics/invalid{": invalid char '{' | -| -:0:0:0:0 | package ; expected main | +| -:0:0:0:0 | package ; expected package main | | bad.go:3:1:3:1 | expected 'package', found avvu | | bad.go:3:1:3:1 | expected 'package', found avvu | | bad.go:3:5:3:5 | expected 'IDENT', found newline | diff --git a/go/ql/test/query-tests/Diagnostics/ExtractionErrors.expected b/go/ql/test/query-tests/Diagnostics/ExtractionErrors.expected index c7695f79dcab3..b3a9e8631f081 100644 --- a/go/ql/test/query-tests/Diagnostics/ExtractionErrors.expected +++ b/go/ql/test/query-tests/Diagnostics/ExtractionErrors.expected @@ -4,4 +4,4 @@ | Extraction failed with error expected 'IDENT', found newline | 2 | | Extraction failed with error expected 'package', found avvu | 2 | | Extraction failed with error malformed import path "github.com/github/codeql-go/ql/test/query-tests/Diagnostics/invalid{": invalid char '{' | 2 | -| Extraction failed with error package ; expected main | 2 | +| Extraction failed with error package ; expected package main | 2 | diff --git a/go/ql/test/query-tests/Summary/CONSISTENCY/UnexpectedFrontendErrors.expected b/go/ql/test/query-tests/Summary/CONSISTENCY/UnexpectedFrontendErrors.expected index d4dff7b992f51..b0969d1a22441 100644 --- a/go/ql/test/query-tests/Summary/CONSISTENCY/UnexpectedFrontendErrors.expected +++ b/go/ql/test/query-tests/Summary/CONSISTENCY/UnexpectedFrontendErrors.expected @@ -1,4 +1,4 @@ -| -:0:0:0:0 | package ; expected main | +| -:0:0:0:0 | package ; expected package main | | empty-file.go:1:1:1:1 | expected ';', found 'EOF' | | empty-file.go:1:1:1:1 | expected 'IDENT', found 'EOF' | | empty-file.go:1:1:1:1 | expected 'package', found 'EOF' |