Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid visiting nonexistant function parameter types during nr2.0 #3168

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Sep 30, 2024

  1. Improve handline of SelfParam with missing type

    gcc/rust/ChangeLog:
    
    	* ast/rust-ast-visitor.h
    	(DefaultASTVisitor::visit): Add overload for tl::optional<T &>.
    	* ast/rust-item.h
    	(SelfParam::get_type): Return tl::optional<Type &>.
    
    	* ast/rust-ast-collector.cc
    	(TokenCollector::visit): Handle changed return type of
    	SelfParam::get_type.
    	* expand/rust-cfg-strip.cc
    	(CfgStrip::visit): Likewise.
    	* hir/rust-ast-lower-base.cc
    	(ASTLoweringBase::lower_self): Likewise.
    	* resolve/rust-ast-resolve-item.cc
    	(ResolveTraitItems::visit): Likewise.
    	(ResolveItem::visit): Likewise.
    	* resolve/rust-ast-resolve-stmt.h
    	(ResolveStmt::visit): Likewise.
    	* resolve/rust-default-resolver.cc
    	(DefaultResolver::visit): Likewise, and properly handle empty
    	optional.
    
    gcc/testsuite/ChangeLog:
    
    	* rust/compile/nr2/exclude: Remove entries.
    
    Signed-off-by: Owen Avery <[email protected]>
    powerboat9 committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    21994e6 View commit details
    Browse the repository at this point in the history