-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gcc/rust/ChangeLog: * ast/rust-collect-lang-items.cc: Allow for the collection of EnumItem lang-items * ast/rust-collect-lang-items.h: ... * ast/rust-path.h: Add simplified method for checking if a path refers to a lang-item * expand/rust-macro-builtins-utility.cc: Add macro expansion for option_env with eager expansion * expand/rust-macro-builtins.cc: Add option_env to builtin list * expand/rust-macro-builtins.h: Add option_env handler to header file * ast/rust-ast-visitor.cc: Prevent AST passes from attempting to recurse into lang-item path's segments. * expand/rust-cfg-strip.cc: ... * resolve/rust-early-name-resolver.cc: ... * expand/rust-expand-visitor.cc: ... * hir/tree/rust-hir-path.h: Refactor HIR::PathInExpression to allow for lang items. * hir/tree/rust-hir-path.cc: ... * hir/rust-ast-lower.cc: Add hir translation for lang-item PathInExpressions. * resolve/rust-ast-resolve-path.cc: Add NR1.0 resolution support for lang-item paths. * typecheck/rust-hir-type-check-path.cc: Add type resolution support for lang-item paths. * typecheck/rust-hir-type-check-expr.h: Add prototype for helper function. * backend/rust-compile-resolve-path.cc: Add compile support for lang-item paths. * checks/lints/rust-lint-marklive.cc: Add if guard to prevent recursion into a lang-item path's empty segments. gcc/testsuite/ChangeLog: * rust/compile/macros/builtin/option_env1.rs: Add success case for option_env * rust/compile/macros/builtin/option_env2.rs: Add failure case for option_env * rust/execute/torture/builtin_macro_option_env.rs: Add execution case for option_env * rust/compile/nr2/exclude: Some issues with nr2 need to be resolved before allowing option_env with NR2.0. Signed-off-by: Liam Naddell <[email protected]>
- Loading branch information
1 parent
b87fd67
commit 455fff0
Showing
23 changed files
with
406 additions
and
20 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
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
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.