forked from coq/coq
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix coq#18193 don't trigger file deprecation transitively
Following coq#18193 we had the following behavior: in A.v Attributes deprecated(note="A deprecated"). in B.v Require Import A. (* warning as expected *) in C.v Require Import B. (* also a warning *) Whereas we don't want the warning in the last case. This triggers the warnings only when directly requiring a file. (cherry picked from commit 3cbcc49)
- Loading branch information
1 parent
237ec57
commit 082261b
Showing
5 changed files
with
25 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
File "./output/library_attributes_require_transitive.v", line 5, characters 0-37: | ||
Warning: Library File TestSuite.library_attributes is deprecated since XX YY. | ||
This library is useless. | ||
[deprecated-library-file-since-XX-YY,deprecated-since-XX-YY,deprecated-library-file,deprecated,default] |
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,5 @@ | ||
(* check that file deprecations are only printed on direct requirement *) | ||
Require TestSuite.library_attributes_require. | ||
(* but still printed on direct requirement even if the Require doesn't actually | ||
do anything (because file is already loaded) *) | ||
Require TestSuite.library_attributes. |
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 @@ | ||
../output/library_attributes_require.v |
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