Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
161 commits
Select commit Hold shift + click to select a range
de97b7f
nr2.0: late: Correctly initialize funny_error member
CohenArthur Apr 28, 2025
33769e4
backend: Refactor struct pattern compilation
CohenArthur Apr 16, 2025
e0686d7
backend: Compile struct rebinding patterns
CohenArthur Apr 16, 2025
edf965d
ast: builder: Allow building struct ident patterns
CohenArthur Apr 16, 2025
ed8f4db
derive(PartialEq): Allow deriving enum structs
CohenArthur Apr 16, 2025
20ebc5e
derive(PartialEq): Fix raw strings in test
CohenArthur Apr 24, 2025
8f959d5
gccrs: Emit error diagnostic for bad impl type usage
philberty May 5, 2025
3e203b5
gccrs: desugar APIT impl traits
philberty Apr 30, 2025
8852eaf
Improve canonical path handling for impl items
powerboat9 May 3, 2025
593c3f3
Improve struct pattern compilation
powerboat9 May 1, 2025
cd7756f
nr2.0: Adjust enum item visitors
powerboat9 May 2, 2025
ba79250
gccrs: Prevent passing generic arguments to impl traits in argument p…
philberty May 7, 2025
149f806
gccrs: fix ICE on empty constexpr loops
tommyscholly May 8, 2025
5fc78b4
ast: collector: visit InlineAsm node during ast dump
0xn4utilus May 7, 2025
3e0d11a
nr2.0: Adjust resolution of impl items
powerboat9 Apr 25, 2025
fff49cc
gccrs: Adapt attribute lang hook and do some cleanup
dkm May 9, 2025
ee29515
gccrs: We cant clone types as it will dup the node-id
philberty May 11, 2025
2702cd5
nr2.0: Fix borrow checking
powerboat9 May 9, 2025
bbc9214
Fix test same_field_name.rs
powerboat9 May 10, 2025
0611a44
Fix Attr metavariable binding
powerboat9 May 10, 2025
9a26645
gccrs: remove unused file
dkm May 13, 2025
fa6751b
gccrs: Reindent using last clang-format configuration
dkm May 10, 2025
d53c3a2
gccrs: remove now useless clang-format comments
dkm May 13, 2025
73f625f
Small improvements to DefaultASTVisitor and nr2.0
powerboat9 May 8, 2025
ed0013d
Rust: Move 'libformat_parser' build into the GCC build directory
tschwinge Feb 28, 2024
685bc4d
Remove rvalue reference binding
powerboat9 May 13, 2025
df9e423
gccrs: Fix NR2 ICE in visit_attributes
tommyscholly May 12, 2025
8a0bb51
nr2.0: Fix test builtin_abort.rs
powerboat9 May 15, 2025
ab26020
nr2.0: Fix some paths in test files
powerboat9 May 14, 2025
1982968
Revert 10-second timeout for each test
ptdatta Jan 21, 2023
eac67a2
gccrs: refactor default infer vars to be its own function
philberty May 19, 2025
484b02c
gccrs: Remove unneeded clones untill we have an arena allocator for t…
philberty May 19, 2025
8eba525
gccrs: Fix non canonical type bug with tuples
philberty May 26, 2025
a34ff4c
gccrs: Initial support for Return Position Impl Trait
philberty May 19, 2025
c02a814
nr2.0: Fix IfLet pattern handling
powerboat9 May 15, 2025
0bd4502
gccrs: Always emit the error highest in the type hierarchy
philberty May 20, 2025
4ebafba
ast: Add ConstBlock and AnonConst nodes
CohenArthur Apr 9, 2025
e4e6cc0
parser: Add base for parsing const blocks
CohenArthur Apr 15, 2025
a537f01
hir: Add const blocks
CohenArthur Apr 15, 2025
d5adb01
const-block: Add testcase
CohenArthur Apr 15, 2025
cdec672
Make ConstantItem use Identifier
powerboat9 Jun 4, 2025
4d376ec
parser: fix ICE std::out_of_range with path attrs to nonexisting path
vishruth-thimmaiah Apr 22, 2025
3b0e6a8
nr2.0: Improve visibility path handling
powerboat9 May 9, 2025
f8689e9
nr2.0: Catch Self in impl block self types
powerboat9 May 16, 2025
b1b77f6
fix: ICE when parsing unterminated raw byte strings
vishruth-thimmaiah May 28, 2025
5566c89
gccrs: Lower IdentifierPattern's to_bind to HIR
Polygonalr Jun 7, 2025
ca5cf9d
nr2.0: Separate out canonical path handling
powerboat9 May 2, 2025
49ee109
Add new function ClosureExpr::get_definition_expr
powerboat9 Jun 9, 2025
aa5b7df
nr2.0: Improve StructPatternFieldIdent handling
powerboat9 May 23, 2025
4ed0c92
nr2.0: Adjust pub_restricted tests
powerboat9 May 18, 2025
c110aad
nr2.0: Improve handling of single segment paths
powerboat9 Mar 29, 2025
064b37d
nr2.0: Fix closure parameter scoping
powerboat9 May 15, 2025
0bfcbc2
gccrs: Support compilation of IdentifierPattern's subpatterns
Polygonalr Jun 7, 2025
dd4592d
gccrs: Rename IdentifierPattern's to_bind to subpattern
Polygonalr Jun 9, 2025
9f90da0
nr2.0: Adjust alternate identifier handling
powerboat9 May 23, 2025
e733c00
gccrs: Fix bad type canonicalization on ARRAY_TYPES
philberty May 27, 2025
4713b9e
gccrs: Fix bug in query type stopping PartialOrd
philberty Jun 14, 2025
e38b274
rib: Add all kinds of Ribs to pretty-printing
CohenArthur May 27, 2025
69b3ebc
derive: chore: Add missing override qualifiers
CohenArthur Mar 7, 2025
8bf353b
derive(Ord, PartialOrd): Add base for deriving them.
CohenArthur Mar 7, 2025
80ba197
derive: Add const generics when deriving impls
CohenArthur Apr 9, 2025
cb881a1
builder: Add match_case() function and new block() one
CohenArthur Apr 18, 2025
4699bbd
derive: Add common comparison derive class
CohenArthur Apr 18, 2025
7c47bc7
derive(PartialEq): Use that common class
CohenArthur Apr 18, 2025
c8001dc
derive(Ord, PartialOrd): Implement proper recursive match logic
CohenArthur Apr 18, 2025
a1a39a7
derive(PartialEq): chore: Refactor using new SelfOther APIs
CohenArthur Apr 18, 2025
2c05206
derive(Ord, PartialOrd): Handle tuples properly
CohenArthur Apr 18, 2025
a9b48cd
builder: Add Builder::discriminant_value
CohenArthur Apr 22, 2025
f8d0221
derive(Hash): Use new Builder API
CohenArthur Apr 22, 2025
dae220c
derive(Ord): Add handling for ordering of discriminant values
CohenArthur Apr 22, 2025
bf5f185
ast-builder: Make location public
CohenArthur Apr 22, 2025
8868af7
derive-cmp: Add EnumMatchBuilder class
CohenArthur Apr 22, 2025
190234a
derive(PartialEq): Implement proper discriminant comparison
CohenArthur Apr 22, 2025
7f255d5
[NEEDS TEST] derive(Ord, PartialOrd): Finish implementation
CohenArthur Apr 22, 2025
3693622
derive(Ord): Fix condition for matching on Option::Some instead
CohenArthur Apr 23, 2025
25c0aff
derive(Ord): Fix cmp call to use references instead of values
CohenArthur Apr 28, 2025
f370a71
derive(Ord): Handle unit structs properly
CohenArthur May 27, 2025
5ced019
derive(Ord, Eq): Use different node IDs for variant paths
CohenArthur Jun 10, 2025
c201a32
chore: Fix formatting
CohenArthur Jun 11, 2025
f486b30
gccrs: Improve HIR dumps for patterns
Polygonalr Jun 15, 2025
bb7cb58
nr2.0: Adjust lookup of associated items
powerboat9 May 9, 2025
6a7f7d1
gccrs: Rename get_pattern_to_bind to get_subpattern
Polygonalr Jun 11, 2025
871cd1d
gccrs: Implement name resolution for IdentifierPattern's subpattern
Polygonalr Jun 13, 2025
74a6644
gccrs: Implement compilation of IdentifierPattern's subpattern bindings
Polygonalr Jun 13, 2025
8e5099c
nr2.0: Update IdentifierPattern's subpattern name resolution
Polygonalr Jun 16, 2025
abeb90e
gccrs: Fix issues around PartialEq Eq Ord Partial Ord
philberty Jun 17, 2025
c2c3b8f
Fix execute testsuite
powerboat9 Jun 17, 2025
5b8b739
Adjust external crate lowering and type checking
powerboat9 Jun 16, 2025
166e802
gccrs: Fix ICE when constant is missing and expression
philberty Jun 18, 2025
8411243
gccrs: Add test case showing RPIT working to close issue
philberty Jun 19, 2025
7da95ee
Move AST desugaring into expansion phase
powerboat9 May 24, 2025
1a889f9
gccrs: Ensure we look at the bounds behind a reference
philberty Jun 20, 2025
8aea945
gccrs: Fix cyclical projection to placeholder
philberty Jun 21, 2025
3672458
gccrs: Cleanup and refactor method resolution
philberty Jun 17, 2025
4ec1073
gccrs: Refactor marker builtin trait assembly
philberty Jun 21, 2025
f1914ed
gccrs: Fix bug with bad type bindings not looking at super traits
philberty Jun 21, 2025
83c2110
gccrs: Fix silly ordering bug in trait reference resolution
philberty Jun 20, 2025
8701f5a
gccrs: Add unify rules for fnptr and closures
philberty Jun 21, 2025
0db8eb1
nr2.0: Fix resolution of constant items
powerboat9 Jun 20, 2025
8064f13
gccrs: Fix TupleStructPattern compilation throwing error
Polygonalr Jun 22, 2025
e807ca7
gccrs: check for invalid const calls during code-gen
philberty Jun 23, 2025
47f42f7
gccrs: Fix bug with non compiled const decl
philberty Jun 23, 2025
0f6955f
Fix scan-assembler regexp in recurse2.rs
powerboat9 Jun 23, 2025
29ce427
gccrs: Add getter for outer attributions
sakupan102 Jun 24, 2025
058abfc
gccrs: Add getter for non const lifetime object
sakupan102 Jun 24, 2025
02f65e9
Create Rust::GGC::Ident
powerboat9 Jun 24, 2025
9efe335
gccrs: Implement default HIR visitor class
sakupan102 Jun 24, 2025
c1d572b
Update C++ version check in rust-lang.cc
powerboat9 Jun 24, 2025
61c5bf0
gccrs: Implement type checking for ItemType::RANGED in TuplePattern
Polygonalr Jun 26, 2025
de92e92
nr2.0: Adjust resolution of external crates
powerboat9 Jun 16, 2025
7349d23
Add locus getters
P-E-P Jun 27, 2025
083d350
nr2.0: Add more checks for alternate patterns
powerboat9 May 24, 2025
7736b49
nr2.0: Adjust resolution of modules
powerboat9 May 29, 2025
a82b928
ast: reconstruct: Add base for reconstructing and asserting different…
CohenArthur May 20, 2025
63ff993
ast: Add reconstruct() method for Type nodes
CohenArthur May 20, 2025
e4a25ec
ast: builder: Remove ASTTypeBuilder
CohenArthur May 20, 2025
14471d9
reconstruct_vec: Allocate size when creating the vector
CohenArthur May 26, 2025
46d0d80
chore: ast: Fix formatting and includes
CohenArthur Jun 13, 2025
ae54849
gccrs: Fix type checking logic for TuplePattern
Polygonalr Jun 28, 2025
f42c4c6
gccrs: Implement compilation support for TuplePatternItems::RANGED
Polygonalr Jun 29, 2025
05b03ff
nr2.0: Enable by default
powerboat9 May 9, 2025
86de5fa
Remove -frust-name-resolution-2.0 usage in tests
powerboat9 Jul 3, 2025
7f784d8
nr1.0: Remove rust/backend support
powerboat9 Jul 3, 2025
411928e
Remove Late visitor override for StructStruct
powerboat9 Jul 1, 2025
d939c91
Remove reinterpret_cast usages in DefaultASTVisitor
powerboat9 Jul 1, 2025
c062b44
Change enum to enum class
P-E-P Jul 7, 2025
b6a90d4
Allow format_args to accept a raw string literal
powerboat9 Jul 1, 2025
c55ef85
Parse try expressions
powerboat9 Jul 2, 2025
5ff8386
ast: Check before visiting a while-let's label
CohenArthur May 19, 2025
dfbf9e3
nr2.0: Add proper handling for WhileLet loops.
CohenArthur Jul 4, 2025
cdcc89b
gccrs: Do proper const folding during typechecking for array capacities
philberty Jul 8, 2025
fafc801
gccrs: Fix ice with invalid borrow expression
philberty Jul 8, 2025
16f562f
gccrs: Add type checking for SlicePattern
Polygonalr Jul 8, 2025
c28db66
gccrs: Improve LiteralPattern type checking
Polygonalr Jul 8, 2025
3961193
gccrs: Fix narrowing of Loan (size_t) into LoanId (uint32)
dkm Jul 3, 2025
8428999
gccrs: Fix bad bounds checking for PartialOrd
philberty Jun 27, 2025
387ad9e
nr2.0: Check before visiting a for-loop's label
CohenArthur Jul 9, 2025
b70fca3
gccrs: Fix cast rules logic to try simple casts then fall back to coe…
philberty Jul 10, 2025
89e403c
gccrs: Fix ICE when handling bad constructor
philberty Jul 10, 2025
150c8ac
gccrs: add test case to show issue is fixed
philberty Jul 11, 2025
82203cc
gccrs: Add test case to show we emit better errors now
philberty Jul 11, 2025
eedc4ef
gccrs: Add test case to show issue is fixed
philberty Jul 11, 2025
17dfbde
attributes: Add #[test] and #[simd_test]
CohenArthur Jul 4, 2025
7fb6b42
gccrs: Add test case showing all derives working on enum
philberty Jul 11, 2025
e396db3
gccrs: Add size checking to SlicePattern
Polygonalr Jul 11, 2025
94160e0
gccrs: Implement compilation for SlicePattern matching against ArrayT…
Polygonalr Jul 17, 2025
cddffae
gccrs: Reject loop in const/static context
Lishin1215 Jul 16, 2025
d9387e5
gccrs: Add test case to show issue is fixed
philberty Jul 18, 2025
f67302f
Improve parsing of simple paths
powerboat9 Jul 15, 2025
66e9794
gccrs: Fix ICE with duplicate root item main function
philberty Jul 18, 2025
ec6a6d5
gccrs: Add initial support for deffered operator overload resolution
philberty Jul 18, 2025
aef720d
gccrs: return error node when this fails during constexpr case
philberty Jul 18, 2025
1b6483e
Use MacroInvocLexer in AttributeParser
powerboat9 Jul 8, 2025
5bfe856
gccrs: fix bad monomophization of generic paths
philberty Jul 20, 2025
09a8d9d
Specialize ExpandVisitor::expand_macro_children
powerboat9 Jul 19, 2025
5a629ea
Load modules during CfgStrip phase
powerboat9 Jul 3, 2025
41e2a37
mappings: Change mappings to allow other items as item containers.
CohenArthur Jul 9, 2025
2dea0a9
nr2.0: Handle glob imports of enum variants.
CohenArthur Jul 9, 2025
d7f4a92
ast: Use AnonConst for array type sizes
CohenArthur Jul 21, 2025
260e91e
hir: Handle deferred const inference variables
CohenArthur Jul 8, 2025
e0227b8
chore: ast: Fix formatting in rust-expr.h
CohenArthur Jul 21, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,3 @@ stamp-*
/gmp*
/isl*
/gettext*

# ADDITIONS from GCCRS front-end
libgrust/*/target/
7 changes: 5 additions & 2 deletions gcc/rust/Make-lang.in
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ GRS_OBJS = \
rust/rust-ast-dump.o \
rust/rust-ast-collector.o \
rust/rust-ast-visitor.o \
rust/rust-hir-visitor.o \
rust/rust-hir-dump.o \
rust/rust-session-manager.o \
rust/rust-compile.o \
Expand All @@ -92,14 +93,15 @@ GRS_OBJS = \
rust/rust-cfg-strip.o \
rust/rust-expand-visitor.o \
rust/rust-ast-builder.o \
rust/rust-ast-builder-type.o \
rust/rust-derive.o \
rust/rust-derive-cmp-common.o \
rust/rust-derive-clone.o \
rust/rust-derive-copy.o \
rust/rust-derive-debug.o \
rust/rust-derive-default.o \
rust/rust-derive-partial-eq.o \
rust/rust-derive-eq.o \
rust/rust-derive-ord.o \
rust/rust-derive-hash.o \
rust/rust-proc-macro.o \
rust/rust-macro-invoc-lexer.o \
Expand All @@ -123,7 +125,6 @@ GRS_OBJS = \
rust/rust-keyword-values.o \
rust/rust-abi.o \
rust/rust-token-converter.o \
rust/rust-macro.o \
rust/rust-ast-lower.o \
rust/rust-ast-lower-base.o \
rust/rust-ast-lower-pattern.o \
Expand Down Expand Up @@ -237,11 +238,13 @@ GRS_OBJS = \
rust/rust-punycode.o \
rust/rust-unwrap-segment.o \
rust/rust-edition.o \
rust/rust-ggc.o \
rust/rust-expand-format-args.o \
rust/rust-lang-item.o \
rust/rust-collect-lang-items.o \
rust/rust-desugar-for-loops.o \
rust/rust-desugar-question-mark.o \
rust/rust-desugar-apit.o \
$(END)
# removed object files from here

Expand Down
163 changes: 0 additions & 163 deletions gcc/rust/ast/rust-ast-builder-type.cc

This file was deleted.

57 changes: 0 additions & 57 deletions gcc/rust/ast/rust-ast-builder-type.h

This file was deleted.

Loading